Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001616/0.001616, allocations: 100.9 kB / 17.06 MB, free: 6.145 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.001786/0.001786, allocations: 195 kB / 18 MB, free: 5.219 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.375/1.375, allocations: 205.1 MB / 223.9 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.001258/0.001258, allocations: 51.92 kB / 327.9 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1075, allocations: 46.62 MB / 374.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.2337/0.3412, allocations: 6.33 MB / 380.8 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003904/0.3452, allocations: 2.133 MB / 382.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004688/0.3457, allocations: 19.31 kB / 383 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008437/0.3466, allocations: 347.1 kB / 383.3 MB, free: 9.145 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.00111/0.3477, allocations: 490.2 kB / 383.8 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000974/0.3487, allocations: 430.6 kB / 384.2 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001873/0.3506, allocations: 1.55 MB / 385.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007374/0.3513, allocations: 0.5105 MB / 386.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000882/0.3522, allocations: 0.5776 MB / 386.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008971/0.3531, allocations: 0.6668 MB / 387.5 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002548/0.3534, allocations: 160.4 kB / 387.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003949/0.3538, allocations: 192.1 kB / 387.8 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003242/0.3541, allocations: 324.1 kB / 388.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006411/0.3548, allocations: 0.6656 MB / 388.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002381/0.3571, allocations: 1.929 MB / 390.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3572, allocations: 0.5156 kB / 390.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3572, allocations: 0 / 390.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.712e-05/0.3572, allocations: 1.062 kB / 390.8 MB, free: 5.625 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.003293/0.3605, allocations: 1.547 MB / 392.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3606, allocations: 18.52 kB / 392.3 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.3608, allocations: 127 kB / 392.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.3621, allocations: 0.7129 MB / 393.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-05/0.3622, allocations: 77.62 kB / 393.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.3623, allocations: 102.9 kB / 393.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.3645, allocations: 1.005 MB / 394.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.3645, allocations: 1.938 kB / 394.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.59e-05/0.3646, allocations: 45.8 kB / 394.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-05/0.3646, allocations: 22.16 kB / 394.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00211/0.3667, allocations: 0.887 MB / 395.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005149/0.3719, allocations: 3.634 MB / 398.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002978/0.3749, allocations: 0.8965 MB / 399.8 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007864/0.3757, allocations: 368 kB / 400.2 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.996e-05/0.3758, allocations: 10.86 kB / 400.2 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.3758, allocations: 41.31 kB / 400.2 MB, free: 220 kB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.775e-06/0.3758, allocations: 0 / 400.2 MB, free: 220 kB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005059/0.3809, allocations: 1.789 MB / 402 MB, free: 15.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.3809, allocations: 88.02 kB / 402.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.3823, allocations: 0.979 MB / 403.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.714e-05/0.3824, allocations: 36.39 kB / 403.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003883/0.3828, allocations: 0.5146 MB / 403.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.383, allocations: 241.2 kB / 403.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003021/0.3833, allocations: 158.7 kB / 404 MB, free: 13.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3834, allocations: 337.9 kB / 404.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009483/0.3844, allocations: 342.9 kB / 404.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.3855, allocations: 0.521 MB / 405.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001879/0.3874, allocations: 0.8211 MB / 406 MB, free: 12.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.3874, allocations: 6.5 kB / 406 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002421/0.3898, allocations: 1.013 MB / 407.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3899, allocations: 10.59 kB / 407.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.3899, allocations: 5.625 kB / 407.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.944e-05/0.3899, allocations: 9.781 kB / 407.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3912, allocations: 292.2 kB / 407.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.3912, allocations: 8.406 kB / 407.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000833/0.392, allocations: 66.73 kB / 407.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-05/0.3921, allocations: 33.84 kB / 407.5 MB, free: 11.7 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.0005238/0.3926, allocations: 294.9 kB / 407.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.3929, allocations: 101.5 kB / 407.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.3931, allocations: 114.1 kB / 408 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.3931, allocations: 6.5 kB / 408 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/0.3932, allocations: 1.094 kB / 408 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.3932, allocations: 5.141 kB / 408 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/0.3973, allocations: 2.296 MB / 410.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.3973, allocations: 7.625 kB / 410.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008398/0.3982, allocations: 205.1 kB / 410.5 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.3982, allocations: 10.88 kB / 410.5 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.3983, allocations: 25.98 kB / 410.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/0.3983, allocations: 13.81 kB / 410.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.254e-05/0.3983, allocations: 19.89 kB / 410.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.4001, allocations: 1.021 MB / 411.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002409/0.4003, allocations: 184.5 kB / 411.8 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.4004, allocations: 18.44 kB / 411.8 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000624/0.4011, allocations: 50.91 kB / 411.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.4012, allocations: 73.69 kB / 411.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-05/0.4013, allocations: 25.5 kB / 411.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009466/0.4022, allocations: 0.6759 MB / 412.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4022, allocations: 4 kB / 412.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008877/0.4031, allocations: 208.2 kB / 412.8 MB, free: 8.078 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.0009762/0.4041, allocations: 366.8 kB / 413.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.4062, allocations: 0.7732 MB / 413.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.4062, allocations: 2.812 kB / 413.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008034/0.407, allocations: 366.2 kB / 414.3 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.001209/0.4082, allocations: 204.7 kB / 414.5 MB, free: 6.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/0.4119, allocations: 1.906 MB / 416.4 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006764/0.4126, allocations: 1.014 MB / 417.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004695/0.4131, allocations: 123.2 kB / 417.5 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000219/0.4133, allocations: 79.34 kB / 417.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4133, allocations: 0 / 417.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of Templates: time 0.0193/0.4326, allocations: 10.96 MB / 428.6 MB, free: 8.629 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)