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.001024/0.001024, allocations: 102 kB / 16.5 MB, free: 6.688 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.001007/0.001007, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.347/1.347, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001164/0.001164, allocations: 47.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09893, allocations: 46.64 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01117/0.1101, allocations: 10.89 MB / 336.9 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007055/0.1173, allocations: 3.484 MB / 340.3 MB, free: 6.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00249/0.1198, allocations: 43.81 kB / 340.4 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007225/0.1271, allocations: 8.133 MB / 348.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006404/0.1335, allocations: 4.559 MB / 353.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00252/0.1361, allocations: 0.8312 MB / 353.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006454/0.1425, allocations: 5.086 MB / 359 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.1438, allocations: 0.7769 MB / 359.8 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003965/0.1478, allocations: 2.587 MB / 362.4 MB, free: 352 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005795/0.1536, allocations: 4.947 MB / 367.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006852/0.1543, allocations: 168 kB / 367.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008302/0.1552, allocations: 208 kB / 367.7 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/0.1565, allocations: 1.771 MB / 369.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002387/0.1589, allocations: 2.62 MB / 372.1 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.18/0.3389, allocations: 6.918 MB / 379 MB, free: 30.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.3389, allocations: 3.312 kB / 379 MB, free: 30.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3389, allocations: 0 / 379 MB, free: 30.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003175/0.3393, allocations: 3.609 kB / 379 MB, free: 30.93 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.01554/0.3548, allocations: 7.64 MB / 386.6 MB, free: 26.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3549, allocations: 14.22 kB / 386.6 MB, free: 26.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/0.3564, allocations: 0.8451 MB / 387.5 MB, free: 26.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004252/0.3606, allocations: 3.157 MB / 390.6 MB, free: 24.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.3608, allocations: 156.5 kB / 390.8 MB, free: 24.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002935/0.3611, allocations: 206.9 kB / 391 MB, free: 24.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004033/0.3651, allocations: 2.114 MB / 393.1 MB, free: 24.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.915e-05/0.3652, allocations: 4.203 kB / 393.1 MB, free: 24.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/0.3654, allocations: 86.06 kB / 393.2 MB, free: 24.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.232e-05/0.3654, allocations: 49.16 kB / 393.2 MB, free: 24.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003694/0.3691, allocations: 1.898 MB / 395.1 MB, free: 24.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0135/0.3826, allocations: 8.945 MB / 404.1 MB, free: 20.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003185/0.3858, allocations: 2.335 MB / 406.4 MB, free: 19.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002205/0.388, allocations: 1.378 MB / 407.8 MB, free: 18.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.3882, allocations: 41.27 kB / 407.8 MB, free: 18.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001847/0.39, allocations: 1.172 MB / 409 MB, free: 17.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 3.566e-06/0.3901, allocations: 0 / 409 MB, free: 17.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06815/0.4582, allocations: 22.78 MB / 431.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03078/0.489, allocations: 13.03 MB / 444.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01946/0.5085, allocations: 14.9 MB / 459.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000657/0.5092, allocations: 81.7 kB / 459.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003297/0.5125, allocations: 3.729 MB / 463.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001557/0.5141, allocations: 1.211 MB / 464.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009687/0.5151, allocations: 0.5156 MB / 465.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.5152, allocations: 305.1 kB / 465.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002514/0.5177, allocations: 1.252 MB / 466.8 MB, free: 9.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002704/0.5204, allocations: 1.631 MB / 468.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005265/0.5257, allocations: 2.991 MB / 471.4 MB, free: 4.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.5257, allocations: 0 / 471.4 MB, free: 4.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01232/0.538, allocations: 5.197 MB / 476.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.5381, allocations: 11.98 kB / 476.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.5381, allocations: 4 kB / 476.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00596/0.5441, allocations: 1.388 MB / 478 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003143/0.5473, allocations: 0.5433 MB / 478.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02931/0.5766, allocations: 21.91 MB / 0.4888 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004444/0.5811, allocations: 135.8 kB / 0.4889 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007527/0.5819, allocations: 115.9 kB / 0.489 GB, free: 6.414 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.004599/0.5865, allocations: 2.183 MB / 0.4911 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002006/0.5885, allocations: 0.8098 MB / 0.4919 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/0.6021, allocations: 5.221 MB / 0.497 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/0.6021, allocations: 36 kB / 0.4971 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001489/0.6023, allocations: 8 kB / 0.4971 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-05/0.6023, allocations: 19.92 kB / 0.4971 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/0.6265, allocations: 11.09 MB / 0.5079 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/0.6266, allocations: 0 / 0.5079 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00252/0.6291, allocations: 462.1 kB / 0.5084 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005782/0.6349, allocations: 1.333 MB / 0.5097 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003116/0.6353, allocations: 75.91 kB / 0.5097 GB, free: 1.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1929/0.8281, allocations: 20.01 MB / 0.5293 GB, free: 141.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02465/0.8528, allocations: 11.4 MB / 0.5404 GB, free: 138.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/0.8662, allocations: 6.941 MB / 0.5472 GB, free: 135.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/0.8676, allocations: 0.7524 MB / 0.5479 GB, free: 135.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005746/0.8682, allocations: 70.91 kB / 0.548 GB, free: 135.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/0.8702, allocations: 108.3 kB / 0.5481 GB, free: 135.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006855/0.8709, allocations: 271.5 kB / 0.5484 GB, free: 135.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001798/0.8711, allocations: 96.89 kB / 0.5484 GB, free: 135.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.008738/0.8799, allocations: 11.12 MB / 0.5593 GB, free: 129.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8799, allocations: 0 / 0.5593 GB, free: 129.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003801/0.8837, allocations: 1.082 MB / 0.5604 GB, free: 128.1 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.001095/0.8848, allocations: 0.4893 MB / 0.5608 GB, free: 127.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006575/0.8914, allocations: 4.798 MB / 0.5655 GB, free: 123.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.8914, allocations: 0 / 0.5655 GB, free: 123.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003919/0.8953, allocations: 3.281 MB / 0.5687 GB, free: 120.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003274/0.8986, allocations: 0.5144 MB / 0.5692 GB, free: 119.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0202/0.9188, allocations: 20.22 MB / 0.589 GB, free: 100 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003014/0.9219, allocations: 4.014 MB / 0.5929 GB, free: 95.94 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00208/0.924, allocations: 304.9 kB / 0.5932 GB, free: 95.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006206/0.9246, allocations: 167.4 kB / 0.5933 GB, free: 95.48 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.9246, allocations: 0 / 0.5933 GB, free: 95.48 MB / 430.1 MB Notification: Performance of Templates: time 0.1506/1.075, allocations: 62.79 MB / 0.6547 GB, free: 32.61 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)