Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 172.8 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008795/0.0008794, allocations: 92.72 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003893/0.0003894, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2944, allocations: 47.58 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009842/0.3043, allocations: 9.64 MB / 384.7 MB, free: 37.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007183/0.3115, allocations: 3.397 MB / 388.1 MB, free: 35.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002769/0.3143, allocations: 42.16 kB / 388.2 MB, free: 35.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006858/0.3212, allocations: 8.109 MB / 396.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006566/0.3278, allocations: 4.536 MB / 400.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002638/0.3305, allocations: 0.5578 MB / 401.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006783/0.3373, allocations: 4.492 MB / 405.9 MB, free: 17.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001557/0.3389, allocations: 0.7581 MB / 406.6 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004183/0.3431, allocations: 2.505 MB / 409.1 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005958/0.3491, allocations: 4.136 MB / 413.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001275/0.3504, allocations: 144 kB / 413.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.3521, allocations: 176 kB / 413.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.3532, allocations: 1.724 MB / 415.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002038/0.3553, allocations: 2.406 MB / 417.7 MB, free: 5.961 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003518/0.3588, allocations: 5.448 MB / 423.2 MB, free: 0.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.3588, allocations: 0 / 423.2 MB, free: 0.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3588, allocations: 3.938 kB / 423.2 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002058/0.3591, allocations: 4 kB / 423.2 MB, free: 0.4922 MB / 298.7 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.01154/0.3706, allocations: 6.601 MB / 429.8 MB, free: 9.793 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.3707, allocations: 8.031 kB / 429.8 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001426/0.3721, allocations: 0.8494 MB / 430.6 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004472/0.3766, allocations: 3.163 MB / 433.8 MB, free: 5.688 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.3768, allocations: 156.5 kB / 433.9 MB, free: 5.531 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003273/0.3771, allocations: 208 kB / 434.1 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004247/0.3813, allocations: 2.123 MB / 436.3 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.603e-05/0.3814, allocations: 4 kB / 436.3 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002034/0.3816, allocations: 87.98 kB / 436.4 MB, free: 3.047 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.532e-05/0.3817, allocations: 48 kB / 436.4 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004119/0.3858, allocations: 1.938 MB / 438.3 MB, free: 1.051 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01691/0.4027, allocations: 8.973 MB / 447.3 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004092/0.4069, allocations: 2.329 MB / 449.6 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002593/0.4095, allocations: 1.388 MB / 451 MB, free: 4.082 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001517/0.4097, allocations: 42.27 kB / 451.1 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002223/0.4119, allocations: 1.171 MB / 452.2 MB, free: 2.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=242): time 4.729e-06/0.4119, allocations: 0 / 452.2 MB, free: 2.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=367): time 0.06844/0.4804, allocations: 23.04 MB / 475.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03042/0.5109, allocations: 13.2 MB / 488.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1912/0.7021, allocations: 14.91 MB / 0.4916 GB, free: 102.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000685/0.7028, allocations: 83.55 kB / 0.4917 GB, free: 102.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004786/0.7077, allocations: 3.729 MB / 0.4953 GB, free: 100.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001462/0.7091, allocations: 1.213 MB / 0.4965 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005397/0.7097, allocations: 69.44 kB / 0.4966 GB, free: 100.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002668/0.71, allocations: 430.4 kB / 0.497 GB, free: 99.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00328/0.7133, allocations: 1.262 MB / 0.4982 GB, free: 99.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003199/0.7165, allocations: 1.63 MB / 0.4998 GB, free: 98.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005501/0.722, allocations: 3.01 MB / 0.5027 GB, free: 96.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.546e-05/0.7221, allocations: 1.875 kB / 0.5027 GB, free: 96.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01055/0.7326, allocations: 5.224 MB / 0.5078 GB, free: 94.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.7327, allocations: 7.312 kB / 0.5079 GB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.7327, allocations: 10.41 kB / 0.5079 GB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00525/0.738, allocations: 1.392 MB / 0.5092 GB, free: 94.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002778/0.7408, allocations: 0.5536 MB / 0.5098 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02224/0.763, allocations: 21.89 MB / 0.5311 GB, free: 74.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/0.7663, allocations: 143.9 kB / 0.5313 GB, free: 74.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002995/0.7666, allocations: 112 kB / 0.5314 GB, free: 74.01 MB / 378.7 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 (309): * Single equations (assignments): 300 * 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.002732/0.7693, allocations: 2.192 MB / 0.5335 GB, free: 71.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007663/0.7701, allocations: 0.8151 MB / 0.5343 GB, free: 70.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009852/0.78, allocations: 5.243 MB / 0.5394 GB, free: 65.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-05/0.78, allocations: 39.98 kB / 0.5395 GB, free: 65.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.988e-05/0.7801, allocations: 4 kB / 0.5395 GB, free: 65.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.113e-05/0.7801, allocations: 27.86 kB / 0.5395 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/0.7974, allocations: 11.1 MB / 0.5504 GB, free: 54.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/0.7975, allocations: 3.938 kB / 0.5504 GB, free: 54.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002305/0.7998, allocations: 478.8 kB / 0.5508 GB, free: 54.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004885/0.8047, allocations: 1.338 MB / 0.5521 GB, free: 52.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004544/0.8052, allocations: 75.97 kB / 0.5522 GB, free: 52.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/0.8243, allocations: 20 MB / 0.5717 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02231/0.8467, allocations: 11.57 MB / 0.583 GB, free: 19.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/0.8596, allocations: 6.988 MB / 0.5898 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/0.8611, allocations: 0.7561 MB / 0.5906 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007233/0.8618, allocations: 67.98 kB / 0.5906 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/0.8639, allocations: 123.9 kB / 0.5908 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006442/0.8646, allocations: 271.4 kB / 0.591 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001915/0.8648, allocations: 91.98 kB / 0.5911 GB, free: 11.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01001/0.8748, allocations: 11.14 MB / 0.602 GB, free: 40 kB / 378.7 MB Notification: Performance of sort global known variables: time 9.62e-07/0.8749, allocations: 0 / 0.602 GB, free: 40 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.004857/0.8797, allocations: 1.086 MB / 0.603 GB, free: 14.95 MB / 394.7 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 (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.001343/0.8811, allocations: 0.4896 MB / 0.6035 GB, free: 14.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008743/0.8898, allocations: 4.811 MB / 0.6082 GB, free: 9.566 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.8899, allocations: 0 / 0.6082 GB, free: 9.566 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005732/0.8956, allocations: 3.299 MB / 0.6114 GB, free: 6.156 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004812/0.9005, allocations: 0.5163 MB / 0.612 GB, free: 5.641 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03031/0.9308, allocations: 19.86 MB / 0.6314 GB, free: 1.703 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005092/0.936, allocations: 4.008 MB / 0.6353 GB, free: 13.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/0.9375, allocations: 195.4 kB / 0.6355 GB, free: 13.46 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/0.9375, allocations: 4 kB / 0.6355 GB, free: 13.46 MB / 426.7 MB Notification: Performance of Templates: time 1.478/2.415, allocations: 0.5403 GB / 1.176 GB, free: 116.8 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches