Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 112.6 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 200 kB / 18 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2971, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007164/0.3043, allocations: 6.3 MB / 407 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003134/0.3074, allocations: 1.838 MB / 408.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006283/0.3081, allocations: 19.94 kB / 408.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007158/0.3089, allocations: 218 kB / 409.1 MB, free: 452 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009781/0.3099, allocations: 404.9 kB / 409.5 MB, free: 44 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007972/0.3107, allocations: 383.6 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.3121, allocations: 1.487 MB / 411.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006658/0.3128, allocations: 0.5052 MB / 411.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000605/0.3134, allocations: 0.545 MB / 412.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006069/0.314, allocations: 0.5991 MB / 413 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.3142, allocations: 160 kB / 413.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.3144, allocations: 160 kB / 413.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.3146, allocations: 307 kB / 413.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005298/0.3152, allocations: 0.6457 MB / 414.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.3167, allocations: 1.847 MB / 416.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3167, allocations: 0 / 416.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3167, allocations: 0 / 416.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.455e-05/0.3167, allocations: 0 / 416.1 MB, free: 9.391 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002746/0.3195, allocations: 1.445 MB / 417.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3195, allocations: 8.031 kB / 417.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001959/0.3197, allocations: 127.5 kB / 417.7 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.3208, allocations: 0.6689 MB / 418.3 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.212e-05/0.3209, allocations: 74.38 kB / 418.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.3211, allocations: 100.3 kB / 418.5 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.3229, allocations: 1.009 MB / 419.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.201e-05/0.3229, allocations: 0 / 419.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.571e-05/0.323, allocations: 44 kB / 419.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.323, allocations: 20 kB / 419.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.3248, allocations: 0.8717 MB / 420.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004633/0.3294, allocations: 3.297 MB / 423.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.3308, allocations: 0.8196 MB / 424.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008372/0.3317, allocations: 471.8 kB / 425 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.243e-05/0.3318, allocations: 20.41 kB / 425.1 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.3318, allocations: 43.12 kB / 425.1 MB, free: 128 kB / 334.1 MB Notification: Performance of pre-optimization done (n=91): time 2.275e-06/0.3318, allocations: 0 / 425.1 MB, free: 128 kB / 334.1 MB Notification: Performance of matching and sorting (n=115): time 0.009281/0.3411, allocations: 4.299 MB / 429.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.3412, allocations: 93.7 kB / 429.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007832/0.342, allocations: 0.6046 MB / 430.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.491e-05/0.3421, allocations: 41.7 kB / 430.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/0.3424, allocations: 424.2 kB / 430.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.3426, allocations: 394.2 kB / 430.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002979/0.3429, allocations: 186.9 kB / 431.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3431, allocations: 394.7 kB / 431.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000796/0.3439, allocations: 378.4 kB / 431.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008765/0.3448, allocations: 0.5119 MB / 432.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.3464, allocations: 0.8809 MB / 433.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3465, allocations: 0 / 433.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00224/0.3487, allocations: 1.2 MB / 434.5 MB, free: 6.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3487, allocations: 8 kB / 434.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.3488, allocations: 0 / 434.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003888/0.3491, allocations: 130.5 kB / 434.6 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.3502, allocations: 247.7 kB / 434.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003638/0.3538, allocations: 4.973 MB / 439.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006437/0.3545, allocations: 56.03 kB / 439.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.45e-05/0.3546, allocations: 39.98 kB / 439.9 MB, free: 0.5391 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004103/0.355, allocations: 279.2 kB / 440.2 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.3552, allocations: 86.97 kB / 440.3 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.3567, allocations: 0.7761 MB / 441 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3567, allocations: 12 kB / 441.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.3568, allocations: 4 kB / 441.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.3568, allocations: 3.984 kB / 441.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004066/0.3608, allocations: 2.648 MB / 443.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3609, allocations: 4 kB / 443.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008937/0.3618, allocations: 199.8 kB / 443.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004219/0.3622, allocations: 159.4 kB / 444.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.771e-05/0.3623, allocations: 31.98 kB / 444.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004431/0.3667, allocations: 5.986 MB / 450.1 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3667, allocations: 7.969 kB / 450.1 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003065/0.3698, allocations: 1.745 MB / 451.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.37, allocations: 160.1 kB / 452 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.3701, allocations: 24 kB / 452 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/0.3707, allocations: 55.89 kB / 452.1 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.3709, allocations: 76.39 kB / 452.1 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.996e-05/0.371, allocations: 28 kB / 452.2 MB, free: 3.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00055/0.3715, allocations: 447.1 kB / 452.6 MB, free: 3.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3715, allocations: 0 / 452.6 MB, free: 3.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009678/0.3725, allocations: 252 kB / 452.9 MB, free: 2.844 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002001/0.3727, allocations: 149.8 kB / 453 MB, free: 2.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002477/0.3752, allocations: 1.345 MB / 454.3 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3752, allocations: 0 / 454.3 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/0.3766, allocations: 0.9979 MB / 455.3 MB, free: 256 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009176/0.3776, allocations: 181.2 kB / 455.5 MB, free: 80 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003761/0.3813, allocations: 2.139 MB / 457.7 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.3819, allocations: 1.02 MB / 458.7 MB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004539/0.3824, allocations: 123.6 kB / 458.8 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/0.3826, allocations: 75.41 kB / 458.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of SimCode: time 1.954e-06/0.3826, allocations: 4 kB / 458.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of Templates: time 0.02095/0.4036, allocations: 12.15 MB / 471 MB, free: 0.5938 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches