Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadModel(Modelica): time 0.9787/0.9787, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002577, allocations: 7.984 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04411/0.04439, allocations: 25.17 MB / 183.5 MB, free: 5.969 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.182/0.2264, allocations: 42.32 MB / 225.8 MB, free: 3.77 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.2267, allocations: 70.69 kB / 225.9 MB, free: 3.762 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1365/0.3632, allocations: 34.97 MB / 260.9 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.459e-06/0.3632, allocations: 0 / 260.9 MB, free: 5.227 MB / 202.7 MB Notification: Performance of Transformations before backend: time 5.563e-05/0.3633, allocations: 23.98 kB / 260.9 MB, free: 5.203 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.00297/0.3663, allocations: 1.217 MB / 262.1 MB, free: 3.934 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3663, allocations: 12.03 kB / 262.1 MB, free: 3.922 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002839/0.3666, allocations: 114.6 kB / 262.2 MB, free: 3.809 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.3679, allocations: 0.5763 MB / 262.8 MB, free: 3.191 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.3681, allocations: 81.92 kB / 262.9 MB, free: 3.109 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.3683, allocations: 103.8 kB / 263 MB, free: 3.008 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002693/0.371, allocations: 1.005 MB / 264 MB, free: 1.996 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.596e-05/0.3711, allocations: 4 kB / 264 MB, free: 1.992 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.3713, allocations: 43.94 kB / 264 MB, free: 1.949 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.826e-05/0.3713, allocations: 20 kB / 264.1 MB, free: 1.93 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002855/0.3742, allocations: 0.9186 MB / 265 MB, free: 1.004 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007925/0.3821, allocations: 3.502 MB / 268.5 MB, free: 13.35 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/0.3843, allocations: 0.8205 MB / 269.3 MB, free: 12.5 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.802e-05/0.3844, allocations: 16.48 kB / 269.3 MB, free: 12.48 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.3845, allocations: 43.12 kB / 269.4 MB, free: 12.43 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 4.389e-06/0.3845, allocations: 0 / 269.4 MB, free: 12.43 MB / 218.7 MB Notification: Performance of matching and sorting (n=121): time 0.01428/0.3988, allocations: 4.661 MB / 274 MB, free: 7.562 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.3989, allocations: 94.2 kB / 274.1 MB, free: 7.453 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.4, allocations: 0.5334 MB / 274.6 MB, free: 6.91 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.4002, allocations: 41.7 kB / 274.7 MB, free: 6.863 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/0.4005, allocations: 450.6 kB / 275.1 MB, free: 6.418 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004605/0.401, allocations: 409.9 kB / 275.5 MB, free: 6.012 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.315e-05/0.4011, allocations: 20 kB / 275.5 MB, free: 5.992 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.4013, allocations: 354.8 kB / 275.9 MB, free: 5.637 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.4026, allocations: 422.4 kB / 276.3 MB, free: 5.227 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.4041, allocations: 0.5436 MB / 276.9 MB, free: 4.648 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.4055, allocations: 475.7 kB / 277.3 MB, free: 4.191 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.587e-06/0.4055, allocations: 0 / 277.3 MB, free: 4.191 MB / 218.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003564/0.4091, allocations: 1.236 MB / 278.6 MB, free: 2.934 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.4091, allocations: 8 kB / 278.6 MB, free: 2.926 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.4092, allocations: 0 / 278.6 MB, free: 2.926 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005503/0.4097, allocations: 134.5 kB / 278.7 MB, free: 2.785 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.4112, allocations: 271.6 kB / 279 MB, free: 2.52 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005385/0.4166, allocations: 4.556 MB / 283.5 MB, free: 13.56 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.4178, allocations: 75.95 kB / 283.6 MB, free: 13.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.4179, allocations: 43.92 kB / 283.6 MB, free: 13.44 MB / 234.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 (134): * Single equations (assignments): 131 * 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.000717/0.4187, allocations: 280.5 kB / 283.9 MB, free: 13.16 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.4189, allocations: 94.86 kB / 284 MB, free: 13.07 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00233/0.4213, allocations: 0.812 MB / 284.8 MB, free: 12.24 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.4213, allocations: 12 kB / 284.8 MB, free: 12.23 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.4213, allocations: 192 / 284.8 MB, free: 12.23 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.16e-05/0.4214, allocations: 11.97 kB / 284.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006871/0.4283, allocations: 2.956 MB / 287.8 MB, free: 9.133 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.864e-06/0.4283, allocations: 0 / 287.8 MB, free: 9.133 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.4296, allocations: 223.7 kB / 288 MB, free: 8.914 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006508/0.4303, allocations: 163.5 kB / 288.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.4304, allocations: 27.98 kB / 288.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006193/0.4366, allocations: 5.612 MB / 293.8 MB, free: 2.578 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.05e-06/0.4367, allocations: 4.031 kB / 293.8 MB, free: 2.574 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/0.4417, allocations: 2.059 MB / 295.9 MB, free: 392 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003661/0.4421, allocations: 164 kB / 296 MB, free: 208 kB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/0.4423, allocations: 27.98 kB / 296.1 MB, free: 180 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008787/0.4432, allocations: 79.91 kB / 296.1 MB, free: 100 kB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.4434, allocations: 92.38 kB / 296.2 MB, free: 8 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.1244/0.5679, allocations: 30.73 kB / 296.3 MB, free: 60 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009667/0.5689, allocations: 427.1 kB / 296.7 MB, free: 59.91 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.97e-07/0.5689, allocations: 0 / 296.7 MB, free: 59.91 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001492/0.5704, allocations: 268.4 kB / 296.9 MB, free: 59.91 MB / 234.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 (110): * Single equations (assignments): 106 * 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.0002773/0.5707, allocations: 149.5 kB / 297.1 MB, free: 59.82 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003236/0.574, allocations: 1.425 MB / 298.5 MB, free: 59.49 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.29e-06/0.574, allocations: 3.625 kB / 298.5 MB, free: 59.49 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002035/0.5761, allocations: 1.078 MB / 299.6 MB, free: 59.05 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.5773, allocations: 175.5 kB / 299.8 MB, free: 59.04 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/0.5824, allocations: 2.772 MB / 302.5 MB, free: 57.88 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006294/0.5831, allocations: 1.043 MB / 303.6 MB, free: 57.16 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004959/0.5836, allocations: 87.45 kB / 303.7 MB, free: 57.16 MB / 234.7 MB Notification: Performance of SimCode: time 1.686e-06/0.5836, allocations: 1.156 kB / 303.7 MB, free: 57.16 MB / 234.7 MB Notification: Performance of Templates: time 0.03184/0.6154, allocations: 27.67 MB / 331.3 MB, free: 50.47 MB / 234.7 MB