Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.006358/0.006358, allocations: 101.7 kB / 15.73 MB, free: 6.039 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.001144/0.001144, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.497/1.497, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001234/0.001234, allocations: 50.8 kB / 326.5 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1106, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.007754/0.1184, allocations: 6.327 MB / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003843/0.1223, allocations: 2.143 MB / 381.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004541/0.1228, allocations: 16 kB / 381.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007964/0.1236, allocations: 357.8 kB / 382 MB, free: 8.43 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.001132/0.1248, allocations: 496.7 kB / 382.5 MB, free: 7.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000822/0.1256, allocations: 435.3 kB / 382.9 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.1271, allocations: 1.541 MB / 384.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000797/0.1279, allocations: 0.5131 MB / 385 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000757/0.1287, allocations: 0.5723 MB / 385.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006905/0.1294, allocations: 0.6653 MB / 386.2 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.1296, allocations: 160 kB / 386.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.1299, allocations: 195.9 kB / 386.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002652/0.1301, allocations: 319 kB / 386.9 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005407/0.1307, allocations: 0.6727 MB / 387.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001695/0.1324, allocations: 1.924 MB / 389.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1324, allocations: 3.938 kB / 389.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.1324, allocations: 4 kB / 389.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.926e-05/0.1325, allocations: 0 / 389.5 MB, free: 0.918 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.003047/0.1355, allocations: 1.538 MB / 391 MB, free: 15.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.1356, allocations: 11.89 kB / 391 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.1358, allocations: 131.4 kB / 391.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.137, allocations: 0.7201 MB / 391.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.77e-05/0.1371, allocations: 70.38 kB / 391.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.1372, allocations: 100 kB / 392 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001903/0.1391, allocations: 1.013 MB / 393 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.591e-05/0.1392, allocations: 4 kB / 393.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.752e-05/0.1393, allocations: 39.94 kB / 393.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.1393, allocations: 24 kB / 393.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.1413, allocations: 0.8796 MB / 394 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005107/0.1464, allocations: 3.636 MB / 397.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/0.1494, allocations: 0.8949 MB / 398.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00078/0.1502, allocations: 365.4 kB / 398.9 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.334e-05/0.1503, allocations: 15.97 kB / 398.9 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.1503, allocations: 38.56 kB / 398.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.194e-06/0.1503, allocations: 4 kB / 398.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=67): time 0.004967/0.1553, allocations: 1.781 MB / 400.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.1554, allocations: 89.05 kB / 400.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.1567, allocations: 0.978 MB / 401.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.955e-05/0.1567, allocations: 41.64 kB / 401.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.1571, allocations: 0.526 MB / 402.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.1573, allocations: 232.6 kB / 402.6 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000256/0.1575, allocations: 154.5 kB / 402.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1577, allocations: 337.9 kB / 403.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00091/0.1586, allocations: 341.8 kB / 403.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.1596, allocations: 0.5224 MB / 403.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001832/0.1615, allocations: 0.829 MB / 404.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1615, allocations: 0 / 404.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002319/0.1638, allocations: 1.009 MB / 405.8 MB, free: 80 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.1638, allocations: 15.92 kB / 405.8 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.1639, allocations: 8 kB / 405.8 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.1639, allocations: 8 kB / 405.8 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.1652, allocations: 283.9 kB / 406.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.1652, allocations: 8 kB / 406.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008563/0.1661, allocations: 79.86 kB / 406.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.1661, allocations: 31.98 kB / 406.2 MB, free: 15.65 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.000439/0.1666, allocations: 277.6 kB / 406.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.1668, allocations: 102.7 kB / 406.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.167, allocations: 104.9 kB / 406.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.167, allocations: 15.92 kB / 406.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.167, allocations: 4 kB / 406.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.167, allocations: 7.984 kB / 406.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003832/0.1709, allocations: 2.294 MB / 409 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.1709, allocations: 11.98 kB / 409 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008971/0.1718, allocations: 208.4 kB / 409.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/0.1718, allocations: 12 kB / 409.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.1719, allocations: 24 kB / 409.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.096e-05/0.1719, allocations: 15.92 kB / 409.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/0.1719, allocations: 15.88 kB / 409.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.1737, allocations: 1.018 MB / 410.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002536/0.1739, allocations: 187.9 kB / 410.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/0.1741, allocations: 19.98 kB / 410.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006724/0.1748, allocations: 55.95 kB / 410.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1749, allocations: 63.75 kB / 410.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.595e-05/0.1749, allocations: 28 kB / 410.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008885/0.1758, allocations: 0.6786 MB / 411.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1758, allocations: 0 / 411.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008525/0.1767, allocations: 208 kB / 411.5 MB, free: 10.05 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.000875/0.1776, allocations: 380.7 kB / 411.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.1796, allocations: 0.7694 MB / 412.6 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.1796, allocations: 4 kB / 412.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008369/0.1804, allocations: 365.2 kB / 413 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.1817, allocations: 208.7 kB / 413.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.185, allocations: 1.897 MB / 415.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000613/0.1856, allocations: 1.018 MB / 416.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.1862, allocations: 119.2 kB / 416.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.1864, allocations: 71.42 kB / 416.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1865, allocations: 3.938 kB / 416.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of Templates: time 0.02319/0.2096, allocations: 10.77 MB / 427.1 MB, free: 10.3 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)