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.001417/0.001418, allocations: 104.5 kB / 16.51 MB, free: 6.688 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.001629/0.001629, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.33/1.33, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001018, allocations: 46.08 kB / 300 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08386/0.0849, allocations: 49.45 MB / 349.4 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0114/0.09635, allocations: 10.99 MB / 360.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007251/0.1036, allocations: 3.592 MB / 364 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002351/0.106, allocations: 39.88 kB / 364 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1592/0.2652, allocations: 8.129 MB / 372.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007132/0.2724, allocations: 4.56 MB / 376.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002127/0.2745, allocations: 0.8538 MB / 377.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007061/0.2816, allocations: 5.081 MB / 382.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.2828, allocations: 0.77 MB / 383.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00412/0.2869, allocations: 2.588 MB / 386 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004958/0.2919, allocations: 4.948 MB / 391 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005658/0.2925, allocations: 170.9 kB / 391.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008158/0.2933, allocations: 207.9 kB / 391.3 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008798/0.2942, allocations: 1.775 MB / 393.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001399/0.2956, allocations: 2.614 MB / 395.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003474/0.2991, allocations: 6.93 MB / 402.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.2991, allocations: 4 kB / 402.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2991, allocations: 4 kB / 402.7 MB, free: 14.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.208e-05/0.2992, allocations: 0 / 402.7 MB, free: 14.37 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.01002/0.3092, allocations: 7.646 MB / 410.3 MB, free: 6.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.3093, allocations: 8.031 kB / 410.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008142/0.3101, allocations: 0.8493 MB / 411.2 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003382/0.3135, allocations: 3.151 MB / 414.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.3136, allocations: 160.5 kB / 414.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000278/0.3139, allocations: 207.5 kB / 414.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003679/0.3176, allocations: 2.112 MB / 416.8 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-05/0.3176, allocations: 4 kB / 416.8 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/0.3178, allocations: 91.98 kB / 416.9 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.14e-05/0.3179, allocations: 48 kB / 416.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003728/0.3216, allocations: 1.899 MB / 418.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/0.3343, allocations: 8.947 MB / 427.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003599/0.3379, allocations: 2.313 MB / 430.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/0.3405, allocations: 1.388 MB / 431.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.3406, allocations: 37.34 kB / 431.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00216/0.3428, allocations: 1.163 MB / 432.7 MB, free: 76 kB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 5.23e-06/0.3428, allocations: 0 / 432.7 MB, free: 76 kB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.06618/0.409, allocations: 22.78 MB / 455.5 MB, free: 9.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0293/0.4383, allocations: 13.03 MB / 468.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01764/0.456, allocations: 14.9 MB / 483.4 MB, free: 12.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005113/0.4565, allocations: 89.7 kB / 483.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003276/0.4598, allocations: 3.726 MB / 487.2 MB, free: 9.004 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001515/0.4614, allocations: 1.21 MB / 488.4 MB, free: 7.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001726/0.4631, allocations: 0.5196 MB / 488.9 MB, free: 7.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.203e-05/0.4632, allocations: 312.9 kB / 489.2 MB, free: 6.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002707/0.4659, allocations: 1.248 MB / 490.5 MB, free: 5.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002908/0.4688, allocations: 1.622 MB / 492.1 MB, free: 4.016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005483/0.4743, allocations: 2.996 MB / 495.1 MB, free: 0.9531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.4743, allocations: 4 kB / 495.1 MB, free: 0.9492 MB / 398.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01116/0.4855, allocations: 5.199 MB / 0.4886 GB, free: 11.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.4856, allocations: 12 kB / 0.4886 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.4856, allocations: 5.219 kB / 0.4886 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005512/0.4911, allocations: 1.385 MB / 0.4899 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/0.4937, allocations: 0.5344 MB / 0.4905 GB, free: 9.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02737/0.5211, allocations: 21.92 MB / 0.5119 GB, free: 2.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003317/0.5244, allocations: 127.9 kB / 0.512 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005482/0.525, allocations: 119.9 kB / 0.5121 GB, free: 2.395 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.003535/0.5286, allocations: 2.184 MB / 0.5142 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001317/0.5299, allocations: 0.8216 MB / 0.515 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/0.5417, allocations: 5.215 MB / 0.5201 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.07e-05/0.5418, allocations: 36 kB / 0.5202 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.092e-05/0.5418, allocations: 4 kB / 0.5202 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.305e-05/0.5419, allocations: 19.94 kB / 0.5202 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1789/0.7207, allocations: 11.08 MB / 0.531 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.537e-05/0.7208, allocations: 2.953 kB / 0.531 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002589/0.7234, allocations: 456.9 kB / 0.5314 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00549/0.7289, allocations: 1.335 MB / 0.5328 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002461/0.7291, allocations: 72.69 kB / 0.5328 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/0.7507, allocations: 20.01 MB / 0.5524 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0235/0.7743, allocations: 11.41 MB / 0.5635 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.7867, allocations: 6.939 MB / 0.5703 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.7878, allocations: 0.7497 MB / 0.571 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005504/0.7884, allocations: 70.23 kB / 0.5711 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001953/0.7904, allocations: 110.3 kB / 0.5712 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007428/0.7911, allocations: 270.6 kB / 0.5714 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001857/0.7913, allocations: 96.94 kB / 0.5715 GB, free: 119.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00906/0.8004, allocations: 11.12 MB / 0.5824 GB, free: 113.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.8004, allocations: 0 / 0.5824 GB, free: 113.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003763/0.8042, allocations: 1.078 MB / 0.5835 GB, free: 112.3 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.001183/0.8054, allocations: 0.4952 MB / 0.5839 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00684/0.8122, allocations: 4.8 MB / 0.5886 GB, free: 107.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.8123, allocations: 0 / 0.5886 GB, free: 107.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004299/0.8166, allocations: 3.271 MB / 0.5918 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003932/0.8205, allocations: 0.5275 MB / 0.5923 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02347/0.844, allocations: 20.22 MB / 0.6121 GB, free: 83.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004157/0.8482, allocations: 4.01 MB / 0.616 GB, free: 79.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002388/0.8506, allocations: 305.2 kB / 0.6163 GB, free: 78.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009257/0.8515, allocations: 171.4 kB / 0.6165 GB, free: 78.75 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.8516, allocations: 0 / 0.6165 GB, free: 78.75 MB / 446.1 MB Notification: Performance of Templates: time 0.1476/0.9992, allocations: 62.8 MB / 0.6778 GB, free: 16.31 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