Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009524/0.0009524, allocations: 100.9 kB / 16.65 MB, free: 6.254 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.001228/0.001229, allocations: 180.4 kB / 17.57 MB, free: 5.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0004866/0.0004866, allocations: 8.422 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09493, allocations: 47.59 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01169/0.1067, allocations: 10.31 MB / 338.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007217/0.1139, allocations: 3.465 MB / 342.1 MB, free: 5.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.1154, allocations: 39.81 kB / 342.1 MB, free: 5.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007912/0.1233, allocations: 8.137 MB / 350.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006373/0.1297, allocations: 4.555 MB / 354.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002217/0.132, allocations: 0.8273 MB / 355.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006725/0.1387, allocations: 5.092 MB / 360.7 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.1401, allocations: 0.7613 MB / 361.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00405/0.1441, allocations: 2.532 MB / 364 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005998/0.1502, allocations: 4.885 MB / 368.9 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000657/0.1508, allocations: 144 kB / 369.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008299/0.1517, allocations: 176 kB / 369.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001364/0.1531, allocations: 1.74 MB / 371 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00252/0.1556, allocations: 2.59 MB / 373.6 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1833/0.3389, allocations: 6.784 MB / 380.4 MB, free: 31.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3389, allocations: 0 / 380.4 MB, free: 31.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.339, allocations: 1.375 kB / 380.4 MB, free: 31.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002558/0.3392, allocations: 3.719 kB / 380.4 MB, free: 31.08 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.011/0.3502, allocations: 6.604 MB / 387 MB, free: 27.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3503, allocations: 14.09 kB / 387 MB, free: 27.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.3514, allocations: 0.8513 MB / 387.8 MB, free: 27.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003778/0.3552, allocations: 3.147 MB / 391 MB, free: 25.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.3553, allocations: 157 kB / 391.1 MB, free: 25.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003251/0.3557, allocations: 216.1 kB / 391.3 MB, free: 25.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004355/0.36, allocations: 2.138 MB / 393.5 MB, free: 25.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.623e-05/0.3601, allocations: 2.25 kB / 393.5 MB, free: 25.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.3603, allocations: 86.22 kB / 393.6 MB, free: 25.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.823e-05/0.3603, allocations: 50 kB / 393.6 MB, free: 25.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00404/0.3644, allocations: 1.957 MB / 395.6 MB, free: 25.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01511/0.3795, allocations: 8.977 MB / 404.5 MB, free: 21.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003306/0.3829, allocations: 2.351 MB / 406.9 MB, free: 19.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002269/0.3852, allocations: 1.387 MB / 408.3 MB, free: 19.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/0.3853, allocations: 35.91 kB / 408.3 MB, free: 19.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001837/0.3871, allocations: 1.186 MB / 409.5 MB, free: 18.56 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 4.368e-06/0.3871, allocations: 0 / 409.5 MB, free: 18.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.0624/0.4496, allocations: 23.08 MB / 432.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03045/0.48, allocations: 13.23 MB / 445.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0163/0.4964, allocations: 14.89 MB / 460.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006235/0.497, allocations: 89.7 kB / 460.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003364/0.5004, allocations: 3.721 MB / 464.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001682/0.5021, allocations: 1.215 MB / 465.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004907/0.5026, allocations: 258.6 kB / 466 MB, free: 11.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5028, allocations: 309 kB / 466.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00286/0.5056, allocations: 1.272 MB / 467.6 MB, free: 9.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00293/0.5086, allocations: 1.645 MB / 469.2 MB, free: 8.184 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005528/0.5141, allocations: 3.04 MB / 472.2 MB, free: 5.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.5141, allocations: 0 / 472.2 MB, free: 5.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01208/0.5262, allocations: 5.248 MB / 477.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.5263, allocations: 8 kB / 477.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.5263, allocations: 4 kB / 477.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005567/0.5319, allocations: 1.398 MB / 478.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00275/0.5347, allocations: 0.5489 MB / 479.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02656/0.5612, allocations: 21.94 MB / 0.4896 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003685/0.565, allocations: 147.9 kB / 0.4898 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004038/0.5654, allocations: 119.9 kB / 0.4899 GB, free: 6.637 MB / 398.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.003752/0.5691, allocations: 2.179 MB / 0.492 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00177/0.5709, allocations: 0.8214 MB / 0.4928 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/0.583, allocations: 5.268 MB / 0.498 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/0.583, allocations: 38.62 kB / 0.498 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.583, allocations: 4 kB / 0.498 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.933e-05/0.5831, allocations: 15.94 kB / 0.498 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0202/0.6033, allocations: 11.14 MB / 0.5089 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/0.6033, allocations: 4 kB / 0.5089 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002484/0.6058, allocations: 470.8 kB / 0.5094 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005591/0.6114, allocations: 1.341 MB / 0.5107 GB, free: 1.426 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003157/0.6118, allocations: 75.97 kB / 0.5107 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.204/0.8157, allocations: 20.04 MB / 0.5303 GB, free: 141.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02547/0.8412, allocations: 11.58 MB / 0.5416 GB, free: 138 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01386/0.8551, allocations: 7.014 MB / 0.5485 GB, free: 135.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/0.857, allocations: 0.7587 MB / 0.5492 GB, free: 135 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006023/0.8576, allocations: 72.73 kB / 0.5493 GB, free: 135 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/0.8597, allocations: 122.8 kB / 0.5494 GB, free: 134.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007496/0.8604, allocations: 268.5 kB / 0.5497 GB, free: 134.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001915/0.8606, allocations: 98.88 kB / 0.5498 GB, free: 134.9 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00931/0.87, allocations: 11.12 MB / 0.5606 GB, free: 128.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.87, allocations: 0 / 0.5606 GB, free: 128.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003893/0.8739, allocations: 1.074 MB / 0.5617 GB, free: 127.7 MB / 430.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.001122/0.875, allocations: 0.5013 MB / 0.5622 GB, free: 127.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006625/0.8817, allocations: 4.843 MB / 0.5669 GB, free: 122.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.8817, allocations: 4 kB / 0.5669 GB, free: 122.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003972/0.8857, allocations: 3.292 MB / 0.5701 GB, free: 119.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00473/0.8904, allocations: 0.5253 MB / 0.5706 GB, free: 119.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02347/0.9139, allocations: 20.38 MB / 0.5905 GB, free: 99.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003239/0.9172, allocations: 4.014 MB / 0.5944 GB, free: 94.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002085/0.9193, allocations: 310.1 kB / 0.5947 GB, free: 94.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006163/0.9199, allocations: 163.4 kB / 0.5949 GB, free: 94.51 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.9199, allocations: 0 / 0.5949 GB, free: 94.51 MB / 430.1 MB Notification: Performance of Templates: time 0.09323/1.013, allocations: 61.42 MB / 0.6549 GB, free: 33 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)