Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001025/0.001025, allocations: 92.16 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.001149/0.001149, 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.494/1.494, allocations: 205.4 MB / 222.1 MB, free: 5.715 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.0004389/0.000439, allocations: 16 kB / 278.9 MB, free: 12.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2328, allocations: 47.58 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01011/0.243, allocations: 9.631 MB / 336.1 MB, free: 9.852 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006865/0.2499, allocations: 3.413 MB / 339.5 MB, free: 6.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.2516, allocations: 35.88 kB / 339.6 MB, free: 6.395 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007379/0.259, allocations: 8.11 MB / 347.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005617/0.2646, allocations: 4.536 MB / 352.2 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001803/0.2664, allocations: 0.5578 MB / 352.8 MB, free: 9.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004967/0.2714, allocations: 4.441 MB / 357.2 MB, free: 4.711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009582/0.2724, allocations: 0.6814 MB / 357.9 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.2747, allocations: 2.513 MB / 360.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004093/0.2789, allocations: 4.136 MB / 364.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003395/0.2792, allocations: 140 kB / 364.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004723/0.2797, allocations: 179.9 kB / 364.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.281, allocations: 1.721 MB / 366.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00079/0.2818, allocations: 1.079 MB / 367.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00419/0.286, allocations: 5.448 MB / 373.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.286, allocations: 0 / 373.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.286, allocations: 0 / 373.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001291/0.2861, allocations: 0 / 373.1 MB, free: 4.754 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.00983/0.296, allocations: 6.699 MB / 379.8 MB, free: 13.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.296, allocations: 8.031 kB / 379.8 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000934/0.297, allocations: 0.8523 MB / 380.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003722/0.3007, allocations: 2.78 MB / 383.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.3008, allocations: 152.1 kB / 383.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002735/0.3011, allocations: 211.8 kB / 383.8 MB, free: 9.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003956/0.3051, allocations: 2.119 MB / 385.9 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-05/0.3051, allocations: 4 kB / 385.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002257/0.3054, allocations: 87.98 kB / 386 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.064e-05/0.3054, allocations: 52 kB / 386 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00385/0.3093, allocations: 1.93 MB / 388 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01458/0.3239, allocations: 8.977 MB / 396.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00376/0.3277, allocations: 2.33 MB / 399.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002582/0.3303, allocations: 1.381 MB / 400.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002227/0.3305, allocations: 46.22 kB / 400.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002123/0.3326, allocations: 1.171 MB / 401.9 MB, free: 7.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 3.767e-06/0.3327, allocations: 0 / 401.9 MB, free: 7.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.06096/0.3936, allocations: 22.97 MB / 424.8 MB, free: 76 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02943/0.4231, allocations: 13.18 MB / 438 MB, free: 2.523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01632/0.4394, allocations: 14.91 MB / 452.9 MB, free: 3.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005954/0.4401, allocations: 85.7 kB / 453 MB, free: 3.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1762/0.6162, allocations: 3.721 MB / 456.7 MB, free: 107.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001421/0.6177, allocations: 1.217 MB / 458 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002365/0.6179, allocations: 67.19 kB / 458 MB, free: 107.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.6181, allocations: 435.8 kB / 458.4 MB, free: 107.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002731/0.6209, allocations: 1.261 MB / 459.7 MB, free: 107.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002476/0.6233, allocations: 1.631 MB / 461.3 MB, free: 107.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/0.6259, allocations: 1.46 MB / 462.8 MB, free: 107.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.6259, allocations: 2.25 kB / 462.8 MB, free: 107.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009787/0.6357, allocations: 5.216 MB / 468 MB, free: 105.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.6358, allocations: 7.719 kB / 468 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.6358, allocations: 7.797 kB / 468 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004592/0.6404, allocations: 1.39 MB / 469.4 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/0.6427, allocations: 0.5507 MB / 470 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02036/0.6631, allocations: 21.9 MB / 491.9 MB, free: 84.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002775/0.6659, allocations: 139.2 kB / 492 MB, free: 84.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002305/0.6662, allocations: 116 kB / 492.1 MB, free: 84 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.002554/0.6687, allocations: 2.188 MB / 494.3 MB, free: 81.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006403/0.6694, allocations: 0.8175 MB / 495.1 MB, free: 80.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009082/0.6785, allocations: 5.233 MB / 0.4886 GB, free: 75.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/0.6785, allocations: 39.95 kB / 0.4887 GB, free: 75.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.6785, allocations: 4 kB / 0.4887 GB, free: 75.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.552e-05/0.6785, allocations: 19.92 kB / 0.4887 GB, free: 75.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.6933, allocations: 11.11 MB / 0.4995 GB, free: 64.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.6934, allocations: 8.094 kB / 0.4995 GB, free: 64.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/0.6954, allocations: 467.3 kB / 0.5 GB, free: 64.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004403/0.6998, allocations: 1.343 MB / 0.5013 GB, free: 62.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/0.7, allocations: 79.92 kB / 0.5014 GB, free: 62.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01799/0.718, allocations: 19.99 MB / 0.5209 GB, free: 41.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02049/0.7386, allocations: 11.54 MB / 0.5322 GB, free: 29.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/0.7504, allocations: 6.973 MB / 0.539 GB, free: 22.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.7519, allocations: 0.7599 MB / 0.5397 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005177/0.7524, allocations: 64 kB / 0.5398 GB, free: 21.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/0.7542, allocations: 127.9 kB / 0.5399 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005752/0.7548, allocations: 271.5 kB / 0.5402 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/0.755, allocations: 95.97 kB / 0.5403 GB, free: 21.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.009229/0.7642, allocations: 11.14 MB / 0.5511 GB, free: 10.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.42e-07/0.7642, allocations: 0 / 0.5511 GB, free: 10.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004039/0.7683, allocations: 1.081 MB / 0.5522 GB, free: 8.992 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.001196/0.7695, allocations: 0.5012 MB / 0.5527 GB, free: 8.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006914/0.7764, allocations: 4.817 MB / 0.5574 GB, free: 3.562 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.7764, allocations: 0 / 0.5574 GB, free: 3.562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004286/0.7807, allocations: 3.278 MB / 0.5606 GB, free: 172 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003221/0.784, allocations: 0.5385 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.02705/0.8111, allocations: 19.52 MB / 0.5802 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004427/0.8155, allocations: 4.006 MB / 0.5841 GB, free: 8.023 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00207/0.8176, 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.0006788/0.8183, allocations: 171.4 kB / 0.5845 GB, free: 7.555 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.8183, allocations: 3.938 kB / 0.5846 GB, free: 7.551 MB / 414.1 MB Notification: Performance of Templates: time 0.2652/1.084, allocations: 60.1 MB / 0.6432 GB, free: 119.2 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)