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.0009968/0.0009968, allocations: 94.69 kB / 16.3 MB, free: 6.453 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.001143/0.001143, allocations: 179.3 kB / 17.19 MB, free: 6.34 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.555/1.555, allocations: 205.4 MB / 223.3 MB, free: 13.18 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.0004746/0.0004745, allocations: 8 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1164, allocations: 47.59 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009537/0.126, allocations: 8.785 MB / 336.5 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007729/0.1338, allocations: 3.532 MB / 340 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.136, allocations: 35.88 kB / 340.1 MB, free: 7.699 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007698/0.1437, allocations: 7.965 MB / 348 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007282/0.151, allocations: 4.612 MB / 352.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002521/0.1536, allocations: 0.5576 MB / 353.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007384/0.1609, allocations: 3.479 MB / 356.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00145/0.1624, allocations: 0.6881 MB / 357.4 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005884/0.1683, allocations: 2.49 MB / 359.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006441/0.1748, allocations: 3.769 MB / 363.6 MB, free: 76 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001446/0.1763, allocations: 132 kB / 363.7 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.1778, allocations: 163.9 kB / 363.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001769/0.1795, allocations: 1.713 MB / 365.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001947/0.1815, allocations: 1.075 MB / 366.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005984/0.1875, allocations: 5.398 MB / 372.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1875, allocations: 4 kB / 372.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1875, allocations: 0 / 372.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002218/0.1878, allocations: 0 / 372.1 MB, free: 7.566 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.01309/0.2009, allocations: 6.683 MB / 378.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.201, allocations: 16.03 kB / 378.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2495/0.4505, allocations: 0.8417 MB / 379.6 MB, free: 48.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007216/0.4578, allocations: 2.894 MB / 382.5 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/0.458, allocations: 154.8 kB / 382.7 MB, free: 47.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003738/0.4583, allocations: 206.4 kB / 382.9 MB, free: 47.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004447/0.4628, allocations: 2.071 MB / 384.9 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.061e-05/0.4629, allocations: 4.562 kB / 385 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001795/0.4631, allocations: 86.58 kB / 385 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.305e-05/0.4631, allocations: 50.31 kB / 385.1 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004154/0.4673, allocations: 1.871 MB / 387 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01565/0.4829, allocations: 8.77 MB / 395.7 MB, free: 41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003742/0.4867, allocations: 2.26 MB / 398 MB, free: 39.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001231/0.4869, allocations: 38.66 kB / 398 MB, free: 39.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001794/0.4887, allocations: 1.136 MB / 399.2 MB, free: 38.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 4.659e-06/0.4887, allocations: 0 / 399.2 MB, free: 38.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=375): time 0.05712/0.5458, allocations: 21.42 MB / 420.6 MB, free: 19.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07647/0.6223, allocations: 30.13 MB / 450.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0194/0.6418, allocations: 14.86 MB / 465.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007654/0.6426, allocations: 89.7 kB / 465.7 MB, free: 5.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003993/0.6466, allocations: 3.725 MB / 469.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002391/0.649, allocations: 1.241 MB / 470.6 MB, free: 460 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003021/0.6493, allocations: 64 kB / 470.7 MB, free: 396 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003244/0.6497, allocations: 439.1 kB / 471.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002736/0.6524, allocations: 1.205 MB / 472.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002821/0.6553, allocations: 1.559 MB / 473.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002638/0.6579, allocations: 1.412 MB / 475.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.6579, allocations: 0 / 475.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.01166/0.6696, allocations: 5.083 MB / 480.4 MB, free: 6.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.6697, allocations: 4 kB / 480.4 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.221e-05/0.6697, allocations: 16.02 kB / 480.4 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005075/0.6748, allocations: 1.353 MB / 481.8 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002975/0.6778, allocations: 0.5539 MB / 482.3 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02605/0.7039, allocations: 21.24 MB / 0.4918 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/0.7079, allocations: 175.9 kB / 0.4919 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005512/0.7085, allocations: 116 kB / 0.492 GB, free: 13.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (313): * Single equations (assignments): 302 * Array equations: 2 * 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%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.004168/0.7127, allocations: 2.193 MB / 0.4942 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001648/0.7143, allocations: 0.8136 MB / 0.495 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/0.7255, allocations: 5.152 MB / 0.5 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004807/0.7304, allocations: 2.286 MB / 0.5022 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.317e-05/0.7304, allocations: 8 kB / 0.5022 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.26e-05/0.7305, allocations: 19.94 kB / 0.5023 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02117/0.7517, allocations: 10.8 MB / 0.5128 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/0.7517, allocations: 0 / 0.5128 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002321/0.7541, allocations: 475.3 kB / 0.5133 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005088/0.7592, allocations: 1.384 MB / 0.5146 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003658/0.7596, allocations: 79.97 kB / 0.5147 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02293/0.7825, allocations: 19.7 MB / 0.5339 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2906/1.073, allocations: 26.76 MB / 0.5601 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/1.087, allocations: 6.971 MB / 0.5669 GB, free: 128.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002196/1.089, allocations: 0.7576 MB / 0.5676 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000677/1.089, allocations: 68.77 kB / 0.5677 GB, free: 127.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002033/1.092, allocations: 136.7 kB / 0.5678 GB, free: 127.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008221/1.092, allocations: 279.4 kB / 0.5681 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/1.093, allocations: 99.19 kB / 0.5682 GB, free: 127.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01339/1.106, allocations: 11.11 MB / 0.579 GB, free: 118 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.106, allocations: 4 kB / 0.579 GB, free: 118 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006597/1.113, allocations: 1.098 MB / 0.5801 GB, free: 116.9 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,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%) 4,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001405/1.114, allocations: 0.5025 MB / 0.5806 GB, free: 116.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007272/1.121, allocations: 4.742 MB / 0.5852 GB, free: 111.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.121, allocations: 4.562 kB / 0.5852 GB, free: 111.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004615/1.126, allocations: 3.325 MB / 0.5885 GB, free: 108.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003204/1.129, allocations: 471.5 kB / 0.5889 GB, free: 107.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02558/1.155, allocations: 20.22 MB / 0.6086 GB, free: 87.42 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00358/1.158, allocations: 4.204 MB / 0.6128 GB, free: 83.17 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002349/1.161, allocations: 347.1 kB / 0.6131 GB, free: 82.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00057/1.161, allocations: 179.4 kB / 0.6133 GB, free: 82.65 MB / 430.1 MB Notification: Performance of SimCode: time 2.314e-06/1.161, allocations: 7.938 kB / 0.6133 GB, free: 82.64 MB / 430.1 MB Notification: Performance of Templates: time 0.1008/1.262, allocations: 62.27 MB / 0.6741 GB, free: 20.27 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: