Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008218/0.008218, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.0018/0.0018, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.1 MB / 222.5 MB, free: 4.508 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.001369/0.001369, allocations: 54.17 kB / 326.5 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09151, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01237/0.1039, allocations: 10.97 MB / 384.1 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006983/0.111, allocations: 3.554 MB / 387.7 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001971/0.113, allocations: 39.88 kB / 387.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007856/0.1209, allocations: 8.132 MB / 395.9 MB, free: 10.55 MB / 334.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.007492/0.1284, allocations: 4.651 MB / 400.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002774/0.1312, allocations: 0.9128 MB / 401.4 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008499/0.1397, allocations: 5.315 MB / 406.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.1415, allocations: 0.8943 MB / 407.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004654/0.1462, allocations: 2.868 MB / 410.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005754/0.152, allocations: 5.123 MB / 415.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.153, allocations: 348 kB / 416 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.1543, allocations: 392 kB / 416.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.1561, allocations: 1.865 MB / 418.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003825/0.16, allocations: 2.795 MB / 421 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007237/0.1672, allocations: 7.239 MB / 428.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1673, allocations: 0 / 428.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1673, allocations: 0 / 428.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001748/0.1674, allocations: 4 kB / 428.3 MB, free: 10.01 MB / 366.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.01199/0.1794, allocations: 7.651 MB / 435.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1795, allocations: 11.89 kB / 435.9 MB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009861/0.1805, allocations: 0.8455 MB / 436.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004044/0.1845, allocations: 3.171 MB / 439.9 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.1847, allocations: 160.5 kB / 440.1 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003279/0.185, allocations: 216 kB / 440.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003695/0.1887, allocations: 2.108 MB / 442.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-05/0.1888, allocations: 4 kB / 442.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/0.189, allocations: 87.94 kB / 442.5 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.82e-05/0.189, allocations: 52 kB / 442.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003623/0.1927, allocations: 1.895 MB / 444.4 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01385/0.2065, allocations: 8.872 MB / 453.3 MB, free: 484 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2039/0.4105, allocations: 2.319 MB / 455.6 MB, free: 66.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003021/0.4135, allocations: 1.418 MB / 457 MB, free: 66.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001589/0.4137, allocations: 42.27 kB / 457.1 MB, free: 66.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002237/0.416, allocations: 1.159 MB / 458.2 MB, free: 66.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.729e-06/0.416, allocations: 4.641 kB / 458.3 MB, free: 66.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06129/0.4773, allocations: 22.81 MB / 481.1 MB, free: 54.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02552/0.5029, allocations: 13.61 MB / 494.7 MB, free: 40.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01353/0.5164, allocations: 14.89 MB / 0.4976 GB, free: 25.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007446/0.5172, allocations: 85.7 kB / 0.4977 GB, free: 25.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002665/0.5199, allocations: 3.728 MB / 0.5013 GB, free: 21.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/0.5213, allocations: 1.213 MB / 0.5025 GB, free: 20.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000862/0.5221, allocations: 0.5155 MB / 0.503 GB, free: 20.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.872e-05/0.5222, allocations: 309.2 kB / 0.5033 GB, free: 19.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/0.5243, allocations: 1.259 MB / 0.5046 GB, free: 18.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/0.5267, allocations: 1.622 MB / 0.5061 GB, free: 16.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004501/0.5312, allocations: 2.988 MB / 0.5091 GB, free: 13.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.5312, allocations: 0 / 0.5091 GB, free: 13.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01014/0.5414, allocations: 5.206 MB / 0.5141 GB, free: 8.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.5415, allocations: 8 kB / 0.5142 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.5415, allocations: 4 kB / 0.5142 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005139/0.5466, allocations: 1.389 MB / 0.5155 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/0.5494, allocations: 0.5383 MB / 0.516 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0286/0.578, allocations: 23.96 MB / 0.5394 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003693/0.5817, allocations: 119.9 kB / 0.5396 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005993/0.5823, allocations: 116 kB / 0.5397 GB, free: 13.29 MB / 414.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.006474/0.5888, allocations: 2.195 MB / 0.5418 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00237/0.5912, allocations: 0.8136 MB / 0.5426 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/0.6033, allocations: 5.223 MB / 0.5477 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-05/0.6033, allocations: 36 kB / 0.5477 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/0.6034, allocations: 8 kB / 0.5477 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.884e-05/0.6034, allocations: 15.94 kB / 0.5478 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02178/0.6252, allocations: 11.06 MB / 0.5586 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.6252, allocations: 0 / 0.5586 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002489/0.6277, allocations: 463.3 kB / 0.559 GB, free: 9.387 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00578/0.6335, allocations: 1.338 MB / 0.5603 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000337/0.6339, allocations: 71.97 kB / 0.5604 GB, free: 7.953 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02863/0.6625, allocations: 21.84 MB / 0.5817 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02636/0.6889, allocations: 11.94 MB / 0.5934 GB, free: 4.637 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01688/0.7058, allocations: 6.946 MB / 0.6001 GB, free: 13.58 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/0.7074, allocations: 0.7482 MB / 0.6009 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/0.7084, allocations: 68 kB / 0.6009 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002644/0.7111, allocations: 111.9 kB / 0.6011 GB, free: 12.63 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008459/0.712, allocations: 271.3 kB / 0.6013 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003182/0.7123, allocations: 95.97 kB / 0.6014 GB, free: 12.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01489/0.7272, allocations: 11.12 MB / 0.6123 GB, free: 1.203 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.7273, allocations: 0 / 0.6123 GB, free: 1.203 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004862/0.7321, allocations: 1.081 MB / 0.6133 GB, free: 128 kB / 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.001514/0.7337, allocations: 0.4984 MB / 0.6138 GB, free: 15.64 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008637/0.7423, allocations: 4.812 MB / 0.6185 GB, free: 10.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.7423, allocations: 4 kB / 0.6185 GB, free: 10.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00524/0.7476, allocations: 3.28 MB / 0.6217 GB, free: 7.316 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003391/0.751, allocations: 0.5419 MB / 0.6222 GB, free: 6.773 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2156/0.9666, allocations: 17.9 MB / 0.6397 GB, free: 158 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004729/0.9714, allocations: 4.01 MB / 0.6436 GB, free: 157.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001758/0.9732, allocations: 303.1 kB / 0.6439 GB, free: 157.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005876/0.9738, allocations: 173.9 kB / 0.6441 GB, free: 157.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.693e-06/0.9738, allocations: 0 / 0.6441 GB, free: 157.1 MB / 494.1 MB Notification: Performance of Templates: time 0.1663/1.14, allocations: 66.45 MB / 0.709 GB, free: 101.2 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)