Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008796/0.0008796, allocations: 92.16 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009456/0.0009457, allocations: 195.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.7 MB / 246.4 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002163/0.0002163, allocations: 7.984 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08926/0.08949, allocations: 51.51 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009523/0.09906, allocations: 10 MB / 368.6 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1784/0.2775, allocations: 3.708 MB / 372.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0022/0.2797, allocations: 37.69 kB / 372.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0118/0.2915, allocations: 8.117 MB / 380.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007976/0.2995, allocations: 4.605 MB / 385.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.3019, allocations: 0.5422 MB / 385.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007998/0.31, allocations: 4.534 MB / 390.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.3113, allocations: 0.6928 MB / 390.9 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.3152, allocations: 2.544 MB / 393.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003932/0.3192, allocations: 4.173 MB / 397.6 MB, free: 80 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003894/0.3196, allocations: 144 kB / 397.7 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006273/0.3202, allocations: 188.8 kB / 397.9 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001164/0.3214, allocations: 1.738 MB / 399.6 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008455/0.3222, allocations: 1.098 MB / 400.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00397/0.3262, allocations: 5.563 MB / 406.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3262, allocations: 4 kB / 406.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.3263, allocations: 0 / 406.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.76e-05/0.3264, allocations: 0 / 406.3 MB, free: 8.844 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.009148/0.3355, allocations: 6.735 MB / 413 MB, free: 2.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3356, allocations: 8.031 kB / 413.1 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001371/0.3369, allocations: 0.9029 MB / 414 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003371/0.3403, allocations: 2.83 MB / 416.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.3404, allocations: 161.5 kB / 416.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002562/0.3407, allocations: 208.2 kB / 417.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00365/0.3444, allocations: 2.08 MB / 419.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.835e-05/0.3444, allocations: 11.84 kB / 419.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/0.3446, allocations: 88 kB / 419.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/0.3447, allocations: 52 kB / 419.4 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00341/0.3481, allocations: 1.848 MB / 421.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01304/0.3611, allocations: 9.044 MB / 430.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0037/0.3649, allocations: 2.324 MB / 432.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002367/0.3672, allocations: 1.338 MB / 433.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/0.3674, allocations: 37.81 kB / 434 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002011/0.3694, allocations: 1.131 MB / 435.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 6.322e-06/0.3694, allocations: 0 / 435.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.05722/0.4267, allocations: 22.51 MB / 457.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02817/0.4549, allocations: 13.27 MB / 470.9 MB, free: 8.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01539/0.4703, allocations: 15.05 MB / 485.9 MB, free: 9.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005101/0.4708, allocations: 85.7 kB / 486 MB, free: 9.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003269/0.4741, allocations: 3.783 MB / 489.8 MB, free: 5.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.4753, allocations: 1.223 MB / 491 MB, free: 4.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.4756, allocations: 68 kB / 491.1 MB, free: 4.473 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.4758, allocations: 433.2 kB / 491.5 MB, free: 4.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002509/0.4783, allocations: 1.225 MB / 492.7 MB, free: 2.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002571/0.4809, allocations: 1.587 MB / 494.3 MB, free: 1.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/0.4835, allocations: 1.433 MB / 495.8 MB, free: 15.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.4836, allocations: 4 kB / 495.8 MB, free: 15.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01074/0.4943, allocations: 5.176 MB / 0.4892 GB, free: 10.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.4944, allocations: 4 kB / 0.4892 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-05/0.4944, allocations: 8 kB / 0.4892 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005492/0.4999, allocations: 1.409 MB / 0.4906 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002748/0.5027, allocations: 0.5344 MB / 0.4911 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02668/0.5294, allocations: 21.97 MB / 0.5126 GB, free: 1.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002875/0.5323, allocations: 124 kB / 0.5127 GB, free: 1.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002833/0.5326, allocations: 116 kB / 0.5128 GB, free: 1.117 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 ($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): 304 * Array equations: 0 * 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%) 3,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 50} Notification: Performance of prepare postOptimizeDAE: time 0.003125/0.5357, allocations: 2.191 MB / 0.5149 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009233/0.5366, allocations: 0.8291 MB / 0.5157 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/0.5474, allocations: 5.186 MB / 0.5208 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.157e-05/0.5474, allocations: 36 kB / 0.5208 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.5474, allocations: 4 kB / 0.5208 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.864e-05/0.5475, allocations: 27.88 kB / 0.5209 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1952/0.7427, allocations: 11.09 MB / 0.5317 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.7427, allocations: 2.016 kB / 0.5317 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002314/0.7451, allocations: 453.5 kB / 0.5321 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005076/0.7501, allocations: 1.355 MB / 0.5335 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002296/0.7504, allocations: 73.11 kB / 0.5335 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02051/0.7709, allocations: 20.06 MB / 0.5531 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0223/0.7932, allocations: 11.64 MB / 0.5645 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/0.8048, allocations: 6.86 MB / 0.5712 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008039/0.8056, allocations: 0.778 MB / 0.572 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005103/0.8061, allocations: 69.31 kB / 0.572 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/0.8079, allocations: 98.27 kB / 0.5721 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005754/0.8085, allocations: 276.7 kB / 0.5724 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001738/0.8087, allocations: 90.52 kB / 0.5725 GB, free: 112.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00866/0.8173, allocations: 11.25 MB / 0.5835 GB, free: 105.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.32e-07/0.8174, allocations: 0 / 0.5835 GB, free: 105.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003027/0.8204, allocations: 1.095 MB / 0.5845 GB, free: 104.7 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 (257): * Single equations (assignments): 246 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 49,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001085/0.8215, allocations: 0.4897 MB / 0.585 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005999/0.8275, allocations: 4.743 MB / 0.5896 GB, free: 99.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.8275, allocations: 4 kB / 0.5896 GB, free: 99.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003753/0.8313, allocations: 3.244 MB / 0.5928 GB, free: 96.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.8338, allocations: 0.5478 MB / 0.5933 GB, free: 95.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01974/0.8535, allocations: 19.63 MB / 0.6125 GB, free: 76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003126/0.8567, allocations: 4.041 MB / 0.6165 GB, free: 71.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001955/0.8587, allocations: 317.5 kB / 0.6168 GB, free: 71.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006248/0.8593, allocations: 175.4 kB / 0.6169 GB, free: 71.43 MB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.8593, allocations: 0 / 0.6169 GB, free: 71.43 MB / 446.1 MB Notification: Performance of Templates: time 0.08621/0.9455, allocations: 61.15 MB / 0.6766 GB, free: 10.56 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches