Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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 3.2.3+maint.om/package.mo", uses=false) 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 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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0009417/0.0009416, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001074/0.001074, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.663/1.663, allocations: 205.4 MB / 222.1 MB, free: 5.461 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006807/0.0006811, allocations: 8 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2865, allocations: 47.58 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009614/0.2961, allocations: 9.632 MB / 336.1 MB, free: 9.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007788/0.3039, allocations: 3.407 MB / 339.5 MB, free: 6.398 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.306, allocations: 39.88 kB / 339.6 MB, free: 6.359 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007895/0.3139, allocations: 8.114 MB / 347.7 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006865/0.3208, allocations: 4.532 MB / 352.2 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002275/0.3231, allocations: 0.5616 MB / 352.8 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006023/0.3292, allocations: 4.433 MB / 357.2 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.3303, allocations: 0.6892 MB / 357.9 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003428/0.3337, allocations: 2.502 MB / 360.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004893/0.3386, allocations: 4.139 MB / 364.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005023/0.3392, allocations: 144 kB / 364.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000646/0.3398, allocations: 172 kB / 364.8 MB, free: 13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.3411, allocations: 1.732 MB / 366.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.3422, allocations: 1.072 MB / 367.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004702/0.3469, allocations: 5.452 MB / 373.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3469, allocations: 0 / 373.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.347, allocations: 0 / 373.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001882/0.3471, allocations: 0 / 373.1 MB, free: 4.719 MB / 302.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.01075/0.3579, allocations: 6.695 MB / 379.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.358, allocations: 8.031 kB / 379.8 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001888/0.3599, allocations: 0.8484 MB / 380.6 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004469/0.3643, allocations: 2.78 MB / 383.4 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.3645, allocations: 156.1 kB / 383.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002735/0.3648, allocations: 203.9 kB / 383.8 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003975/0.3688, allocations: 2.127 MB / 385.9 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.592e-05/0.3688, allocations: 0 / 385.9 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001743/0.369, allocations: 87.94 kB / 386 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-05/0.3691, allocations: 48 kB / 386 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003716/0.3728, allocations: 1.934 MB / 388 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01606/0.3889, allocations: 8.981 MB / 397 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00389/0.3928, allocations: 2.334 MB / 399.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002552/0.3954, allocations: 1.373 MB / 400.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001437/0.3955, allocations: 46.27 kB / 400.7 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002221/0.3978, allocations: 1.163 MB / 401.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 4.058e-06/0.3978, allocations: 0 / 401.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.06784/0.4656, allocations: 22.97 MB / 424.8 MB, free: 56 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02922/0.4949, allocations: 13.19 MB / 438 MB, free: 2.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01716/0.5121, allocations: 14.91 MB / 452.9 MB, free: 3.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008008/0.513, allocations: 85.7 kB / 453 MB, free: 3.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2428/0.7558, allocations: 3.724 MB / 456.7 MB, free: 108 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002212/0.7581, allocations: 1.219 MB / 458 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003195/0.7584, allocations: 68 kB / 458 MB, free: 107.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002515/0.7587, allocations: 430 kB / 458.4 MB, free: 107.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003237/0.7619, allocations: 1.262 MB / 459.7 MB, free: 107.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002714/0.7647, allocations: 1.631 MB / 461.3 MB, free: 107.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.7675, allocations: 1.464 MB / 462.8 MB, free: 107.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.7675, allocations: 1.312 kB / 462.8 MB, free: 107.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01039/0.7779, allocations: 5.209 MB / 468 MB, free: 105.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.778, allocations: 10.92 kB / 468 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.352e-05/0.778, allocations: 6 kB / 468 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004852/0.7829, allocations: 1.393 MB / 469.4 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/0.7856, allocations: 0.5527 MB / 470 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0216/0.8072, allocations: 21.89 MB / 491.9 MB, free: 84.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00341/0.8106, allocations: 141 kB / 492 MB, free: 84.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000426/0.8111, allocations: 112 kB / 492.1 MB, free: 83.98 MB / 382.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 ($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.002963/0.8141, allocations: 2.188 MB / 494.3 MB, free: 81.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008404/0.8149, allocations: 0.8175 MB / 495.1 MB, free: 80.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009436/0.8244, allocations: 5.249 MB / 0.4886 GB, free: 75.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.502e-05/0.8244, allocations: 36 kB / 0.4887 GB, free: 75.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.791e-05/0.8244, allocations: 7.562 kB / 0.4887 GB, free: 75.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.917e-05/0.8245, allocations: 19.92 kB / 0.4887 GB, free: 75.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/0.8433, allocations: 11.09 MB / 0.4995 GB, free: 64.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/0.8434, allocations: 8.094 kB / 0.4995 GB, free: 64.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/0.8457, allocations: 471.3 kB / 0.5 GB, free: 63.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004777/0.8505, allocations: 1.342 MB / 0.5013 GB, free: 62.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003693/0.8509, allocations: 75.97 kB / 0.5014 GB, free: 62.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01926/0.8702, allocations: 19.99 MB / 0.5209 GB, free: 41.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0233/0.8935, allocations: 11.56 MB / 0.5322 GB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/0.9087, allocations: 6.975 MB / 0.539 GB, free: 22.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002862/0.9117, allocations: 0.7521 MB / 0.5397 GB, free: 21.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001753/0.9134, allocations: 68 kB / 0.5398 GB, free: 21.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002972/0.9164, allocations: 127.9 kB / 0.5399 GB, free: 21.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009509/0.9174, allocations: 267.3 kB / 0.5402 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002048/0.9176, allocations: 95.97 kB / 0.5403 GB, free: 21.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01115/0.9288, allocations: 11.14 MB / 0.5512 GB, free: 10.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.32e-07/0.9288, allocations: 0 / 0.5512 GB, free: 10.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004846/0.9337, allocations: 1.078 MB / 0.5522 GB, free: 8.965 MB / 382.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 (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.001262/0.935, allocations: 0.5024 MB / 0.5527 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00724/0.9422, allocations: 4.809 MB / 0.5574 GB, free: 3.539 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/0.9423, allocations: 8 kB / 0.5574 GB, free: 3.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004409/0.9467, allocations: 3.286 MB / 0.5606 GB, free: 136 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004142/0.9508, allocations: 0.5414 MB / 0.5611 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03125/0.9821, allocations: 19.5 MB / 0.5802 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005234/0.9875, allocations: 4.016 MB / 0.5841 GB, free: 8.023 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002293/0.9898, allocations: 304.9 kB / 0.5844 GB, free: 7.723 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006574/0.9905, allocations: 171.4 kB / 0.5846 GB, free: 7.555 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9905, allocations: 3.938 kB / 0.5846 GB, free: 7.551 MB / 414.1 MB Notification: Performance of Templates: time 0.3056/1.296, allocations: 60.1 MB / 0.6433 GB, free: 119.1 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)