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.0057/0.005699, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001066/0.001067, allocations: 193.7 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.478/1.478, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001179/0.001179, allocations: 45.09 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1078, allocations: 46.62 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.008114/0.116, allocations: 6.338 MB / 379.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005234/0.1213, allocations: 2.124 MB / 381.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009868/0.1223, allocations: 19.94 kB / 381.6 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001325/0.1237, allocations: 357.8 kB / 382 MB, free: 8.465 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.001645/0.1254, allocations: 488.6 kB / 382.5 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.1266, allocations: 435.3 kB / 382.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002138/0.1288, allocations: 1.545 MB / 384.4 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000825/0.1296, allocations: 0.517 MB / 385 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007432/0.1304, allocations: 0.5723 MB / 385.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007621/0.1311, allocations: 0.6575 MB / 386.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.1313, allocations: 163.9 kB / 386.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003092/0.1316, allocations: 196 kB / 386.5 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002763/0.1319, allocations: 319 kB / 386.8 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005623/0.1325, allocations: 0.6687 MB / 387.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.1343, allocations: 1.93 MB / 389.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1343, allocations: 0 / 389.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1343, allocations: 4 kB / 389.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.1344, allocations: 4 kB / 389.5 MB, free: 0.9531 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.00308/0.1374, allocations: 1.568 MB / 391 MB, free: 15.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.1375, allocations: 15.89 kB / 391 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002271/0.1377, allocations: 140 kB / 391.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.139, allocations: 0.7168 MB / 391.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.254e-05/0.1391, allocations: 74.38 kB / 392 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.1393, allocations: 104.1 kB / 392.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.1413, allocations: 1.013 MB / 393.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.758e-05/0.1413, allocations: 3.984 kB / 393.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.103e-05/0.1414, allocations: 36 kB / 393.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.661e-05/0.1414, allocations: 24 kB / 393.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002127/0.1436, allocations: 0.8835 MB / 394 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00547/0.1491, allocations: 3.642 MB / 397.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003016/0.1521, allocations: 0.891 MB / 398.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008047/0.1529, allocations: 377.4 kB / 398.9 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-05/0.153, allocations: 8 kB / 398.9 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.153, allocations: 34.56 kB / 399 MB, free: 7.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 4.288e-06/0.153, allocations: 8 kB / 399 MB, free: 7.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=67): time 0.004905/0.1579, allocations: 1.815 MB / 400.8 MB, free: 5.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.158, allocations: 85.11 kB / 400.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.1593, allocations: 0.978 MB / 401.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.1593, allocations: 37.7 kB / 401.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003761/0.1597, allocations: 0.5428 MB / 402.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.1599, allocations: 242 kB / 402.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/0.1602, allocations: 158.5 kB / 402.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1603, allocations: 338 kB / 403.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009053/0.1612, allocations: 341.8 kB / 403.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.1622, allocations: 0.5223 MB / 404 MB, free: 1.938 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.1641, allocations: 0.829 MB / 404.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1641, allocations: 4 kB / 404.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002391/0.1665, allocations: 1.014 MB / 405.9 MB, free: 4 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/0.1666, allocations: 11.98 kB / 405.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.1666, allocations: 4 kB / 405.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/0.1666, allocations: 8 kB / 405.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.1679, allocations: 283.8 kB / 406.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.249e-05/0.1679, allocations: 19.92 kB / 406.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.1688, allocations: 67.94 kB / 406.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.198e-05/0.1689, allocations: 39.98 kB / 406.3 MB, free: 15.58 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.0005436/0.1694, allocations: 277.6 kB / 406.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.1696, allocations: 111.3 kB / 406.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002167/0.1698, allocations: 104.8 kB / 406.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1698, allocations: 11.94 kB / 406.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.1698, allocations: 0 / 406.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.1699, allocations: 7.984 kB / 406.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003812/0.1737, allocations: 2.29 MB / 409.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.1737, allocations: 8 kB / 409.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000877/0.1746, allocations: 216.2 kB / 409.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.1746, allocations: 8 kB / 409.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/0.1747, allocations: 27.92 kB / 409.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/0.1747, allocations: 8 kB / 409.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.1747, allocations: 15.88 kB / 409.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.1764, allocations: 1.034 MB / 410.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.1767, allocations: 192.4 kB / 410.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.1768, allocations: 20 kB / 410.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006254/0.1774, allocations: 47.95 kB / 410.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.1776, allocations: 63.75 kB / 410.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.814e-05/0.1776, allocations: 35.97 kB / 410.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008845/0.1785, allocations: 0.6786 MB / 411.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1785, allocations: 0 / 411.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008379/0.1794, allocations: 211.9 kB / 411.6 MB, free: 9.965 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.0009399/0.1803, allocations: 380.6 kB / 412 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001891/0.1822, allocations: 0.7617 MB / 412.8 MB, free: 8.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.1822, allocations: 4.062 kB / 412.8 MB, free: 8.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008415/0.1831, allocations: 373.1 kB / 413.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.1842, allocations: 204.6 kB / 413.3 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/0.1875, allocations: 1.915 MB / 415.2 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006361/0.1881, allocations: 1.022 MB / 416.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005262/0.1887, allocations: 119.2 kB / 416.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.1889, allocations: 75.41 kB / 416.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1889, allocations: 7.875 kB / 416.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of Templates: time 0.01906/0.208, allocations: 10.76 MB / 427.2 MB, free: 10.18 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)