Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.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.MovingCoilActuator.ForceStrokeBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007756/0.007756, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001346/0.001346, allocations: 189.3 kB / 16.67 MB, free: 5.973 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.491/1.491, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.001252/0.001252, allocations: 61.72 kB / 326.6 MB, free: 14.59 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1083, allocations: 46.61 MB / 373.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.005969/0.1143, allocations: 4.517 MB / 377.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003554/0.1179, allocations: 1.75 MB / 379.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000496/0.1184, allocations: 11.94 kB / 379.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008792/0.1194, allocations: 426.2 kB / 379.9 MB, free: 10.68 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.0008319/0.1202, allocations: 409.7 kB / 380.3 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006019/0.1208, allocations: 303.5 kB / 380.6 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009777/0.1218, allocations: 1.016 MB / 381.6 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004267/0.1223, allocations: 294.5 kB / 381.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004265/0.1227, allocations: 418.7 kB / 382.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005499/0.1232, allocations: 0.4983 MB / 382.8 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.1234, allocations: 96 kB / 382.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.1236, allocations: 128 kB / 383 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.1238, allocations: 235.2 kB / 383.2 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003545/0.1242, allocations: 457.6 kB / 383.7 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.1254, allocations: 1.276 MB / 384.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1254, allocations: 0 / 384.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1254, allocations: 0 / 384.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.1254, allocations: 0 / 384.9 MB, free: 5.582 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002079/0.1275, allocations: 1.241 MB / 386.2 MB, free: 4.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1275, allocations: 11.89 kB / 386.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.1277, allocations: 108.2 kB / 386.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008766/0.1286, allocations: 0.5596 MB / 386.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.1286, allocations: 45.69 kB / 386.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.1287, allocations: 64.12 kB / 387 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.13, allocations: 0.648 MB / 387.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.13, allocations: 7.891 kB / 387.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.637e-05/0.1301, allocations: 24 kB / 387.6 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1301, allocations: 16 kB / 387.7 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.1313, allocations: 0.5517 MB / 388.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003452/0.1348, allocations: 2.541 MB / 390.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009328/0.1357, allocations: 481.7 kB / 391.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007011/0.1364, allocations: 294 kB / 391.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.255e-05/0.1365, allocations: 16.41 kB / 391.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.1365, allocations: 42.94 kB / 391.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.214e-06/0.1365, allocations: 0 / 391.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004516/0.1411, allocations: 1.498 MB / 393.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.1411, allocations: 63.97 kB / 393.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.1423, allocations: 0.9419 MB / 394.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.1424, allocations: 37.7 kB / 394.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.1427, allocations: 408.7 kB / 394.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.1428, allocations: 210.2 kB / 394.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.143, allocations: 122.6 kB / 394.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1432, allocations: 326 kB / 395.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000599/0.1438, allocations: 253.8 kB / 395.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006441/0.1444, allocations: 347 kB / 395.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.1457, allocations: 0.5635 MB / 396.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1457, allocations: 0 / 396.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001562/0.1473, allocations: 0.7272 MB / 397 MB, free: 9.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.1473, allocations: 7.938 kB / 397 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.1473, allocations: 4 kB / 397 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.1473, allocations: 4 kB / 397 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00077/0.1481, allocations: 175.8 kB / 397.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.1481, allocations: 11.94 kB / 397.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005127/0.1487, allocations: 44.02 kB / 397.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.169e-05/0.1487, allocations: 24 kB / 397.3 MB, free: 8.836 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMin.contact,actuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004207/0.1491, allocations: 265.6 kB / 397.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.1493, allocations: 91.31 kB / 397.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.1507, allocations: 0.6242 MB / 398.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.1508, allocations: 7.984 kB / 398.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.1508, allocations: 3.938 kB / 398.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.1508, allocations: 11.94 kB / 398.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002929/0.1537, allocations: 1.799 MB / 400.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.1537, allocations: 11.97 kB / 400.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.1543, allocations: 127.8 kB / 400.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.1543, allocations: 8 kB / 400.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.789e-05/0.1543, allocations: 12 kB / 400.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.1544, allocations: 7.938 kB / 400.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.1544, allocations: 7.984 kB / 400.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.1557, allocations: 0.7475 MB / 401 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.1559, allocations: 212.4 kB / 401.2 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.226e-05/0.156, allocations: 12 kB / 401.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004141/0.1564, allocations: 43.95 kB / 401.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.1565, allocations: 36.39 kB / 401.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.1566, allocations: 23.92 kB / 401.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008026/0.1574, allocations: 0.6903 MB / 402 MB, free: 3.906 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1574, allocations: 0 / 402 MB, free: 3.906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005542/0.158, allocations: 155.9 kB / 402.2 MB, free: 3.754 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008584/0.1588, allocations: 364.7 kB / 402.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.1602, allocations: 0.5891 MB / 403.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1602, allocations: 64 / 403.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006094/0.1608, allocations: 294.2 kB / 403.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007405/0.1616, allocations: 143.2 kB / 403.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.1641, allocations: 1.579 MB / 405.1 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005422/0.1647, allocations: 0.9631 MB / 406.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003852/0.1651, allocations: 101 kB / 406.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.1652, allocations: 51.42 kB / 406.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1652, allocations: 4 kB / 406.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Templates: time 0.01422/0.1795, allocations: 7.78 MB / 414 MB, free: 7.781 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1)