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.00115/0.00115, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 61.17 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1001, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01735/0.1175, allocations: 11.38 MB / 370.3 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1787/0.2962, allocations: 3.863 MB / 374.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002064/0.2983, allocations: 39.06 kB / 374.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008401/0.3068, allocations: 8.147 MB / 382.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006387/0.3132, allocations: 4.709 MB / 387 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002364/0.3156, allocations: 0.9241 MB / 388 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006933/0.3226, allocations: 5.411 MB / 393.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001328/0.3239, allocations: 0.9004 MB / 394.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003989/0.3279, allocations: 2.9 MB / 397.2 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006095/0.334, allocations: 5.17 MB / 402.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007819/0.3348, allocations: 356 kB / 402.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.336, allocations: 409.6 kB / 403.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001448/0.3375, allocations: 1.885 MB / 405 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002824/0.3403, allocations: 2.838 MB / 407.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006987/0.3473, allocations: 7.395 MB / 415.2 MB, free: 28 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3473, allocations: 0 / 415.2 MB, free: 28 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3473, allocations: 0 / 415.2 MB, free: 28 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002051/0.3476, allocations: 0 / 415.2 MB, free: 28 kB / 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.01206/0.3596, allocations: 7.728 MB / 422.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3597, allocations: 8.031 kB / 422.9 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/0.3612, allocations: 0.9039 MB / 423.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00426/0.3654, allocations: 3.24 MB / 427.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.3656, allocations: 156.2 kB / 427.2 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002888/0.3659, allocations: 204 kB / 427.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/0.3694, allocations: 2.097 MB / 429.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.117e-05/0.3695, allocations: 3.906 kB / 429.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001768/0.3697, allocations: 84 kB / 429.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.3697, allocations: 55.94 kB / 429.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003401/0.3731, allocations: 1.845 MB / 431.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01412/0.3872, allocations: 8.963 MB / 440.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003551/0.3908, allocations: 2.325 MB / 442.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002385/0.3932, allocations: 1.358 MB / 444.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.3934, allocations: 41.19 kB / 444.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001915/0.3953, allocations: 1.132 MB / 445.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.398e-06/0.3953, allocations: 0 / 445.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06546/0.4608, allocations: 22.42 MB / 467.8 MB, free: 10.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02915/0.49, allocations: 13.71 MB / 481.5 MB, free: 12.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01699/0.507, allocations: 15.04 MB / 496.5 MB, free: 13.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005941/0.5077, allocations: 85.7 kB / 496.6 MB, free: 13.72 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003187/0.5109, allocations: 3.772 MB / 0.4886 GB, free: 9.941 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001311/0.5122, allocations: 1.226 MB / 0.4898 GB, free: 8.727 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009229/0.5131, allocations: 0.5157 MB / 0.4903 GB, free: 8.203 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.184e-05/0.5132, allocations: 309.1 kB / 0.4906 GB, free: 7.898 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002313/0.5155, allocations: 1.233 MB / 0.4918 GB, free: 6.664 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00254/0.5181, allocations: 1.603 MB / 0.4934 GB, free: 4.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004898/0.523, allocations: 2.969 MB / 0.4963 GB, free: 1.949 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.523, allocations: 4 kB / 0.4963 GB, free: 1.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01108/0.5341, allocations: 5.195 MB / 0.5014 GB, free: 12.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.5342, allocations: 8 kB / 0.5014 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.5342, allocations: 7.938 kB / 0.5014 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00553/0.5397, allocations: 1.411 MB / 0.5028 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.5425, allocations: 0.5266 MB / 0.5033 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02867/0.5712, allocations: 24.03 MB / 0.5267 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003158/0.5744, allocations: 123.9 kB / 0.5269 GB, free: 1.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003075/0.5747, allocations: 112 kB / 0.527 GB, free: 1.23 MB / 446.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 (313): * Single equations (assignments): 304 * 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,3,100.0%), (1,4,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.1654/0.7401, allocations: 2.191 MB / 0.5291 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/0.7414, allocations: 0.8301 MB / 0.5299 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/0.752, allocations: 5.201 MB / 0.535 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.889e-05/0.7521, allocations: 36.94 kB / 0.535 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.7521, allocations: 4.594 kB / 0.535 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.551e-05/0.7521, allocations: 24.56 kB / 0.5351 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/0.7704, allocations: 11.09 MB / 0.5459 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.7705, allocations: 1.375 kB / 0.5459 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002244/0.7727, allocations: 450.2 kB / 0.5463 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005103/0.7779, allocations: 1.35 MB / 0.5476 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002397/0.7781, allocations: 75.88 kB / 0.5477 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0202/0.7983, allocations: 21.91 MB / 0.5691 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02252/0.8209, allocations: 12 MB / 0.5808 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/0.8327, allocations: 6.906 MB / 0.5876 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002311/0.835, allocations: 0.7643 MB / 0.5883 GB, free: 99.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007181/0.8357, allocations: 69.03 kB / 0.5884 GB, free: 99.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001999/0.8378, allocations: 91.95 kB / 0.5885 GB, free: 99.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000654/0.8384, allocations: 270.6 kB / 0.5887 GB, free: 99.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001834/0.8386, allocations: 95.97 kB / 0.5888 GB, free: 99.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009497/0.8481, allocations: 11.22 MB / 0.5998 GB, free: 88.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8481, allocations: 0 / 0.5998 GB, free: 88.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003652/0.8518, allocations: 1.102 MB / 0.6009 GB, free: 87.01 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 (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.001115/0.8529, allocations: 0.5111 MB / 0.6014 GB, free: 86.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006303/0.8593, allocations: 4.757 MB / 0.606 GB, free: 81.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.8593, allocations: 0 / 0.606 GB, free: 81.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003993/0.8633, allocations: 3.265 MB / 0.6092 GB, free: 78.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/0.8663, allocations: 0.5646 MB / 0.6097 GB, free: 77.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/0.885, allocations: 18 MB / 0.6273 GB, free: 59.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003034/0.8881, allocations: 4.05 MB / 0.6313 GB, free: 55.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001695/0.8898, allocations: 313.5 kB / 0.6316 GB, free: 55.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006622/0.8905, allocations: 171.4 kB / 0.6317 GB, free: 55.28 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8905, allocations: 0 / 0.6317 GB, free: 55.28 MB / 446.1 MB Notification: Performance of Templates: time 0.1636/1.054, allocations: 66.55 MB / 0.6967 GB, free: 5.031 MB / 462.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/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