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.001285/0.001285, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.501/1.501, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001327/0.001327, allocations: 52.36 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2175, allocations: 46.63 MB / 325.3 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.007506/0.2251, allocations: 6.338 MB / 331.7 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004508/0.2296, allocations: 2.132 MB / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005819/0.2302, allocations: 19.66 kB / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008023/0.231, allocations: 354 kB / 334.1 MB, free: 10.9 MB / 270.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.001147/0.2322, allocations: 484.7 kB / 334.6 MB, free: 10.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000854/0.2331, allocations: 434.7 kB / 335 MB, free: 10.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.2347, allocations: 1.529 MB / 336.6 MB, free: 8.727 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006948/0.2354, allocations: 0.513 MB / 337.1 MB, free: 8.195 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006115/0.236, allocations: 0.5646 MB / 337.7 MB, free: 7.629 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006716/0.2367, allocations: 0.6731 MB / 338.3 MB, free: 6.953 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000186/0.2369, allocations: 156 kB / 338.5 MB, free: 6.801 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002894/0.2372, allocations: 184 kB / 338.7 MB, free: 6.621 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002742/0.2375, allocations: 323 kB / 339 MB, free: 6.305 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005789/0.238, allocations: 0.6648 MB / 339.6 MB, free: 5.637 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001713/0.2398, allocations: 1.92 MB / 341.6 MB, free: 3.711 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.2398, allocations: 0 / 341.6 MB, free: 3.711 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.2398, allocations: 4 kB / 341.6 MB, free: 3.707 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.38e-05/0.2398, allocations: 0 / 341.6 MB, free: 3.707 MB / 270.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.003902/0.2438, allocations: 1.535 MB / 343.1 MB, free: 2.117 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.165e-05/0.2438, allocations: 15.89 kB / 343.1 MB, free: 2.102 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.2441, allocations: 131.4 kB / 343.2 MB, free: 1.973 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.2454, allocations: 0.6967 MB / 343.9 MB, free: 1.234 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.2455, allocations: 90.47 kB / 344 MB, free: 1.148 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.2457, allocations: 99.84 kB / 344.1 MB, free: 1.051 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.2476, allocations: 1.009 MB / 345.1 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.2476, allocations: 7.938 kB / 345.1 MB, free: 20 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.2477, allocations: 40.08 kB / 345.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.2477, allocations: 24 kB / 345.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.2497, allocations: 0.8835 MB / 346.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004926/0.2546, allocations: 3.656 MB / 349.7 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003035/0.2577, allocations: 0.8961 MB / 350.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007988/0.2585, allocations: 373.5 kB / 351 MB, free: 9.953 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.541e-05/0.2586, allocations: 11.97 kB / 351 MB, free: 9.941 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.2586, allocations: 39.16 kB / 351.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 2.214e-06/0.2586, allocations: 0 / 351.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=67): time 0.005043/0.2636, allocations: 1.781 MB / 352.8 MB, free: 8.102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.2637, allocations: 89.05 kB / 352.9 MB, free: 7.996 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.2649, allocations: 0.9741 MB / 353.9 MB, free: 7.016 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.265, allocations: 37.7 kB / 353.9 MB, free: 6.973 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003602/0.2654, allocations: 0.526 MB / 354.5 MB, free: 6.438 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.2655, allocations: 240.5 kB / 354.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.2658, allocations: 158.5 kB / 354.8 MB, free: 6.039 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.2659, allocations: 337.9 kB / 355.2 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009694/0.2669, allocations: 341.8 kB / 355.5 MB, free: 5.371 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.268, allocations: 0.5223 MB / 356 MB, free: 4.773 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001897/0.2699, allocations: 0.8443 MB / 356.9 MB, free: 3.852 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2699, allocations: 0 / 356.9 MB, free: 3.852 MB / 286.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002302/0.2722, allocations: 1.013 MB / 357.9 MB, free: 2.832 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2722, allocations: 8 kB / 357.9 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.2723, allocations: 8 kB / 357.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.2723, allocations: 11.98 kB / 357.9 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.2735, allocations: 287.6 kB / 358.2 MB, free: 2.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/0.2736, allocations: 15.92 kB / 358.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007866/0.2744, allocations: 71.92 kB / 358.3 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.866e-05/0.2744, allocations: 32 kB / 358.3 MB, free: 2.406 MB / 286.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.0004603/0.2749, allocations: 285.6 kB / 358.6 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.2751, allocations: 102.7 kB / 358.7 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.2753, allocations: 104.9 kB / 358.8 MB, free: 1.906 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.2753, allocations: 8 kB / 358.8 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2753, allocations: 0 / 358.8 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.2754, allocations: 3.984 kB / 358.8 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003858/0.2792, allocations: 2.298 MB / 361.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.2792, allocations: 4 kB / 361.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009413/0.2802, allocations: 208 kB / 361.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.504e-05/0.2802, allocations: 15.98 kB / 361.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.818e-05/0.2803, allocations: 20 kB / 361.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.53e-05/0.2803, allocations: 27.86 kB / 361.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.2803, allocations: 7.938 kB / 361.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/0.282, allocations: 1.025 MB / 362.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.2823, allocations: 187.8 kB / 362.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.2824, allocations: 20 kB / 362.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006398/0.283, allocations: 63.88 kB / 362.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.2832, allocations: 59.75 kB / 362.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.173e-05/0.2832, allocations: 24 kB / 362.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008797/0.2841, allocations: 0.6864 MB / 363.4 MB, free: 13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2841, allocations: 0 / 363.4 MB, free: 13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007493/0.2849, allocations: 208 kB / 363.6 MB, free: 12.8 MB / 302.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.0008412/0.2857, allocations: 375 kB / 364 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001999/0.2877, allocations: 0.7886 MB / 364.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.2878, allocations: 0 / 364.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008316/0.2886, allocations: 373.2 kB / 365.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.2898, allocations: 199.1 kB / 365.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.2931, allocations: 1.929 MB / 367.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/0.2937, allocations: 1.022 MB / 368.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005682/0.2943, allocations: 119.2 kB / 368.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000208/0.2945, allocations: 75.41 kB / 368.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2945, allocations: 0 / 368.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of Templates: time 0.02002/0.3146, allocations: 10.57 MB / 379.1 MB, free: 13.21 MB / 318.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)