Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007574/0.0007576, allocations: 87.81 kB / 16.65 MB, free: 6.598 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.000804/0.0008041, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.283/1.283, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.000274, allocations: 7.938 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/0.09598, allocations: 50.42 MB / 351.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009972/0.106, allocations: 10.42 MB / 362.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005296/0.1113, allocations: 3.577 MB / 365.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006386/0.112, allocations: 39.88 kB / 365.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.17/0.282, allocations: 8.123 MB / 374 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007372/0.2894, allocations: 4.559 MB / 378.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002193/0.2916, allocations: 0.8445 MB / 379.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006228/0.2979, allocations: 5.087 MB / 384.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.2989, allocations: 0.7573 MB / 385.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003059/0.302, allocations: 2.541 MB / 387.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003778/0.3058, allocations: 4.879 MB / 392.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.3061, allocations: 140 kB / 392.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000496/0.3066, allocations: 179.6 kB / 393 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008273/0.3074, allocations: 1.738 MB / 394.7 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001386/0.3088, allocations: 2.585 MB / 397.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004/0.3128, allocations: 6.803 MB / 404.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.3129, allocations: 8 kB / 404.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3129, allocations: 0 / 404.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001238/0.313, allocations: 0 / 404.1 MB, free: 13.61 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01042/0.3234, allocations: 6.6 MB / 410.7 MB, free: 6.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.3235, allocations: 12.03 kB / 410.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000874/0.3244, allocations: 0.8494 MB / 411.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003718/0.3281, allocations: 3.155 MB / 414.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.3282, allocations: 160.5 kB / 414.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002965/0.3285, allocations: 204.6 kB / 415.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003887/0.3324, allocations: 2.139 MB / 417.2 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.569e-05/0.3325, allocations: 7.906 kB / 417.2 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/0.3327, allocations: 80 kB / 417.3 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.814e-05/0.3327, allocations: 52 kB / 417.4 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003915/0.3367, allocations: 1.958 MB / 419.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0132/0.3499, allocations: 8.972 MB / 428.3 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003775/0.3537, allocations: 2.351 MB / 430.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002703/0.3564, allocations: 1.392 MB / 432 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.3565, allocations: 40.78 kB / 432.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002169/0.3587, allocations: 1.183 MB / 433.3 MB, free: 180 kB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 4.128e-06/0.3587, allocations: 0 / 433.3 MB, free: 180 kB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.06506/0.4238, allocations: 23.07 MB / 456.3 MB, free: 8.824 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03087/0.4547, allocations: 13.22 MB / 469.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01477/0.4695, allocations: 14.9 MB / 484.4 MB, free: 12.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000486/0.47, allocations: 89.7 kB / 484.5 MB, free: 12.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003194/0.4732, allocations: 3.724 MB / 488.3 MB, free: 8.598 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/0.4743, allocations: 1.21 MB / 489.5 MB, free: 7.398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003731/0.4746, allocations: 256.8 kB / 489.7 MB, free: 7.141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.801e-05/0.4748, allocations: 309.1 kB / 490 MB, free: 6.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/0.4774, allocations: 1.276 MB / 491.3 MB, free: 5.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002886/0.4803, allocations: 1.641 MB / 492.9 MB, free: 3.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00543/0.4857, allocations: 3.035 MB / 496 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.4858, allocations: 0 / 496 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01099/0.4967, allocations: 5.253 MB / 0.4895 GB, free: 11.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.4968, allocations: 11.98 kB / 0.4895 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.4968, allocations: 4 kB / 0.4895 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005422/0.5022, allocations: 1.397 MB / 0.4909 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002532/0.5048, allocations: 0.5539 MB / 0.4914 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02573/0.5305, allocations: 21.93 MB / 0.5128 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/0.5334, allocations: 143.8 kB / 0.513 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002291/0.5336, allocations: 119.9 kB / 0.5131 GB, free: 2.066 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (309): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.00299/0.5366, allocations: 2.192 MB / 0.5152 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007876/0.5374, allocations: 0.8137 MB / 0.516 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/0.5483, allocations: 5.27 MB / 0.5211 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.5484, allocations: 36 kB / 0.5212 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.5484, allocations: 8 kB / 0.5212 GB, free: 9.691 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.848e-05/0.5484, allocations: 15.94 kB / 0.5212 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1935/0.742, allocations: 11.12 MB / 0.5321 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.253e-05/0.742, allocations: 2.625 kB / 0.5321 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/0.7445, allocations: 472.4 kB / 0.5325 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005347/0.7499, allocations: 1.336 MB / 0.5338 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002523/0.7501, allocations: 74.41 kB / 0.5339 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02078/0.7709, allocations: 20.04 MB / 0.5535 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02341/0.7944, allocations: 11.6 MB / 0.5648 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/0.8066, allocations: 7.007 MB / 0.5716 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008768/0.8075, allocations: 0.7578 MB / 0.5724 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004827/0.808, allocations: 63.34 kB / 0.5724 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001976/0.8099, allocations: 129 kB / 0.5726 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006457/0.8106, allocations: 273 kB / 0.5728 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.8108, allocations: 94.25 kB / 0.5729 GB, free: 118.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008858/0.8197, allocations: 11.12 MB / 0.5838 GB, free: 112.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8197, allocations: 0 / 0.5838 GB, free: 112.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003256/0.8229, allocations: 1.081 MB / 0.5848 GB, free: 111 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/0.8241, allocations: 0.4941 MB / 0.5853 GB, free: 110.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006334/0.8305, allocations: 4.846 MB / 0.59 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.8305, allocations: 0 / 0.59 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003964/0.8345, allocations: 3.302 MB / 0.5933 GB, free: 102.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003852/0.8383, allocations: 0.52 MB / 0.5938 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/0.8566, allocations: 20.4 MB / 0.6137 GB, free: 81.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002964/0.8596, allocations: 4.01 MB / 0.6176 GB, free: 77.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001749/0.8613, allocations: 308.8 kB / 0.6179 GB, free: 77.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006276/0.8619, allocations: 171.4 kB / 0.6181 GB, free: 76.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.862, allocations: 3.938 kB / 0.6181 GB, free: 76.98 MB / 446.1 MB Notification: Performance of Templates: time 0.08571/0.9477, allocations: 61.41 MB / 0.6781 GB, free: 15.93 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches