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.000912/0.0009122, allocations: 91.66 kB / 16.3 MB, free: 6.457 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.0009491/0.0009492, allocations: 181.5 kB / 17.2 MB, free: 6.34 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.251/1.251, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002368, allocations: 9.688 kB / 300.7 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08438, allocations: 50.41 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008777/0.09319, allocations: 8.906 MB / 360 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006088/0.09932, allocations: 3.625 MB / 363.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.1005, allocations: 35.88 kB / 363.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006399/0.1069, allocations: 7.958 MB / 371.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004833/0.1117, allocations: 4.616 MB / 376.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001567/0.1133, allocations: 0.5914 MB / 376.9 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004298/0.1176, allocations: 3.47 MB / 380.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009074/0.1185, allocations: 0.68 MB / 381 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002764/0.1213, allocations: 2.486 MB / 383.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004278/0.1256, allocations: 3.769 MB / 387.3 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004208/0.126, allocations: 140 kB / 387.4 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005398/0.1266, allocations: 155.9 kB / 387.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001191/0.1278, allocations: 1.717 MB / 389.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008532/0.1286, allocations: 1.072 MB / 390.3 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004276/0.1329, allocations: 5.386 MB / 395.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1329, allocations: 0 / 395.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.539e-06/0.1329, allocations: 0 / 395.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001473/0.1331, allocations: 3.938 kB / 395.7 MB, free: 14.96 MB / 334.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.01009/0.1432, allocations: 6.687 MB / 402.4 MB, free: 8.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1433, allocations: 8.031 kB / 402.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001017/0.1443, allocations: 0.8484 MB / 403.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004652/0.1489, allocations: 2.89 MB / 406.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.1491, allocations: 156.1 kB / 406.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002939/0.1494, allocations: 215.8 kB / 406.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003654/0.1531, allocations: 2.069 MB / 408.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.893e-05/0.1531, allocations: 11.89 kB / 408.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001789/0.1533, allocations: 87.95 kB / 408.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.379e-05/0.1533, allocations: 48 kB / 408.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/0.157, allocations: 1.868 MB / 410.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.1702, allocations: 8.759 MB / 419.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003651/0.1739, allocations: 2.27 MB / 421.6 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.1741, allocations: 34.28 kB / 421.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002054/0.1761, allocations: 1.128 MB / 422.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.138e-06/0.1761, allocations: 0 / 422.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=375): time 0.2226/0.3987, allocations: 21.42 MB / 444.2 MB, free: 55.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07489/0.4737, allocations: 30.15 MB / 474.4 MB, free: 28.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01172/0.4854, allocations: 14.86 MB / 489.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005714/0.486, allocations: 85.7 kB / 489.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002369/0.4884, allocations: 3.73 MB / 493 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.4896, allocations: 1.241 MB / 494.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.4898, allocations: 68.86 kB / 494.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4899, allocations: 437.3 kB / 494.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002122/0.4921, allocations: 1.206 MB / 496 MB, free: 7.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002138/0.4942, allocations: 1.561 MB / 497.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.4964, allocations: 1.409 MB / 499 MB, free: 4.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.4964, allocations: 4 kB / 499 MB, free: 4.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.009406/0.5059, allocations: 5.088 MB / 0.4922 GB, free: 15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.5059, allocations: 10.66 kB / 0.4922 GB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.5059, allocations: 8 kB / 0.4922 GB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005113/0.5111, allocations: 1.348 MB / 0.4936 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/0.5138, allocations: 0.5578 MB / 0.4941 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02464/0.5385, allocations: 21.24 MB / 0.5149 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003523/0.542, allocations: 172 kB / 0.515 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003874/0.5424, allocations: 124 kB / 0.5151 GB, free: 6.344 MB / 382.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.00329/0.5457, allocations: 2.189 MB / 0.5173 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001413/0.5472, allocations: 0.8175 MB / 0.5181 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/0.5587, allocations: 5.156 MB / 0.5231 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004997/0.5638, allocations: 2.282 MB / 0.5253 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.658e-05/0.5638, allocations: 4 kB / 0.5253 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.539e-05/0.5639, allocations: 19.92 kB / 0.5254 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01968/0.5836, allocations: 10.78 MB / 0.5359 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.864e-05/0.5836, allocations: 0 / 0.5359 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002513/0.5862, allocations: 475.4 kB / 0.5363 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005288/0.5915, allocations: 1.377 MB / 0.5377 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004889/0.592, allocations: 83.95 kB / 0.5378 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02239/0.6144, allocations: 19.69 MB / 0.557 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2492/0.8636, allocations: 26.78 MB / 0.5831 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01317/0.8768, allocations: 6.979 MB / 0.59 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/0.8783, allocations: 0.7515 MB / 0.5907 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006823/0.879, allocations: 65.95 kB / 0.5908 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/0.8811, allocations: 139.7 kB / 0.5909 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006371/0.8817, allocations: 272.1 kB / 0.5911 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001988/0.8819, allocations: 110.1 kB / 0.5913 GB, free: 131.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01273/0.8947, allocations: 11.1 MB / 0.6021 GB, free: 131.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8947, allocations: 2.062 kB / 0.6021 GB, free: 131.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004353/0.8991, allocations: 1.1 MB / 0.6032 GB, free: 131.6 MB / 446.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.001241/0.9003, allocations: 0.5083 MB / 0.6037 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006722/0.9071, allocations: 4.744 MB / 0.6083 GB, free: 130.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.9071, allocations: 0 / 0.6083 GB, free: 130.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004459/0.9115, allocations: 3.326 MB / 0.6115 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/0.9142, allocations: 479.9 kB / 0.612 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02258/0.9368, allocations: 20.23 MB / 0.6318 GB, free: 110.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003361/0.9402, allocations: 4.202 MB / 0.6359 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002107/0.9423, allocations: 349.5 kB / 0.6362 GB, free: 107.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005921/0.9429, allocations: 175.4 kB / 0.6364 GB, free: 107.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.9429, allocations: 3.938 kB / 0.6364 GB, free: 107.1 MB / 446.1 MB Notification: Performance of Templates: time 0.09251/1.035, allocations: 62.26 MB / 0.6972 GB, free: 45.3 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","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches