Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007852/0.007853, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001737/0.001737, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.462/1.462, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.00138/0.00138, allocations: 57.5 kB / 326.5 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.009268/0.1186, allocations: 6.331 MB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004953/0.1235, allocations: 2.132 MB / 381.6 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.1246, allocations: 19.94 kB / 381.7 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.1258, allocations: 353.8 kB / 382 MB, free: 8.453 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.001802/0.1276, allocations: 484.7 kB / 382.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1289, allocations: 431.3 kB / 382.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00249/0.1314, allocations: 1.541 MB / 384.4 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009899/0.1324, allocations: 0.5209 MB / 385 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.1335, allocations: 0.5723 MB / 385.5 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.1347, allocations: 0.6615 MB / 386.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004285/0.1352, allocations: 167.9 kB / 386.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005605/0.1358, allocations: 188 kB / 386.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004534/0.1362, allocations: 327 kB / 386.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.1373, allocations: 0.661 MB / 387.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001951/0.1392, allocations: 1.939 MB / 389.5 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1392, allocations: 0 / 389.5 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1392, allocations: 0 / 389.5 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.909e-05/0.1393, allocations: 0 / 389.5 MB, free: 0.9492 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003027/0.1423, allocations: 1.542 MB / 391 MB, free: 15.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1423, allocations: 11.89 kB / 391 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.1426, allocations: 127.4 kB / 391.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.1438, allocations: 0.7123 MB / 391.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.205e-05/0.1439, allocations: 74.31 kB / 391.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.1441, allocations: 108 kB / 392 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.1462, allocations: 1.005 MB / 393 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.544e-05/0.1462, allocations: 3.984 kB / 393 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.492e-05/0.1463, allocations: 44 kB / 393.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.1463, allocations: 28 kB / 393.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.1483, allocations: 0.8913 MB / 394 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005373/0.1537, allocations: 3.617 MB / 397.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00307/0.1568, allocations: 0.8911 MB / 398.5 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008029/0.1576, allocations: 377.3 kB / 398.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.1576, allocations: 11.98 kB / 398.9 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.1577, allocations: 38.56 kB / 398.9 MB, free: 7.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.996e-06/0.1577, allocations: 0 / 398.9 MB, free: 7.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=67): time 0.005004/0.1627, allocations: 1.789 MB / 400.7 MB, free: 5.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.34e-05/0.1628, allocations: 89.09 kB / 400.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.164, allocations: 0.974 MB / 401.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.164, allocations: 33.7 kB / 401.8 MB, free: 4.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000351/0.1644, allocations: 0.526 MB / 402.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.1646, allocations: 232.6 kB / 402.6 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.1648, allocations: 162.6 kB / 402.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.165, allocations: 337.9 kB / 403 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008904/0.1659, allocations: 341.7 kB / 403.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.1669, allocations: 0.5146 MB / 403.9 MB, free: 2.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.1688, allocations: 0.8329 MB / 404.7 MB, free: 1.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1688, allocations: 0 / 404.7 MB, free: 1.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002259/0.171, allocations: 1.017 MB / 405.7 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.1711, allocations: 11.94 kB / 405.8 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1711, allocations: 4 kB / 405.8 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.1711, allocations: 12 kB / 405.8 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.1724, allocations: 287.5 kB / 406.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.1724, allocations: 11.98 kB / 406.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007455/0.1731, allocations: 63.94 kB / 406.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.293e-05/0.1732, allocations: 35.98 kB / 406.2 MB, free: 15.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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.0003986/0.1736, allocations: 281.6 kB / 406.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.1738, allocations: 102.7 kB / 406.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.174, allocations: 108.8 kB / 406.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.174, allocations: 12 kB / 406.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.174, allocations: 3.984 kB / 406.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.174, allocations: 3.938 kB / 406.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003835/0.1779, allocations: 2.306 MB / 409 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.1779, allocations: 4 kB / 409 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008637/0.1788, allocations: 203.7 kB / 409.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.278e-06/0.1788, allocations: 8 kB / 409.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.516e-05/0.1788, allocations: 28.11 kB / 409.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-05/0.1789, allocations: 15.94 kB / 409.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.1789, allocations: 7.938 kB / 409.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.1805, allocations: 1.03 MB / 410.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.1808, allocations: 180 kB / 410.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.1809, allocations: 23.98 kB / 410.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006094/0.1815, allocations: 47.95 kB / 410.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.1816, allocations: 71.69 kB / 410.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.978e-05/0.1817, allocations: 27.98 kB / 410.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008006/0.1825, allocations: 0.6786 MB / 411.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1825, allocations: 0 / 411.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000772/0.1833, allocations: 208 kB / 411.5 MB, free: 10.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.0008226/0.1841, allocations: 376.8 kB / 411.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.1859, allocations: 0.7645 MB / 412.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1859, allocations: 0 / 412.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008256/0.1868, allocations: 377.4 kB / 413 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.1879, allocations: 201.4 kB / 413.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.1909, allocations: 1.894 MB / 415.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000575/0.1915, allocations: 1.014 MB / 416.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004455/0.192, allocations: 135.2 kB / 416.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.1922, allocations: 71.41 kB / 416.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1922, allocations: 0 / 416.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of Templates: time 0.01757/0.2098, allocations: 10.96 MB / 427.3 MB, free: 10.14 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)