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.938/0.938, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002628, allocations: 4 kB / 158.3 MB, free: 15.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04494/0.04523, allocations: 25.17 MB / 183.4 MB, free: 6.004 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006882/0.05216, allocations: 4.755 MB / 188.2 MB, free: 1.234 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003624/0.05583, allocations: 1.684 MB / 189.9 MB, free: 15.55 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000669/0.05654, allocations: 12 kB / 189.9 MB, free: 15.54 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000453/0.05702, allocations: 158.8 kB / 190 MB, free: 15.38 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.05818, allocations: 406.8 kB / 190.4 MB, free: 14.98 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007692/0.05896, allocations: 207.6 kB / 190.6 MB, free: 14.78 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.06061, allocations: 0.8932 MB / 191.5 MB, free: 13.88 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007184/0.06135, allocations: 353.6 kB / 191.9 MB, free: 13.52 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000733/0.0621, allocations: 418.5 kB / 192.3 MB, free: 13.11 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007112/0.06283, allocations: 485.9 kB / 192.8 MB, free: 12.63 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.063, allocations: 60 kB / 192.8 MB, free: 12.57 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.0632, allocations: 60 kB / 192.9 MB, free: 12.52 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.06344, allocations: 195.2 kB / 193.1 MB, free: 12.32 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002855/0.06374, allocations: 237.1 kB / 193.3 MB, free: 12.09 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001771/0.06552, allocations: 1.41 MB / 194.7 MB, free: 10.67 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.511e-06/0.06554, allocations: 0 / 194.7 MB, free: 10.67 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.611e-06/0.06556, allocations: 0 / 194.7 MB, free: 10.67 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.06559, allocations: 0 / 194.7 MB, free: 10.67 MB / 170.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.003147/0.06875, allocations: 1.282 MB / 196 MB, free: 9.34 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.0688, allocations: 8.031 kB / 196 MB, free: 9.332 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002668/0.06908, allocations: 118.6 kB / 196.1 MB, free: 9.215 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.07055, allocations: 0.6191 MB / 196.7 MB, free: 8.551 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.07074, allocations: 85.94 kB / 196.8 MB, free: 8.469 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/0.07095, allocations: 92 kB / 196.9 MB, free: 8.379 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002605/0.07357, allocations: 0.9974 MB / 197.9 MB, free: 7.367 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.823e-05/0.07364, allocations: 7.906 kB / 197.9 MB, free: 7.359 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001292/0.07378, allocations: 36 kB / 197.9 MB, free: 7.324 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/0.07382, allocations: 28 kB / 198 MB, free: 7.297 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002739/0.07657, allocations: 0.8952 MB / 198.9 MB, free: 6.402 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007321/0.08392, allocations: 3.282 MB / 202.1 MB, free: 2.996 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/0.086, allocations: 0.7796 MB / 202.9 MB, free: 2.203 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.16e-05/0.08609, allocations: 8.719 kB / 202.9 MB, free: 2.195 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.185e-05/0.08616, allocations: 47.28 kB / 203 MB, free: 2.141 MB / 170.7 MB Notification: Performance of pre-optimization done (n=87): time 4.521e-06/0.08617, allocations: 0 / 203 MB, free: 2.141 MB / 170.7 MB Notification: Performance of matching and sorting (n=111): time 0.1355/0.2217, allocations: 4.326 MB / 207.3 MB, free: 22.26 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.2218, allocations: 87.66 kB / 207.4 MB, free: 22.17 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/0.2235, allocations: 0.5952 MB / 208 MB, free: 21.89 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.2237, allocations: 46.89 kB / 208 MB, free: 21.85 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003521/0.2241, allocations: 445.2 kB / 208.5 MB, free: 21.47 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004997/0.2246, allocations: 376.5 kB / 208.8 MB, free: 21.18 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.2248, allocations: 20.91 kB / 208.9 MB, free: 21.16 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2249, allocations: 356.2 kB / 209.2 MB, free: 20.83 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002176/0.2271, allocations: 392.9 kB / 209.6 MB, free: 20.7 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002371/0.2296, allocations: 0.5125 MB / 210.1 MB, free: 20.45 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00232/0.2319, allocations: 436 kB / 210.5 MB, free: 20.27 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.232, allocations: 1.469 kB / 210.5 MB, free: 20.27 MB / 170.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.006003/0.238, allocations: 1.16 MB / 211.7 MB, free: 19.8 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.2381, allocations: 8.219 kB / 211.7 MB, free: 19.8 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.2382, allocations: 4.922 kB / 211.7 MB, free: 19.8 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000881/0.2391, allocations: 127.6 kB / 211.8 MB, free: 19.75 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/0.2417, allocations: 255.8 kB / 212.1 MB, free: 19.73 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006397/0.2481, allocations: 4.55 MB / 216.6 MB, free: 15.34 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.2499, allocations: 67.69 kB / 216.7 MB, free: 15.32 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/0.2501, allocations: 38.48 kB / 216.7 MB, free: 15.31 MB / 170.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 (124): * Single equations (assignments): 121 * 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.0009045/0.251, allocations: 269.6 kB / 217 MB, free: 15.09 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003532/0.2514, allocations: 87.09 kB / 217.1 MB, free: 15.05 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003585/0.255, allocations: 0.7691 MB / 217.8 MB, free: 14.69 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/0.2551, allocations: 15.64 kB / 217.9 MB, free: 14.69 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.186e-05/0.2551, allocations: 4.828 kB / 217.9 MB, free: 14.69 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.828e-05/0.2552, allocations: 5.625 kB / 217.9 MB, free: 14.69 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009373/0.2646, allocations: 2.643 MB / 220.5 MB, free: 13.26 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.2646, allocations: 4 kB / 220.5 MB, free: 13.25 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002204/0.2669, allocations: 205.6 kB / 220.7 MB, free: 13.24 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001062/0.268, allocations: 155.5 kB / 220.9 MB, free: 13.16 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000158/0.2682, allocations: 26.86 kB / 220.9 MB, free: 13.14 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006851/0.275, allocations: 5.603 MB / 226.5 MB, free: 7.496 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7e-06/0.2751, allocations: 1.375 kB / 226.5 MB, free: 7.496 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005277/0.2804, allocations: 1.756 MB / 228.3 MB, free: 6.484 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/0.2807, allocations: 168.1 kB / 228.4 MB, free: 6.324 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.2809, allocations: 19.78 kB / 228.4 MB, free: 6.309 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007991/0.2817, allocations: 62.09 kB / 228.5 MB, free: 6.281 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.2819, allocations: 81.17 kB / 228.6 MB, free: 6.238 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.332e-05/0.282, allocations: 30.02 kB / 228.6 MB, free: 6.227 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0006479/0.2827, allocations: 425.3 kB / 229 MB, free: 5.98 MB / 170.7 MB Notification: Performance of sort global known variables: time 8.4e-07/0.2827, allocations: 0 / 229 MB, free: 5.98 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001138/0.2838, allocations: 245.5 kB / 229.3 MB, free: 5.949 MB / 170.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 (100): * Single equations (assignments): 96 * 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.000183/0.284, allocations: 137.5 kB / 229.4 MB, free: 5.828 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002791/0.2868, allocations: 1.347 MB / 230.7 MB, free: 4.508 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.367e-06/0.2869, allocations: 64 / 230.7 MB, free: 4.508 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001678/0.2885, allocations: 1.013 MB / 231.8 MB, free: 3.441 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.2897, allocations: 171.8 kB / 231.9 MB, free: 3.277 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.294, allocations: 2.661 MB / 234.6 MB, free: 0.582 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007297/0.2948, allocations: 1.031 MB / 235.6 MB, free: 15.52 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004475/0.2953, allocations: 79.41 kB / 235.7 MB, free: 15.45 MB / 186.7 MB Notification: Performance of SimCode: time 1.548e-06/0.2953, allocations: 0 / 235.7 MB, free: 15.45 MB / 186.7 MB Notification: Performance of Templates: time 0.03883/0.3341, allocations: 26.88 MB / 262.6 MB, free: 4.531 MB / 202.7 MB