Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0009671/0.0009672, allocations: 97.2 kB / 16.94 MB, free: 5.984 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.00103/0.00103, allocations: 179.3 kB / 17.82 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004408/0.0004408, allocations: 11.28 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.101, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008925/0.11, allocations: 8.793 MB / 337.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006384/0.1164, allocations: 3.521 MB / 340.6 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.1177, allocations: 43.88 kB / 340.7 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006672/0.1244, allocations: 7.961 MB / 348.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005647/0.13, allocations: 4.612 MB / 353.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.1319, allocations: 0.5576 MB / 353.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004991/0.1369, allocations: 3.483 MB / 357.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.1379, allocations: 0.6803 MB / 358 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003408/0.1414, allocations: 2.494 MB / 360.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005127/0.1465, allocations: 3.762 MB / 364.2 MB, free: 80 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005434/0.1471, allocations: 136 kB / 364.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00069/0.1478, allocations: 155.9 kB / 364.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001474/0.1492, allocations: 1.717 MB / 366.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009987/0.1503, allocations: 1.079 MB / 367.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004973/0.1552, allocations: 5.394 MB / 372.7 MB, free: 7.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1553, allocations: 0 / 372.7 MB, free: 7.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.566e-06/0.1553, allocations: 7.938 kB / 372.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001944/0.1555, allocations: 0 / 372.7 MB, free: 7.566 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.01068/0.1662, allocations: 6.691 MB / 379.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1662, allocations: 12.02 kB / 379.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1926/0.3588, allocations: 0.848 MB / 380.3 MB, free: 48.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007169/0.366, allocations: 2.888 MB / 383.2 MB, free: 47.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.3662, allocations: 155.4 kB / 383.3 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003854/0.3666, allocations: 212.4 kB / 383.5 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004518/0.3711, allocations: 2.065 MB / 385.6 MB, free: 46.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-05/0.3712, allocations: 7.297 kB / 385.6 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001835/0.3714, allocations: 82.55 kB / 385.7 MB, free: 46.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-05/0.3715, allocations: 50.22 kB / 385.7 MB, free: 46.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004172/0.3756, allocations: 1.87 MB / 387.6 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/0.3923, allocations: 8.769 MB / 396.4 MB, free: 41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003977/0.3964, allocations: 2.261 MB / 398.6 MB, free: 39.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.3965, allocations: 34.59 kB / 398.7 MB, free: 39.67 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001804/0.3983, allocations: 1.137 MB / 399.8 MB, free: 38.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 4.679e-06/0.3984, allocations: 0 / 399.8 MB, free: 38.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=375): time 0.05629/0.4547, allocations: 21.42 MB / 421.2 MB, free: 19.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0781/0.5328, allocations: 30.14 MB / 451.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02155/0.5544, allocations: 14.86 MB / 466.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007838/0.5552, allocations: 89.67 kB / 466.3 MB, free: 5.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003757/0.559, allocations: 3.725 MB / 470 MB, free: 1.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00178/0.5608, allocations: 1.241 MB / 471.3 MB, free: 428 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002267/0.561, allocations: 68.78 kB / 471.3 MB, free: 360 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000242/0.5613, allocations: 433.3 kB / 471.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/0.564, allocations: 1.206 MB / 473 MB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002574/0.5665, allocations: 1.563 MB / 474.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.5692, allocations: 1.408 MB / 475.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.5692, allocations: 0 / 475.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.01141/0.5806, allocations: 5.089 MB / 481 MB, free: 6.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.5807, allocations: 11.95 kB / 481 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.5807, allocations: 4 kB / 481 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004966/0.5857, allocations: 1.362 MB / 482.4 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/0.5883, allocations: 0.5539 MB / 483 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02577/0.6141, allocations: 21.25 MB / 0.4924 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004149/0.6183, allocations: 163.9 kB / 0.4925 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004205/0.6187, allocations: 123.9 kB / 0.4927 GB, free: 13.86 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 302 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.004015/0.6228, allocations: 2.188 MB / 0.4948 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001402/0.6242, allocations: 0.8175 MB / 0.4956 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/0.6354, allocations: 5.149 MB / 0.5006 GB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004887/0.6403, allocations: 2.281 MB / 0.5028 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.142e-05/0.6403, allocations: 8 kB / 0.5029 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.898e-05/0.6404, allocations: 15.94 kB / 0.5029 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02098/0.6614, allocations: 10.79 MB / 0.5134 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/0.6615, allocations: 7.984 kB / 0.5134 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/0.6638, allocations: 471.4 kB / 0.5139 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00517/0.669, allocations: 1.391 MB / 0.5152 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003314/0.6693, allocations: 75.97 kB / 0.5153 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02352/0.6929, allocations: 19.7 MB / 0.5345 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2987/0.9916, allocations: 26.77 MB / 0.5607 GB, free: 131 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01353/1.005, allocations: 6.976 MB / 0.5675 GB, free: 128.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/1.008, allocations: 0.7554 MB / 0.5682 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008793/1.009, allocations: 63.62 kB / 0.5683 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002276/1.011, allocations: 138.8 kB / 0.5684 GB, free: 127.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006959/1.012, allocations: 283.5 kB / 0.5687 GB, free: 127.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/1.012, allocations: 96.69 kB / 0.5688 GB, free: 127.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01172/1.024, allocations: 11.11 MB / 0.5796 GB, free: 117.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.024, allocations: 4.844 kB / 0.5796 GB, free: 117.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005672/1.029, allocations: 1.106 MB / 0.5807 GB, free: 116.8 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.00149/1.031, allocations: 0.4966 MB / 0.5812 GB, free: 116.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007199/1.038, allocations: 4.736 MB / 0.5858 GB, free: 111.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/1.038, allocations: 0 / 0.5858 GB, free: 111.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004526/1.043, allocations: 3.33 MB / 0.5891 GB, free: 108.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003097/1.046, allocations: 483.3 kB / 0.5895 GB, free: 107.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02598/1.072, allocations: 20.21 MB / 0.6093 GB, free: 87.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003846/1.076, allocations: 4.197 MB / 0.6134 GB, free: 83.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002501/1.078, allocations: 346.3 kB / 0.6137 GB, free: 82.76 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005797/1.079, allocations: 179.4 kB / 0.6139 GB, free: 82.58 MB / 430.1 MB Notification: Performance of SimCode: time 1.733e-06/1.079, allocations: 0 / 0.6139 GB, free: 82.58 MB / 430.1 MB Notification: Performance of Templates: time 0.117/1.196, allocations: 62.28 MB / 0.6747 GB, free: 20.2 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches