Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadModel(Modelica): time 1.548/1.548, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000613/0.0006132, allocations: 8 kB / 233.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1015, allocations: 38.78 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3014/0.4029, allocations: 79.29 MB / 351.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.4032, allocations: 96.94 kB / 351.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08289/0.4861, allocations: 21.34 MB / 372.7 MB, free: 8.809 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.978e-06/0.4861, allocations: 0 / 372.7 MB, free: 8.809 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.799e-05/0.4862, allocations: 28 kB / 372.8 MB, free: 8.781 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003866/0.4901, allocations: 1.365 MB / 374.1 MB, free: 7.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.4901, allocations: 8.031 kB / 374.1 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005913/0.4907, allocations: 131.1 kB / 374.3 MB, free: 7.293 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.4935, allocations: 0.6455 MB / 374.9 MB, free: 6.754 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002365/0.4938, allocations: 84.8 kB / 375 MB, free: 6.699 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003226/0.4941, allocations: 97.47 kB / 375.1 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004628/0.4988, allocations: 1.032 MB / 376.1 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-05/0.4989, allocations: 4 kB / 376.1 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002041/0.4991, allocations: 42.75 kB / 376.2 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.149e-05/0.4991, allocations: 20 kB / 376.2 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004695/0.5039, allocations: 0.9757 MB / 377.2 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008233/0.5121, allocations: 3.843 MB / 381 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/0.5153, allocations: 0.9527 MB / 382 MB, free: 1.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-05/0.5154, allocations: 11.25 kB / 382 MB, free: 1.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.5154, allocations: 38.62 kB / 382 MB, free: 1.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 4.145e-06/0.5154, allocations: 0 / 382 MB, free: 1.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=82): time 0.007385/0.5228, allocations: 2.233 MB / 384.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.5229, allocations: 85.55 kB / 384.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/0.5246, allocations: 0.8088 MB / 385.1 MB, free: 14.6 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.5247, allocations: 37.7 kB / 385.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004588/0.5252, allocations: 0.5171 MB / 385.7 MB, free: 14.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003025/0.5255, allocations: 272 kB / 385.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.729e-05/0.5256, allocations: 24 kB / 386 MB, free: 13.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.5258, allocations: 350.6 kB / 386.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.5272, allocations: 421.7 kB / 386.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.5288, allocations: 0.5641 MB / 387.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.5303, allocations: 475.8 kB / 387.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.771e-06/0.5303, allocations: 0 / 387.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003415/0.5338, allocations: 1.136 MB / 388.9 MB, free: 10.74 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.782e-05/0.5338, allocations: 29.7 kB / 388.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.5339, allocations: 4 kB / 388.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.5339, allocations: 15.94 kB / 388.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/0.5356, allocations: 335.6 kB / 389.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.465e-05/0.5357, allocations: 19.97 kB / 389.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.5369, allocations: 107.9 kB / 389.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.537, allocations: 39.98 kB / 389.4 MB, free: 10.19 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (118): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006981/0.5377, allocations: 296.7 kB / 389.7 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002659/0.538, allocations: 94.88 kB / 389.8 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001465/0.5395, allocations: 478.2 kB / 390.3 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.5395, allocations: 8 kB / 390.3 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.3e-06/0.5395, allocations: 4 kB / 390.3 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.5395, allocations: 3.984 kB / 390.3 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006917/0.5465, allocations: 2.937 MB / 393.2 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.991e-05/0.5465, allocations: 12 kB / 393.2 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/0.5478, allocations: 263.7 kB / 393.5 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.95e-05/0.5478, allocations: 16 kB / 393.5 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.82e-05/0.5479, allocations: 31.98 kB / 393.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.413e-05/0.548, allocations: 19.94 kB / 393.6 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.448e-05/0.548, allocations: 11.94 kB / 393.6 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003157/0.5512, allocations: 1.746 MB / 395.3 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004099/0.5516, allocations: 207.9 kB / 395.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.5518, allocations: 35.94 kB / 395.6 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009705/0.5528, allocations: 79.95 kB / 395.6 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.553, allocations: 95.62 kB / 395.7 MB, free: 3.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.986e-05/0.5531, allocations: 32 kB / 395.8 MB, free: 3.211 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001329/0.5545, allocations: 0.6318 MB / 396.4 MB, free: 2.582 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.95e-07/0.5545, allocations: 0 / 396.4 MB, free: 2.582 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001255/0.5557, allocations: 235.9 kB / 396.6 MB, free: 2.352 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000759/0.5565, allocations: 264.8 kB / 396.9 MB, free: 2.125 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002799/0.5593, allocations: 0.952 MB / 397.8 MB, free: 1.16 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.5594, allocations: 4.438 kB / 397.8 MB, free: 1.156 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.5608, allocations: 465.9 kB / 398.3 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.5621, allocations: 175.2 kB / 398.5 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00507/0.5672, allocations: 2.471 MB / 400.9 MB, free: 13.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009836/0.5682, allocations: 1.041 MB / 402 MB, free: 12.83 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000499/0.5687, allocations: 87.39 kB / 402.1 MB, free: 12.74 MB / 330.7 MB Notification: Performance of SimCode: time 1.669e-06/0.5688, allocations: 4 kB / 402.1 MB, free: 12.74 MB / 330.7 MB Notification: Performance of Templates: time 0.02526/0.594, allocations: 12.8 MB / 414.9 MB, free: 15.96 MB / 346.7 MB