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.002878/0.002877, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.96/3.96, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001797/0.001797, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006557/0.0006561, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.169, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.02174/0.1908, allocations: 8.784 MB / 383.3 MB, free: 6.617 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.2049, allocations: 3.536 MB / 386.9 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003377/0.2083, allocations: 35.88 kB / 386.9 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.4139/0.6223, allocations: 7.953 MB / 394.9 MB, free: 8.875 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01476/0.6372, allocations: 4.618 MB / 399.5 MB, free: 8.238 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005035/0.6423, allocations: 0.558 MB / 400 MB, free: 8.078 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01351/0.6558, allocations: 3.476 MB / 403.5 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002925/0.6588, allocations: 0.6833 MB / 404.2 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009488/0.6684, allocations: 2.5 MB / 406.7 MB, free: 6.324 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01238/0.6809, allocations: 3.756 MB / 410.4 MB, free: 5.324 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002334/0.6833, allocations: 140.3 kB / 410.6 MB, free: 5.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003268/0.6866, allocations: 158.5 kB / 410.7 MB, free: 5.316 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003937/0.6907, allocations: 1.721 MB / 412.5 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002938/0.6937, allocations: 1.073 MB / 413.5 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.7058, allocations: 5.387 MB / 418.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.7059, allocations: 0 / 418.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.358e-06/0.7059, allocations: 0 / 418.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003267/0.7063, allocations: 0 / 418.9 MB, free: 14.82 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.02985/0.7361, allocations: 6.69 MB / 425.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.448e-05/0.7362, allocations: 12.03 kB / 425.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003686/0.74, allocations: 0.8454 MB / 426.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01428/0.7543, allocations: 2.903 MB / 429.4 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004353/0.7548, allocations: 155.6 kB / 429.5 MB, free: 5.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001419/0.7563, allocations: 203.3 kB / 429.7 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01406/0.7704, allocations: 2.075 MB / 431.8 MB, free: 3.223 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001907/0.7707, allocations: 4 kB / 431.8 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008493/0.7715, allocations: 80 kB / 431.9 MB, free: 3.141 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.7717, allocations: 54.08 kB / 431.9 MB, free: 3.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.7849, allocations: 1.866 MB / 433.8 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04396/0.829, allocations: 8.779 MB / 442.6 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/0.8404, allocations: 2.258 MB / 444.8 MB, free: 6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004935/0.8409, allocations: 37.47 kB / 444.9 MB, free: 5.973 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00706/0.848, allocations: 1.131 MB / 446 MB, free: 4.809 MB / 314.7 MB Notification: Performance of pre-optimization done (n=242): time 1.442e-05/0.8481, allocations: 0 / 446 MB, free: 4.809 MB / 314.7 MB Notification: Performance of matching and sorting (n=375): time 0.1725/1.021, allocations: 21.43 MB / 467.4 MB, free: 15.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2763/1.297, allocations: 30.15 MB / 497.6 MB, free: 300 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07265/1.37, allocations: 14.86 MB / 0.5004 GB, free: 1.492 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001213/1.371, allocations: 86.45 kB / 0.5005 GB, free: 1.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01046/1.382, allocations: 2.877 MB / 0.5033 GB, free: 14.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003965/1.386, allocations: 1.244 MB / 0.5045 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/1.387, allocations: 72 kB / 0.5046 GB, free: 13.21 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0007867/1.388, allocations: 434.1 kB / 0.505 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009589/1.397, allocations: 1.208 MB / 0.5062 GB, free: 11.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008684/1.406, allocations: 1.559 MB / 0.5077 GB, free: 9.934 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/1.42, allocations: 1.406 MB / 0.5091 GB, free: 8.527 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.264e-05/1.42, allocations: 11.92 kB / 0.5091 GB, free: 8.516 MB / 394.7 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.04814/1.468, allocations: 4.404 MB / 0.5134 GB, free: 4.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.757e-05/1.468, allocations: 8 kB / 0.5134 GB, free: 4.066 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.128e-05/1.468, allocations: 8 kB / 0.5134 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0165/1.485, allocations: 1.352 MB / 0.5147 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009312/1.494, allocations: 0.55 MB / 0.5153 GB, free: 2.129 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8439/2.338, allocations: 21.24 MB / 0.536 GB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008294/2.346, allocations: 166.6 kB / 0.5362 GB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001382/2.348, allocations: 120.4 kB / 0.5363 GB, free: 118.8 MB / 410.7 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.01714/2.365, allocations: 2.192 MB / 0.5384 GB, free: 118.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00583/2.371, allocations: 0.8204 MB / 0.5392 GB, free: 118.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04698/2.418, allocations: 5.155 MB / 0.5443 GB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01705/2.435, allocations: 2.274 MB / 0.5465 GB, free: 117.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001213/2.435, allocations: 5.406 kB / 0.5465 GB, free: 117.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002635/2.436, allocations: 18.73 kB / 0.5465 GB, free: 117.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08041/2.516, allocations: 10.79 MB / 0.557 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.586e-05/2.516, allocations: 0.875 kB / 0.557 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007802/2.524, allocations: 476.1 kB / 0.5575 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0259/2.55, allocations: 1.382 MB / 0.5588 GB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001387/2.552, allocations: 79.97 kB / 0.5589 GB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07412/2.626, allocations: 19.69 MB / 0.5782 GB, free: 97.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2596/2.885, allocations: 26.78 MB / 0.6043 GB, free: 71.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04828/2.934, allocations: 6.974 MB / 0.6111 GB, free: 63.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005593/2.94, allocations: 0.7531 MB / 0.6119 GB, free: 63.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004365/2.944, allocations: 68 kB / 0.6119 GB, free: 63.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01144/2.956, allocations: 139.9 kB / 0.6121 GB, free: 62.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002495/2.958, allocations: 279.4 kB / 0.6123 GB, free: 62.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001096/2.959, allocations: 99.95 kB / 0.6124 GB, free: 62.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.04108/3, allocations: 11.1 MB / 0.6233 GB, free: 51.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.122e-06/3, allocations: 1.203 kB / 0.6233 GB, free: 51.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0103/3.011, allocations: 1.1 MB / 0.6243 GB, free: 50.46 MB / 410.7 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.00604/3.017, allocations: 0.4959 MB / 0.6248 GB, free: 50 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02837/3.045, allocations: 4.749 MB / 0.6295 GB, free: 45.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.558e-05/3.045, allocations: 4 kB / 0.6295 GB, free: 45.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01656/3.062, allocations: 3.322 MB / 0.6327 GB, free: 41.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008501/3.071, allocations: 476.7 kB / 0.6332 GB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0842/3.155, allocations: 20.58 MB / 0.6533 GB, free: 20.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01322/3.168, allocations: 4.198 MB / 0.6574 GB, free: 16.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003021/3.171, allocations: 199.3 kB / 0.6575 GB, free: 16.16 MB / 410.7 MB Notification: Performance of SimCode: time 4.258e-06/3.171, allocations: 0 / 0.6575 GB, free: 16.16 MB / 410.7 MB Notification: Performance of Templates: time 4.2/7.371, allocations: 0.5292 GB / 1.187 GB, free: 152.4 MB / 458.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/jenkins1/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