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.001217/0.001217, allocations: 96.81 kB / 17.31 MB, free: 5.941 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.00135/0.00135, allocations: 175.2 kB / 18.21 MB, free: 5.422 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.1/1.1, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002072/0.0002072, allocations: 11.94 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06806/0.06828, allocations: 50.41 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008627/0.07691, allocations: 10.42 MB / 362.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005225/0.08215, allocations: 3.569 MB / 366.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.08331, allocations: 31.94 kB / 366.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1227/0.206, allocations: 8.129 MB / 374.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005578/0.2116, allocations: 4.561 MB / 379.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.2135, allocations: 0.8511 MB / 380.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006071/0.2195, allocations: 5.079 MB / 385.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.2206, allocations: 0.7582 MB / 385.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003583/0.2242, allocations: 2.545 MB / 388.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003938/0.2281, allocations: 4.885 MB / 393.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002674/0.2284, allocations: 140 kB / 393.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004247/0.2288, allocations: 178.9 kB / 393.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007061/0.2295, allocations: 1.728 MB / 395.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.2307, allocations: 2.591 MB / 398 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002503/0.2332, allocations: 5.452 MB / 403.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2332, allocations: 0 / 403.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2332, allocations: 0 / 403.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.731e-05/0.2332, allocations: 0 / 403.4 MB, free: 15.12 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.007749/0.241, allocations: 6.605 MB / 410 MB, free: 8.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.241, allocations: 8.031 kB / 410 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006698/0.2417, allocations: 0.8494 MB / 410.9 MB, free: 7.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002921/0.2446, allocations: 3.153 MB / 414 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.2448, allocations: 160.5 kB / 414.2 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00026/0.245, allocations: 200.6 kB / 414.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003305/0.2483, allocations: 2.147 MB / 416.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.2484, allocations: 3.906 kB / 416.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001654/0.2486, allocations: 87.98 kB / 416.6 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-05/0.2486, allocations: 52 kB / 416.7 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003353/0.252, allocations: 1.95 MB / 418.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/0.2624, allocations: 8.977 MB / 427.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003208/0.2656, allocations: 2.351 MB / 429.9 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002308/0.268, allocations: 1.388 MB / 431.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.2681, allocations: 41.25 kB / 431.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001851/0.2699, allocations: 1.187 MB / 432.6 MB, free: 1.691 MB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 4.93e-06/0.2699, allocations: 0 / 432.6 MB, free: 1.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.05583/0.3258, allocations: 23.09 MB / 455.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02667/0.3525, allocations: 13.22 MB / 468.9 MB, free: 12.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01326/0.3657, allocations: 14.89 MB / 483.8 MB, free: 13.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.3659, allocations: 85.7 kB / 483.8 MB, free: 13.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002773/0.3687, allocations: 3.732 MB / 487.6 MB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008161/0.3695, allocations: 1.209 MB / 488.8 MB, free: 8.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/0.3699, allocations: 256.8 kB / 489 MB, free: 8.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.255e-05/0.3699, allocations: 305.1 kB / 489.3 MB, free: 8.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002232/0.3722, allocations: 1.28 MB / 490.6 MB, free: 7.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/0.3746, allocations: 1.643 MB / 492.2 MB, free: 5.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004733/0.3794, allocations: 3.036 MB / 495.3 MB, free: 2.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.3794, allocations: 4 kB / 495.3 MB, free: 2.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009672/0.3891, allocations: 5.249 MB / 0.4888 GB, free: 12.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3891, allocations: 8 kB / 0.4888 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.3891, allocations: 4 kB / 0.4888 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004838/0.3939, allocations: 1.401 MB / 0.4902 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/0.3962, allocations: 0.5461 MB / 0.4907 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02386/0.4201, allocations: 21.94 MB / 0.5121 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002135/0.4223, allocations: 151.8 kB / 0.5123 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/0.4225, allocations: 115.9 kB / 0.5124 GB, free: 3.57 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 ($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 (309): * Single equations (assignments): 300 * 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,4,100.0%), (1,3,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.00252/0.425, allocations: 2.184 MB / 0.5145 GB, free: 1.375 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007311/0.4257, allocations: 0.8175 MB / 0.5153 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/0.4358, allocations: 5.266 MB / 0.5205 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-05/0.4358, allocations: 36 kB / 0.5205 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/0.4358, allocations: 4 kB / 0.5205 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.872e-05/0.4359, allocations: 23.92 kB / 0.5205 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1606/0.5964, allocations: 11.13 MB / 0.5314 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.752e-05/0.5965, allocations: 0.8125 kB / 0.5314 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/0.5991, allocations: 468.2 kB / 0.5318 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005292/0.6044, allocations: 1.344 MB / 0.5332 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000374/0.6048, allocations: 72.88 kB / 0.5332 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01905/0.6238, allocations: 20.05 MB / 0.5528 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02164/0.6455, allocations: 11.59 MB / 0.5641 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01093/0.6564, allocations: 7.013 MB / 0.571 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007901/0.6572, allocations: 0.7529 MB / 0.5717 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004297/0.6577, allocations: 71.48 kB / 0.5718 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001793/0.6595, allocations: 121.3 kB / 0.5719 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000478/0.6599, allocations: 269.3 kB / 0.5722 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.6601, allocations: 95.14 kB / 0.5722 GB, free: 119.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007398/0.6675, allocations: 11.12 MB / 0.5831 GB, free: 113.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6675, allocations: 0 / 0.5831 GB, free: 113.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002366/0.6699, allocations: 1.083 MB / 0.5842 GB, free: 112.1 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 (253): * Single equations (assignments): 242 * 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.0009637/0.6709, allocations: 0.5016 MB / 0.5846 GB, free: 111.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005518/0.6764, allocations: 4.84 MB / 0.5894 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.6764, allocations: 0 / 0.5894 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003429/0.6798, allocations: 3.3 MB / 0.5926 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003353/0.6832, allocations: 0.5285 MB / 0.5931 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/0.6996, allocations: 20.73 MB / 0.6134 GB, free: 82.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002612/0.7022, allocations: 4.012 MB / 0.6173 GB, free: 78.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008881/0.7031, allocations: 195.4 kB / 0.6175 GB, free: 78.37 MB / 446.1 MB Notification: Performance of SimCode: time 4.91e-07/0.7031, allocations: 0 / 0.6175 GB, free: 78.37 MB / 446.1 MB Notification: Performance of Templates: time 1.109/1.812, allocations: 0.5403 GB / 1.158 GB, free: 56.47 MB / 478.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/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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches