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.0008652/0.0008649, allocations: 89.75 kB / 16.31 MB, free: 5.676 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.001138/0.001138, allocations: 182.6 kB / 17.21 MB, free: 5.594 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.541/1.541, allocations: 205.4 MB / 223.4 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.0004716/0.0004718, allocations: 12 kB / 280.2 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1252, allocations: 47.58 MB / 327.7 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01073/0.136, allocations: 9.636 MB / 337.4 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00755/0.1436, allocations: 3.407 MB / 340.8 MB, free: 6.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002615/0.1463, allocations: 35.88 kB / 340.8 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01114/0.1574, allocations: 8.11 MB / 348.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009741/0.1672, allocations: 4.536 MB / 353.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003302/0.1705, allocations: 0.5539 MB / 354 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.1809, allocations: 4.441 MB / 358.4 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002293/0.1832, allocations: 0.6881 MB / 359.1 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006185/0.1894, allocations: 2.502 MB / 361.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007715/0.1972, allocations: 4.136 MB / 365.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001398/0.1986, allocations: 140 kB / 365.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/0.2004, allocations: 176 kB / 366.1 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002291/0.2027, allocations: 1.724 MB / 367.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001834/0.2045, allocations: 1.083 MB / 368.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006223/0.2108, allocations: 5.448 MB / 374.3 MB, free: 5.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.2108, allocations: 4 kB / 374.3 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2108, allocations: 0 / 374.3 MB, free: 5.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002036/0.211, allocations: 0 / 374.3 MB, free: 5.293 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.2421/0.4531, allocations: 6.692 MB / 381 MB, free: 47.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.4532, allocations: 9.625 kB / 381 MB, free: 47.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001828/0.455, allocations: 0.8482 MB / 381.9 MB, free: 46.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005117/0.4601, allocations: 2.778 MB / 384.7 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.4603, allocations: 157.3 kB / 384.8 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003414/0.4607, allocations: 206.9 kB / 385 MB, free: 45.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00464/0.4653, allocations: 2.122 MB / 387.1 MB, free: 44.76 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.303e-05/0.4654, allocations: 1.781 kB / 387.1 MB, free: 44.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001898/0.4656, allocations: 88.91 kB / 387.2 MB, free: 44.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.809e-05/0.4656, allocations: 50.88 kB / 387.3 MB, free: 44.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004442/0.4701, allocations: 1.935 MB / 389.2 MB, free: 44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01707/0.4872, allocations: 8.981 MB / 398.2 MB, free: 38.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003535/0.4907, allocations: 2.323 MB / 400.5 MB, free: 37.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.4931, allocations: 1.387 MB / 401.9 MB, free: 36.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.4932, allocations: 41.16 kB / 402 MB, free: 36.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001955/0.4952, allocations: 1.171 MB / 403.1 MB, free: 35.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 7.464e-06/0.4952, allocations: 0 / 403.1 MB, free: 35.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.0622/0.5574, allocations: 22.96 MB / 426.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02563/0.5831, allocations: 13.18 MB / 439.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01895/0.6021, allocations: 14.91 MB / 454.2 MB, free: 260 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007639/0.6029, allocations: 85.64 kB / 454.3 MB, free: 168 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003788/0.6067, allocations: 3.729 MB / 458 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001885/0.6086, allocations: 1.21 MB / 459.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.6089, allocations: 68 kB / 459.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.6091, allocations: 437.2 kB / 459.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002782/0.6119, allocations: 1.256 MB / 460.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/0.6148, allocations: 1.634 MB / 462.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002835/0.6177, allocations: 1.47 MB / 464 MB, free: 6.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.6177, allocations: 3.953 kB / 464.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01207/0.6298, allocations: 5.207 MB / 469.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.6298, allocations: 11.98 kB / 469.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.6299, allocations: 8.5 kB / 469.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005314/0.6352, allocations: 1.383 MB / 470.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002727/0.6379, allocations: 0.5539 MB / 471.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02757/0.6655, allocations: 21.9 MB / 493.1 MB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00437/0.6699, allocations: 143.9 kB / 493.3 MB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003022/0.6703, allocations: 108.2 kB / 493.4 MB, free: 7.715 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.004906/0.6752, allocations: 2.191 MB / 495.6 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001548/0.6767, allocations: 0.8098 MB / 496.4 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01194/0.6887, allocations: 5.249 MB / 0.4899 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.532e-05/0.6887, allocations: 36 kB / 0.4899 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-05/0.6888, allocations: 8 kB / 0.4899 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.569e-05/0.6888, allocations: 15.94 kB / 0.4899 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02215/0.711, allocations: 11.11 MB / 0.5008 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.711, allocations: 0 / 0.5008 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002249/0.7133, allocations: 475.4 kB / 0.5012 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00487/0.7182, allocations: 1.344 MB / 0.5025 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002541/0.7185, allocations: 75.97 kB / 0.5026 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02411/0.7426, allocations: 20 MB / 0.5221 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02425/0.7669, allocations: 11.56 MB / 0.5334 GB, free: 1.246 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2275/0.9944, allocations: 6.958 MB / 0.5402 GB, free: 139.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/0.9961, allocations: 0.7628 MB / 0.541 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005914/0.9967, allocations: 64.91 kB / 0.541 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/0.9986, allocations: 124.7 kB / 0.5411 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006608/0.9993, allocations: 269.3 kB / 0.5414 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/0.9995, allocations: 92.98 kB / 0.5415 GB, free: 139.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01117/1.011, allocations: 11.14 MB / 0.5524 GB, free: 137.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.61e-07/1.011, allocations: 0 / 0.5524 GB, free: 137.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004355/1.015, allocations: 1.084 MB / 0.5534 GB, free: 137.6 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 (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.001186/1.016, allocations: 0.5013 MB / 0.5539 GB, free: 137.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00701/1.023, allocations: 4.82 MB / 0.5586 GB, free: 134.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/1.023, allocations: 0 / 0.5586 GB, free: 134.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00405/1.027, allocations: 3.283 MB / 0.5618 GB, free: 132.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/1.031, allocations: 0.5274 MB / 0.5623 GB, free: 132.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/1.052, allocations: 19.52 MB / 0.5814 GB, free: 114.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003352/1.056, allocations: 4.013 MB / 0.5853 GB, free: 111 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002073/1.058, allocations: 303.6 kB / 0.5856 GB, free: 110.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005929/1.059, allocations: 163.4 kB / 0.5858 GB, free: 110.6 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/1.059, allocations: 4 kB / 0.5858 GB, free: 110.5 MB / 430.1 MB Notification: Performance of Templates: time 0.08669/1.145, allocations: 60.1 MB / 0.6445 GB, free: 50.38 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)