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.005826/0.005826, allocations: 102.3 kB / 15.73 MB, free: 5.516 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.001225/0.001225, allocations: 193.5 kB / 16.67 MB, free: 5.449 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.589/1.589, allocations: 205.1 MB / 222.6 MB, free: 4.355 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.001791/0.001791, allocations: 49.48 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1424, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.0114/0.1538, allocations: 6.338 MB / 379.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005954/0.1598, allocations: 2.135 MB / 381.6 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.1611, allocations: 19.94 kB / 381.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.1623, allocations: 353.8 kB / 382 MB, free: 8.418 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.002037/0.1644, allocations: 496.6 kB / 382.5 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1657, allocations: 427.4 kB / 382.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002653/0.1684, allocations: 1.549 MB / 384.5 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.1695, allocations: 0.517 MB / 385 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.1707, allocations: 0.58 MB / 385.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.1718, allocations: 0.6614 MB / 386.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002931/0.1721, allocations: 160 kB / 386.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00044/0.1726, allocations: 192 kB / 386.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004087/0.173, allocations: 335 kB / 386.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009566/0.174, allocations: 0.661 MB / 387.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002913/0.1769, allocations: 1.942 MB / 389.5 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1769, allocations: 0 / 389.5 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.177, allocations: 0 / 389.5 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.343e-05/0.177, allocations: 0 / 389.5 MB, free: 0.8867 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.005091/0.1821, allocations: 1.565 MB / 391.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.1822, allocations: 15.89 kB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003545/0.1825, allocations: 140.1 kB / 391.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.1845, allocations: 0.7129 MB / 391.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.1846, allocations: 74.38 kB / 392 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/0.1849, allocations: 104.1 kB / 392.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003315/0.1882, allocations: 1.009 MB / 393.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.111e-05/0.1883, allocations: 0 / 393.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.1884, allocations: 40 kB / 393.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.004e-05/0.1885, allocations: 24 kB / 393.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003347/0.1918, allocations: 0.8874 MB / 394.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008799/0.2006, allocations: 3.638 MB / 397.7 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004832/0.2055, allocations: 0.895 MB / 398.6 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.2068, allocations: 373.4 kB / 398.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.517e-05/0.2069, allocations: 19.92 kB / 399 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/0.207, allocations: 38.56 kB / 399 MB, free: 7.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 3.096e-06/0.207, allocations: 0 / 399 MB, free: 7.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=67): time 0.007951/0.215, allocations: 1.815 MB / 400.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/0.2151, allocations: 85.05 kB / 400.9 MB, free: 5.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002167/0.2173, allocations: 0.9781 MB / 401.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.2173, allocations: 33.7 kB / 401.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005183/0.2179, allocations: 0.535 MB / 402.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/0.2182, allocations: 242 kB / 402.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004085/0.2186, allocations: 162.5 kB / 402.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.2188, allocations: 334 kB / 403.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/0.2203, allocations: 349.8 kB / 403.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/0.222, allocations: 0.5145 MB / 404 MB, free: 1.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/0.225, allocations: 0.8329 MB / 404.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.2251, allocations: 4 kB / 404.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004021/0.2291, allocations: 1.018 MB / 405.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.2292, allocations: 15.97 kB / 405.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.2292, allocations: 4 kB / 405.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.274e-05/0.2292, allocations: 12 kB / 405.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002037/0.2313, allocations: 287.5 kB / 406.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-05/0.2313, allocations: 12 kB / 406.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.2328, allocations: 63.92 kB / 406.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.2329, allocations: 36 kB / 406.3 MB, free: 15.52 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.0006463/0.2336, allocations: 285.6 kB / 406.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002823/0.2339, allocations: 107.3 kB / 406.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.2342, allocations: 108.9 kB / 406.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.2342, allocations: 11.98 kB / 406.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.2343, allocations: 0 / 406.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.2343, allocations: 3.984 kB / 406.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006378/0.2407, allocations: 2.298 MB / 409.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.2407, allocations: 4 kB / 409.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/0.2422, allocations: 207.8 kB / 409.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.739e-05/0.2422, allocations: 8 kB / 409.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.412e-05/0.2423, allocations: 23.98 kB / 409.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.989e-05/0.2423, allocations: 11.94 kB / 409.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.545e-05/0.2424, allocations: 15.92 kB / 409.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002855/0.2453, allocations: 1.034 MB / 410.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003976/0.2457, allocations: 196.4 kB / 410.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.2459, allocations: 20 kB / 410.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.247, allocations: 47.94 kB / 410.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.2472, allocations: 75.69 kB / 410.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.095e-05/0.2473, allocations: 24 kB / 410.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00143/0.2487, allocations: 0.6786 MB / 411.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.2487, allocations: 0 / 411.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001443/0.2502, allocations: 215.9 kB / 411.7 MB, free: 9.902 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.001374/0.2516, allocations: 368.7 kB / 412 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003327/0.2549, allocations: 0.7728 MB / 412.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.2549, allocations: 0 / 412.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001421/0.2564, allocations: 373.8 kB / 413.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/0.2585, allocations: 196.6 kB / 413.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005327/0.2638, allocations: 1.931 MB / 415.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006581/0.2645, allocations: 1.018 MB / 416.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005164/0.265, allocations: 123.2 kB / 416.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.2653, allocations: 71.41 kB / 416.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2653, allocations: 0 / 416.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of Templates: time 0.01946/0.2847, allocations: 10.76 MB / 427.2 MB, free: 10.13 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)