Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.688/1.688, allocations: 171.2 MB / 187.3 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003647, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08445/0.08484, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3723/0.4572, allocations: 77.86 MB / 350.4 MB, free: 12.19 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.4575, allocations: 88.98 kB / 350.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1781/0.6356, allocations: 35.75 MB / 386.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.6357, allocations: 0 / 386.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.78e-05/0.6357, allocations: 24 kB / 386.3 MB, free: 14.36 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.006531/0.6423, allocations: 1.234 MB / 387.5 MB, free: 13.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/0.6424, allocations: 12.02 kB / 387.5 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007333/0.6431, allocations: 118.6 kB / 387.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002661/0.6458, allocations: 0.6057 MB / 388.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003543/0.6462, allocations: 81.98 kB / 388.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003974/0.6466, allocations: 92 kB / 388.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005966/0.6526, allocations: 1.029 MB / 389.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.328e-05/0.6527, allocations: 7.906 kB / 389.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.6529, allocations: 40 kB / 389.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.293e-05/0.6529, allocations: 31.98 kB / 389.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003701/0.6567, allocations: 0.9342 MB / 390.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008877/0.6656, allocations: 3.553 MB / 394 MB, free: 6.371 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002769/0.6684, allocations: 0.8803 MB / 394.9 MB, free: 5.469 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.365e-05/0.6685, allocations: 16.56 kB / 394.9 MB, free: 5.453 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.6686, allocations: 51.05 kB / 395 MB, free: 5.395 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 3.957e-06/0.6686, allocations: 0 / 395 MB, free: 5.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.0183/0.6869, allocations: 4.749 MB / 399.7 MB, free: 452 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.687, allocations: 90.2 kB / 399.8 MB, free: 340 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.6884, allocations: 0.6007 MB / 400.4 MB, free: 15.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002425/0.6887, allocations: 45.7 kB / 400.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003851/0.6891, allocations: 438.8 kB / 400.9 MB, free: 15.24 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005687/0.6896, allocations: 433.8 kB / 401.3 MB, free: 14.81 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.6898, allocations: 23.94 kB / 401.3 MB, free: 14.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.69, allocations: 358.8 kB / 401.7 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/0.6918, allocations: 426.4 kB / 402.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/0.6937, allocations: 0.5631 MB / 402.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.6957, allocations: 479.7 kB / 403.1 MB, free: 12.94 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.6957, allocations: 11.95 kB / 403.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004733/0.7005, allocations: 1.259 MB / 404.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.7005, allocations: 8.094 kB / 404.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.7006, allocations: 4 kB / 404.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006634/0.7012, allocations: 134.4 kB / 404.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/0.7036, allocations: 275.6 kB / 404.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00568/0.7093, allocations: 4.555 MB / 409.4 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.7111, allocations: 80.03 kB / 409.4 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/0.7114, allocations: 48.36 kB / 409.5 MB, free: 6.152 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009152/0.7123, allocations: 285.8 kB / 409.8 MB, free: 5.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003525/0.7127, allocations: 98.86 kB / 409.9 MB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004117/0.7168, allocations: 0.8243 MB / 410.7 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.44e-05/0.7169, allocations: 12 kB / 410.7 MB, free: 4.906 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.054e-05/0.717, allocations: 11.95 kB / 410.7 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.155e-05/0.717, allocations: 7.969 kB / 410.7 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01549/0.7325, allocations: 2.997 MB / 413.7 MB, free: 1.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.7326, allocations: 4 kB / 413.7 MB, free: 1.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/0.7346, allocations: 232 kB / 413.9 MB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007648/0.7354, allocations: 159.3 kB / 414.1 MB, free: 1.367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.7355, allocations: 31.98 kB / 414.1 MB, free: 1.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/0.7476, allocations: 5.62 MB / 419.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/0.7476, allocations: 7.969 kB / 419.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/0.7599, allocations: 1.963 MB / 421.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004448/0.7605, allocations: 176 kB / 421.9 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003711/0.7608, allocations: 24 kB / 421.9 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/0.7623, allocations: 79.94 kB / 422 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003399/0.7627, allocations: 88.44 kB / 422.1 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.7628, allocations: 35.98 kB / 422.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001103/0.764, allocations: 455 kB / 422.6 MB, free: 8.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.764, allocations: 3.938 kB / 422.6 MB, free: 8.289 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001881/0.7659, allocations: 275.9 kB / 422.8 MB, free: 8.02 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.coil.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004732/0.7664, allocations: 157.4 kB / 423 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005134/0.7716, allocations: 1.457 MB / 424.4 MB, free: 6.367 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/0.7716, allocations: 4 kB / 424.4 MB, free: 6.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003117/0.7748, allocations: 1.097 MB / 425.5 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.7765, allocations: 146.8 kB / 425.7 MB, free: 5.066 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007295/0.7838, allocations: 2.785 MB / 428.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008722/0.7847, allocations: 1.052 MB / 429.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007027/0.7855, allocations: 87.41 kB / 429.6 MB, free: 1.055 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7855, allocations: 0 / 429.6 MB, free: 1.055 MB / 346.7 MB Notification: Performance of Templates: time 0.2965/1.082, allocations: 28.18 MB / 457.8 MB, free: 92.19 MB / 346.7 MB