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.006237/0.006237, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001177/0.001177, allocations: 191.5 kB / 16.67 MB, free: 5.523 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.527/1.527, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.001452/0.001452, allocations: 51.92 kB / 326.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1107, allocations: 46.62 MB / 373.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.2458/0.3566, allocations: 6.328 MB / 379.5 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003404/0.36, allocations: 2.132 MB / 381.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004848/0.3605, allocations: 19.66 kB / 381.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008888/0.3615, allocations: 356.9 kB / 382 MB, free: 9.152 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.001148/0.3626, allocations: 0.4914 MB / 382.5 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009326/0.3636, allocations: 436 kB / 382.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001507/0.3651, allocations: 1.544 MB / 384.4 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006253/0.3657, allocations: 0.5143 MB / 385 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006177/0.3664, allocations: 0.5744 MB / 385.5 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007869/0.3672, allocations: 0.6669 MB / 386.2 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002355/0.3674, allocations: 159.3 kB / 386.4 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003345/0.3677, allocations: 192.4 kB / 386.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002801/0.368, allocations: 323.1 kB / 386.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006758/0.3687, allocations: 0.6662 MB / 387.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002327/0.3711, allocations: 1.932 MB / 389.5 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3711, allocations: 4 kB / 389.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3711, allocations: 1.062 kB / 389.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.622e-05/0.3711, allocations: 0 / 389.5 MB, free: 5.621 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.003122/0.3742, allocations: 1.54 MB / 391 MB, free: 4.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3743, allocations: 13.3 kB / 391 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.3745, allocations: 128.7 kB / 391.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.3758, allocations: 0.7159 MB / 391.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.079e-05/0.3759, allocations: 72.78 kB / 391.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.3761, allocations: 103.6 kB / 392 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.3781, allocations: 1.013 MB / 393 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.481e-05/0.3782, allocations: 1.25 kB / 393 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.588e-05/0.3782, allocations: 37.41 kB / 393.1 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-05/0.3783, allocations: 24.11 kB / 393.1 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002067/0.3804, allocations: 0.8817 MB / 394 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005124/0.3855, allocations: 3.639 MB / 397.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002609/0.3881, allocations: 0.8957 MB / 398.5 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007368/0.3889, allocations: 367 kB / 398.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.857e-05/0.3889, allocations: 10.86 kB / 398.9 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.389, allocations: 45.3 kB / 398.9 MB, free: 220 kB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.915e-06/0.389, allocations: 1.375 kB / 398.9 MB, free: 220 kB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005199/0.3942, allocations: 1.785 MB / 400.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.3943, allocations: 88.55 kB / 400.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/0.3958, allocations: 0.9779 MB / 401.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.922e-05/0.3959, allocations: 37.17 kB / 401.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004754/0.3964, allocations: 0.5258 MB / 402.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.3966, allocations: 232.2 kB / 402.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003196/0.397, allocations: 156.6 kB / 402.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3971, allocations: 336.9 kB / 403.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.3982, allocations: 338.8 kB / 403.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.3993, allocations: 0.5279 MB / 403.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001876/0.4011, allocations: 0.8262 MB / 404.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/0.4012, allocations: 6.656 kB / 404.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002514/0.4037, allocations: 1.008 MB / 405.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.4037, allocations: 15.25 kB / 405.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.4037, allocations: 4.5 kB / 405.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.514e-05/0.4038, allocations: 14.78 kB / 405.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.405, allocations: 283 kB / 406.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.603e-05/0.405, allocations: 13 kB / 406.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008952/0.4059, allocations: 74.2 kB / 406.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-05/0.406, allocations: 33.78 kB / 406.2 MB, free: 11.69 MB / 334.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.0005094/0.4065, allocations: 279.1 kB / 406.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.4068, allocations: 110.8 kB / 406.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002614/0.407, allocations: 101.5 kB / 406.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.4071, allocations: 10 kB / 406.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/0.4071, allocations: 1.156 kB / 406.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.4071, allocations: 5.266 kB / 406.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/0.4115, allocations: 2.293 MB / 409 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.4115, allocations: 5.719 kB / 409 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000834/0.4123, allocations: 215.8 kB / 409.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.335e-05/0.4124, allocations: 9.938 kB / 409.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.015e-05/0.4124, allocations: 21.7 kB / 409.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.236e-05/0.4124, allocations: 14.09 kB / 409.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-05/0.4125, allocations: 15.5 kB / 409.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.4142, allocations: 1.032 MB / 410.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/0.4145, allocations: 185.8 kB / 410.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.4147, allocations: 23 kB / 410.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006651/0.4153, allocations: 47.08 kB / 410.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.4155, allocations: 64.25 kB / 410.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/0.4156, allocations: 28.8 kB / 410.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.4167, allocations: 0.6772 MB / 411.3 MB, free: 8.109 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4167, allocations: 0 / 411.3 MB, free: 8.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009758/0.4177, allocations: 207.1 kB / 411.5 MB, free: 8.086 MB / 334.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.0009342/0.4187, allocations: 372.9 kB / 411.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002237/0.4209, allocations: 0.7734 MB / 412.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.4209, allocations: 1.531 kB / 412.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008649/0.4218, allocations: 369.3 kB / 413 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.4231, allocations: 203.6 kB / 413.2 MB, free: 6.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.4266, allocations: 1.906 MB / 415.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006315/0.4273, allocations: 1.018 MB / 416.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005782/0.4279, allocations: 119.2 kB / 416.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.4281, allocations: 75.41 kB / 416.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4281, allocations: 4 kB / 416.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of Templates: time 0.02095/0.4491, allocations: 10.76 MB / 427.1 MB, free: 8.828 MB / 350.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)