Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006346/0.0006347, allocations: 8 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.09752, allocations: 44.51 MB / 308.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007438/0.105, allocations: 5.045 MB / 313.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004002/0.1091, allocations: 1.813 MB / 315.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000925/0.11, allocations: 19.94 kB / 315.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005311/0.1106, allocations: 158.9 kB / 315.4 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001337/0.1119, allocations: 418.8 kB / 315.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007836/0.1127, allocations: 211.6 kB / 316 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.1143, allocations: 0.9125 MB / 316.9 MB, free: 8.418 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006938/0.115, allocations: 369.9 kB / 317.3 MB, free: 8.039 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006549/0.1156, allocations: 426.5 kB / 317.7 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006835/0.1164, allocations: 493.9 kB / 318.2 MB, free: 7.137 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001476/0.1165, allocations: 60 kB / 318.2 MB, free: 7.078 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.1167, allocations: 64 kB / 318.3 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.1169, allocations: 195.2 kB / 318.5 MB, free: 6.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002817/0.1172, allocations: 245.1 kB / 318.7 MB, free: 6.578 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001779/0.119, allocations: 1.453 MB / 320.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.528e-06/0.1191, allocations: 0 / 320.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.308e-06/0.1191, allocations: 0 / 320.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.059e-05/0.1191, allocations: 0 / 320.2 MB, free: 5.121 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.003278/0.1224, allocations: 1.301 MB / 321.5 MB, free: 3.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.1225, allocations: 12.03 kB / 321.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.1228, allocations: 122.5 kB / 321.6 MB, free: 3.637 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001472/0.1242, allocations: 0.6369 MB / 322.3 MB, free: 2.957 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.1244, allocations: 81.94 kB / 322.3 MB, free: 2.879 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002067/0.1247, allocations: 96 kB / 322.4 MB, free: 2.785 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.1273, allocations: 1.025 MB / 323.5 MB, free: 1.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.223e-05/0.1274, allocations: 7.891 kB / 323.5 MB, free: 1.742 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.1276, allocations: 40 kB / 323.5 MB, free: 1.703 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.345e-05/0.1276, allocations: 27.95 kB / 323.5 MB, free: 1.676 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002807/0.1304, allocations: 0.907 MB / 324.4 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007529/0.138, allocations: 3.348 MB / 327.8 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.1402, allocations: 0.8431 MB / 328.6 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.639e-05/0.1403, allocations: 8.562 kB / 328.6 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.1404, allocations: 47.11 kB / 328.7 MB, free: 12.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=91): time 4.231e-06/0.1404, allocations: 0 / 328.7 MB, free: 12.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=115): time 0.0135/0.1539, allocations: 4.435 MB / 333.1 MB, free: 7.723 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/0.154, allocations: 89.77 kB / 333.2 MB, free: 7.617 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.1553, allocations: 0.6007 MB / 333.8 MB, free: 7.008 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001643/0.1555, allocations: 45.7 kB / 333.8 MB, free: 6.957 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003841/0.1559, allocations: 446.6 kB / 334.3 MB, free: 6.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004541/0.1564, allocations: 394.2 kB / 334.7 MB, free: 6.125 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.068e-05/0.1565, allocations: 28 kB / 334.7 MB, free: 6.098 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.1567, allocations: 350.8 kB / 335 MB, free: 5.746 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.158, allocations: 398.4 kB / 335.4 MB, free: 5.359 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.1594, allocations: 0.5276 MB / 336 MB, free: 4.797 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.1607, allocations: 447.9 kB / 336.4 MB, free: 4.359 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.209e-06/0.1607, allocations: 3.953 kB / 336.4 MB, free: 4.355 MB / 282.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003405/0.1642, allocations: 1.185 MB / 337.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.1642, allocations: 4 kB / 337.6 MB, free: 3.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.1643, allocations: 8.062 kB / 337.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005546/0.1648, allocations: 126.5 kB / 337.7 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.1663, allocations: 259.7 kB / 338 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005374/0.1717, allocations: 4.556 MB / 342.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009711/0.1727, allocations: 59.97 kB / 342.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.1729, allocations: 44.05 kB / 342.6 MB, free: 13.69 MB / 298.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 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.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 initialization (128): * Single equations (assignments): 125 * 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.0006528/0.1735, allocations: 277.5 kB / 342.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.1738, allocations: 90.88 kB / 343 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002291/0.1761, allocations: 0.7879 MB / 343.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.1761, allocations: 12 kB / 343.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.1762, allocations: 3.953 kB / 343.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/0.1762, allocations: 7.984 kB / 343.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006455/0.1827, allocations: 2.702 MB / 346.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.1827, allocations: 0 / 346.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.184, allocations: 219.9 kB / 346.7 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006466/0.1847, allocations: 151.3 kB / 346.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.1848, allocations: 27.98 kB / 346.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00621/0.191, allocations: 5.6 MB / 352.5 MB, free: 3.152 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.205e-06/0.1911, allocations: 4.031 kB / 352.5 MB, free: 3.148 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004675/0.1958, allocations: 1.795 MB / 354.3 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003441/0.1962, allocations: 164.1 kB / 354.5 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/0.1963, allocations: 35.88 kB / 354.5 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007699/0.1971, allocations: 59.91 kB / 354.5 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.1973, allocations: 76.45 kB / 354.6 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-05/0.1975, allocations: 31.98 kB / 354.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00082/0.1983, allocations: 443.1 kB / 355.1 MB, free: 0.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.76e-07/0.1983, allocations: 0 / 355.1 MB, free: 0.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001234/0.1995, allocations: 252 kB / 355.3 MB, free: 260 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.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 (104): * Single equations (assignments): 100 * 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%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002409/0.1998, allocations: 142 kB / 355.5 MB, free: 108 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003483/0.2033, allocations: 1.38 MB / 356.8 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.162e-06/0.2033, allocations: 8.562 kB / 356.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002167/0.2055, allocations: 1.017 MB / 357.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.2067, allocations: 152.3 kB / 358 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005445/0.2121, allocations: 2.676 MB / 360.7 MB, free: 10.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009017/0.2131, allocations: 1.044 MB / 361.7 MB, free: 9.676 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004755/0.2136, allocations: 91.39 kB / 361.8 MB, free: 9.586 MB / 314.7 MB Notification: Performance of SimCode: time 1.853e-06/0.2136, allocations: 3.938 kB / 361.8 MB, free: 9.582 MB / 314.7 MB Notification: Performance of Templates: time 0.2391/0.4527, allocations: 27.47 MB / 389.3 MB, free: 52.73 MB / 314.7 MB