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.ArmatureStroke.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadModel(Modelica): time 1.694/1.694, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.056e-05/2.072e-05, allocations: 4 kB / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06994/0.06998, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.293/0.3631, allocations: 77.13 MB / 338.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.3634, allocations: 83.64 kB / 338.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1454/0.5088, allocations: 35.44 MB / 373.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.36e-06/0.5088, allocations: 0 / 373.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.549e-05/0.5089, allocations: 27.98 kB / 374 MB, free: 11.03 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.002842/0.5118, allocations: 1.131 MB / 375.1 MB, free: 9.855 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.5118, allocations: 8.031 kB / 375.1 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003777/0.5122, allocations: 118.6 kB / 375.2 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001507/0.5138, allocations: 0.5979 MB / 375.8 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.5139, allocations: 50 kB / 375.9 MB, free: 9.039 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.5141, allocations: 63.91 kB / 375.9 MB, free: 8.977 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002106/0.5163, allocations: 0.7225 MB / 376.6 MB, free: 8.254 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.5184, allocations: 0.798 MB / 377.4 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.451e-05/0.5185, allocations: 3.953 kB / 377.4 MB, free: 7.438 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.5187, allocations: 0 / 377.4 MB, free: 7.438 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.234e-05/0.5187, allocations: 24 kB / 377.5 MB, free: 7.414 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007941/0.5266, allocations: 3.381 MB / 380.8 MB, free: 3.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.5284, allocations: 0.7494 MB / 381.6 MB, free: 3.117 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.5295, allocations: 427.7 kB / 382 MB, free: 2.695 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.825e-05/0.5296, allocations: 16.55 kB / 382 MB, free: 2.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/0.5296, allocations: 51.7 kB / 382.1 MB, free: 2.617 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 4.653e-06/0.5296, allocations: 0 / 382.1 MB, free: 2.617 MB / 314.7 MB Notification: Performance of matching and sorting (n=131): time 0.01027/0.5399, allocations: 3.662 MB / 385.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.276e-05/0.54, allocations: 94.27 kB / 385.8 MB, free: 14.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009162/0.541, allocations: 462.2 kB / 386.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.5411, allocations: 25.7 kB / 386.3 MB, free: 14.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003852/0.5415, allocations: 458.7 kB / 386.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005269/0.5421, allocations: 429.5 kB / 387.2 MB, free: 13.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.563e-05/0.5422, allocations: 3.938 kB / 387.2 MB, free: 13.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.5424, allocations: 362.8 kB / 387.5 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008982/0.5433, allocations: 346.6 kB / 387.9 MB, free: 12.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.5444, allocations: 478 kB / 388.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009993/0.5454, allocations: 405.2 kB / 388.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.956e-06/0.5454, allocations: 0 / 388.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002801/0.5482, allocations: 1.067 MB / 389.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.5483, allocations: 4.312 kB / 389.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.5483, allocations: 8 kB / 389.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006069/0.5489, allocations: 138.5 kB / 390 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.5505, allocations: 291.6 kB / 390.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005729/0.5563, allocations: 4.607 MB / 394.8 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.5578, allocations: 56.02 kB / 394.9 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.5579, allocations: 43.98 kB / 394.9 MB, free: 5.125 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003031/0.5582, allocations: 128.9 kB / 395.1 MB, free: 4.992 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000259/0.5585, allocations: 90.92 kB / 395.2 MB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.5604, allocations: 0.7052 MB / 395.9 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.5605, allocations: 23.98 kB / 395.9 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.5605, allocations: 4 kB / 395.9 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/0.5605, allocations: 3.984 kB / 395.9 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006223/0.5667, allocations: 2.744 MB / 398.6 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.5668, allocations: 4 kB / 398.6 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/0.5683, allocations: 256 kB / 398.9 MB, free: 1.043 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005697/0.5689, allocations: 126.5 kB / 399 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.569, allocations: 15.94 kB / 399 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004807/0.5738, allocations: 4.214 MB / 403.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.002e-06/0.5739, allocations: 4 kB / 403.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004085/0.578, allocations: 1.852 MB / 405.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004303/0.5784, allocations: 168 kB / 405.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.5787, allocations: 8 kB / 405.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009407/0.5796, allocations: 63.88 kB / 405.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/0.5799, allocations: 84.62 kB / 405.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.58, allocations: 40.17 kB / 405.5 MB, free: 9.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006927/0.5807, allocations: 358.9 kB / 405.8 MB, free: 9.629 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-06/0.5807, allocations: 0 / 405.8 MB, free: 9.629 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001593/0.5823, allocations: 228 kB / 406 MB, free: 9.406 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.g_ma.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003243/0.5827, allocations: 142 kB / 406.2 MB, free: 9.258 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.5856, allocations: 1.281 MB / 407.5 MB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.02e-06/0.5856, allocations: 0.625 kB / 407.5 MB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.5874, allocations: 0.8751 MB / 408.3 MB, free: 7.047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.5886, allocations: 127.1 kB / 408.5 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004748/0.5934, allocations: 1.759 MB / 410.2 MB, free: 5.098 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009885/0.5944, allocations: 1.06 MB / 411.3 MB, free: 4.012 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005678/0.595, allocations: 91.39 kB / 411.4 MB, free: 3.922 MB / 346.7 MB Notification: Performance of SimCode: time 1.727e-06/0.595, allocations: 4 kB / 411.4 MB, free: 3.918 MB / 346.7 MB Notification: Performance of Templates: time 0.2177/0.8128, allocations: 26.18 MB / 437.5 MB, free: 98.07 MB / 346.7 MB