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.001605/0.001605, allocations: 108 kB / 17.06 MB, free: 6.117 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.001859/0.001859, allocations: 199.9 kB / 18 MB, free: 5.191 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.468/1.468, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001238/0.001238, allocations: 52.36 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09279/0.09404, allocations: 46.62 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.1876/0.2816, allocations: 10.97 MB / 385.5 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006411/0.2881, allocations: 3.545 MB / 389 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002655/0.2908, allocations: 38.72 kB / 389 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009209/0.3001, allocations: 8.139 MB / 397.2 MB, free: 3.578 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.008325/0.3084, allocations: 4.621 MB / 401.8 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002707/0.3112, allocations: 0.9121 MB / 402.7 MB, free: 408 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008102/0.3193, allocations: 5.316 MB / 408 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.3206, allocations: 0.8945 MB / 408.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003979/0.3246, allocations: 2.866 MB / 411.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004761/0.3294, allocations: 5.123 MB / 416.9 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004907/0.3299, allocations: 348 kB / 417.2 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006797/0.3306, allocations: 392 kB / 417.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.3318, allocations: 1.865 MB / 419.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001958/0.3338, allocations: 2.788 MB / 422.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005562/0.3393, allocations: 7.239 MB / 429.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3394, allocations: 4 kB / 429.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.3394, allocations: 0 / 429.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001/0.3395, allocations: 7.938 kB / 429.5 MB, free: 8.5 MB / 350.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.01072/0.3502, allocations: 7.639 MB / 437.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3503, allocations: 11.89 kB / 437.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009264/0.3512, allocations: 0.8535 MB / 438 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/0.3553, allocations: 3.179 MB / 441.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.3554, allocations: 164.4 kB / 441.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002957/0.3557, allocations: 212 kB / 441.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004037/0.3598, allocations: 2.104 MB / 443.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.489e-05/0.3598, allocations: 4 kB / 443.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/0.36, allocations: 87.98 kB / 443.8 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-05/0.3601, allocations: 52 kB / 443.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003619/0.3637, allocations: 1.899 MB / 445.7 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01448/0.3782, allocations: 8.872 MB / 454.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003787/0.382, allocations: 2.325 MB / 456.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002677/0.3847, allocations: 1.427 MB / 458.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.3849, allocations: 38.28 kB / 458.4 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002019/0.3869, allocations: 1.16 MB / 459.6 MB, free: 9.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 5.721e-06/0.3869, allocations: 4 kB / 459.6 MB, free: 9.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06473/0.4517, allocations: 22.81 MB / 482.4 MB, free: 2.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0277/0.4794, allocations: 13.61 MB / 496 MB, free: 4.738 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01512/0.4945, allocations: 14.89 MB / 0.4989 GB, free: 5.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008242/0.4954, allocations: 89.7 kB / 0.499 GB, free: 5.816 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003466/0.4989, allocations: 3.725 MB / 0.5026 GB, free: 2.082 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00169/0.5006, allocations: 1.217 MB / 0.5038 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001025/0.5016, allocations: 0.5117 MB / 0.5043 GB, free: 336 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5018, allocations: 301.1 kB / 0.5046 GB, free: 32 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002426/0.5042, allocations: 1.256 MB / 0.5058 GB, free: 14.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003002/0.5072, allocations: 1.618 MB / 0.5074 GB, free: 13.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005127/0.5124, allocations: 2.996 MB / 0.5103 GB, free: 10.01 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/0.5124, allocations: 4 kB / 0.5103 GB, free: 10 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01075/0.5232, allocations: 5.211 MB / 0.5154 GB, free: 4.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.5232, allocations: 4 kB / 0.5154 GB, free: 4.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.5232, allocations: 8 kB / 0.5154 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005382/0.5286, allocations: 1.389 MB / 0.5168 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002644/0.5313, allocations: 0.5422 MB / 0.5173 GB, free: 2.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02779/0.5591, allocations: 23.96 MB / 0.5407 GB, free: 9.543 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/0.563, allocations: 127.8 kB / 0.5408 GB, free: 9.418 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003467/0.5634, allocations: 112 kB / 0.5409 GB, free: 9.309 MB / 478.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.0038/0.5672, allocations: 2.188 MB / 0.5431 GB, free: 7.109 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/0.5683, allocations: 0.8098 MB / 0.5439 GB, free: 6.289 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/0.5792, allocations: 5.235 MB / 0.549 GB, free: 1.012 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.616e-05/0.5793, allocations: 36 kB / 0.549 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.5793, allocations: 8 kB / 0.549 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.078e-05/0.5793, allocations: 19.88 kB / 0.549 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2351/0.8144, allocations: 11.04 MB / 0.5598 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.8144, allocations: 2.156 kB / 0.5598 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002333/0.8168, allocations: 463.3 kB / 0.5603 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005241/0.822, allocations: 1.335 MB / 0.5616 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/0.8223, allocations: 74.59 kB / 0.5616 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02218/0.8445, allocations: 21.85 MB / 0.583 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02217/0.8667, allocations: 11.92 MB / 0.5946 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01353/0.8803, allocations: 6.95 MB / 0.6014 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/0.8823, allocations: 0.7518 MB / 0.6021 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000895/0.8832, allocations: 69.66 kB / 0.6022 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002213/0.8854, allocations: 110.9 kB / 0.6023 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007952/0.8862, allocations: 265.9 kB / 0.6026 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/0.8864, allocations: 96.83 kB / 0.6027 GB, free: 117.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01021/0.8966, allocations: 11.12 MB / 0.6135 GB, free: 107.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8967, allocations: 0 / 0.6135 GB, free: 107.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004274/0.901, allocations: 1.076 MB / 0.6146 GB, free: 106.3 MB / 478.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.001217/0.9022, allocations: 0.5008 MB / 0.6151 GB, free: 105.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006986/0.9092, allocations: 4.806 MB / 0.6198 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.9092, allocations: 0 / 0.6198 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004397/0.9136, allocations: 3.297 MB / 0.623 GB, free: 97.61 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003123/0.9168, allocations: 0.5539 MB / 0.6235 GB, free: 97.05 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02047/0.9373, allocations: 17.9 MB / 0.641 GB, free: 79.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003351/0.9407, allocations: 4.017 MB / 0.6449 GB, free: 75.07 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00169/0.9424, allocations: 312.8 kB / 0.6452 GB, free: 74.77 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/0.943, allocations: 167.4 kB / 0.6454 GB, free: 74.61 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.943, allocations: 0 / 0.6454 GB, free: 74.61 MB / 478.1 MB Notification: Performance of Templates: time 0.1612/1.104, allocations: 68.01 MB / 0.7118 GB, free: 6.492 MB / 478.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)