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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.64/1.64, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003545, allocations: 12 kB / 233.2 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06858/0.06896, allocations: 38.78 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007765/0.07677, allocations: 5.014 MB / 277 MB, free: 7.152 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003963/0.08078, allocations: 1.789 MB / 278.7 MB, free: 5.359 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008081/0.08163, allocations: 19.94 kB / 278.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004688/0.08211, allocations: 166.8 kB / 278.9 MB, free: 5.176 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.08338, allocations: 414.8 kB / 279.3 MB, free: 4.77 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007444/0.08414, allocations: 203.7 kB / 279.5 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001546/0.08571, allocations: 0.9049 MB / 280.4 MB, free: 3.66 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007135/0.08644, allocations: 369.6 kB / 280.8 MB, free: 3.289 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006926/0.08715, allocations: 422.4 kB / 281.2 MB, free: 2.875 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006989/0.08786, allocations: 497.8 kB / 281.7 MB, free: 2.387 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.08803, allocations: 60 kB / 281.8 MB, free: 2.328 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.08823, allocations: 60 kB / 281.8 MB, free: 2.27 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.08847, allocations: 195.2 kB / 282 MB, free: 2.078 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.08877, allocations: 241.1 kB / 282.2 MB, free: 1.836 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.09058, allocations: 1.441 MB / 283.7 MB, free: 400 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.438e-06/0.0906, allocations: 4 kB / 283.7 MB, free: 396 kB / 234.7 MB Notification: Performance of FrontEnd: time 2.362e-06/0.09061, allocations: 0 / 283.7 MB, free: 396 kB / 234.7 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.09064, allocations: 0 / 283.7 MB, free: 396 kB / 234.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.003321/0.09398, allocations: 1.29 MB / 285 MB, free: 15.04 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.09404, allocations: 8.031 kB / 285 MB, free: 15.04 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003401/0.09439, allocations: 126.4 kB / 285.1 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.09593, allocations: 0.6446 MB / 285.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.09612, allocations: 78 kB / 285.8 MB, free: 14.15 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/0.09635, allocations: 99.89 kB / 285.9 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002649/0.09901, allocations: 1.013 MB / 286.9 MB, free: 13.03 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.62e-05/0.09908, allocations: 7.984 kB / 286.9 MB, free: 13.02 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.09922, allocations: 40 kB / 287 MB, free: 12.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.214e-05/0.09926, allocations: 24 kB / 287 MB, free: 12.96 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002819/0.1021, allocations: 0.9069 MB / 287.9 MB, free: 12.05 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007307/0.1094, allocations: 3.344 MB / 291.3 MB, free: 8.578 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002122/0.1116, allocations: 0.8246 MB / 292.1 MB, free: 7.738 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.427e-05/0.1117, allocations: 29.09 kB / 292.1 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.1117, allocations: 39.12 kB / 292.1 MB, free: 7.664 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 6.792e-06/0.1118, allocations: 0 / 292.1 MB, free: 7.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=115): time 0.01336/0.1251, allocations: 4.438 MB / 296.6 MB, free: 3.016 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/0.1252, allocations: 93.77 kB / 296.7 MB, free: 2.906 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.1264, allocations: 0.6007 MB / 297.3 MB, free: 2.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.1266, allocations: 41.7 kB / 297.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003795/0.1269, allocations: 450.6 kB / 297.8 MB, free: 1.805 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.1274, allocations: 390.2 kB / 298.1 MB, free: 1.418 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-05/0.1275, allocations: 20 kB / 298.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.1277, allocations: 358.8 kB / 298.5 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.129, allocations: 398.4 kB / 298.9 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.1304, allocations: 0.5353 MB / 299.4 MB, free: 80 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1755/0.3059, allocations: 439.2 kB / 299.9 MB, free: 29.63 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-06/0.306, allocations: 1.219 kB / 299.9 MB, free: 29.63 MB / 250.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003654/0.3096, allocations: 1.193 MB / 301.1 MB, free: 29.54 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.3097, allocations: 6.469 kB / 301.1 MB, free: 29.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.3097, allocations: 2.344 kB / 301.1 MB, free: 29.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.3103, allocations: 127.2 kB / 301.2 MB, free: 29.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.3117, allocations: 259.5 kB / 301.4 MB, free: 29.51 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003946/0.3157, allocations: 4.557 MB / 306 MB, free: 25.23 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009809/0.3167, allocations: 68.64 kB / 306.1 MB, free: 25.21 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.3169, allocations: 39.03 kB / 306.1 MB, free: 25.2 MB / 250.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.0005727/0.3174, allocations: 279 kB / 306.4 MB, free: 24.98 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.3177, allocations: 87.72 kB / 306.5 MB, free: 24.98 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/0.3198, allocations: 0.785 MB / 307.2 MB, free: 24.62 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.3199, allocations: 12.69 kB / 307.3 MB, free: 24.62 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/0.3199, allocations: 3.719 kB / 307.3 MB, free: 24.62 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.3199, allocations: 9.125 kB / 307.3 MB, free: 24.62 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005796/0.3257, allocations: 2.693 MB / 310 MB, free: 23.2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.3258, allocations: 0.9688 kB / 310 MB, free: 23.2 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.3271, allocations: 219.9 kB / 310.2 MB, free: 23.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006489/0.3278, allocations: 153.6 kB / 310.3 MB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.3279, allocations: 27.48 kB / 310.4 MB, free: 23.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004321/0.3322, allocations: 5.614 MB / 316 MB, free: 17.62 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.332e-06/0.3323, allocations: 0 / 316 MB, free: 17.62 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004519/0.3368, allocations: 1.797 MB / 317.8 MB, free: 16.78 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.3372, allocations: 166.5 kB / 317.9 MB, free: 16.62 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/0.3374, allocations: 27.38 kB / 318 MB, free: 16.61 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007956/0.3382, allocations: 61.3 kB / 318 MB, free: 16.59 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/0.3385, allocations: 75.2 kB / 318.1 MB, free: 16.58 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.722e-05/0.3386, allocations: 33.14 kB / 318.1 MB, free: 16.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007619/0.3393, allocations: 436.7 kB / 318.6 MB, free: 16.36 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.655e-06/0.3393, allocations: 4 kB / 318.6 MB, free: 16.36 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001274/0.3406, allocations: 259.9 kB / 318.8 MB, free: 16.32 MB / 250.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.0001979/0.3408, allocations: 135.6 kB / 318.9 MB, free: 16.21 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003144/0.344, allocations: 1.376 MB / 320.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.344, allocations: 5.25 kB / 320.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.3459, allocations: 1.02 MB / 321.3 MB, free: 14.87 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.347, allocations: 153.6 kB / 321.5 MB, free: 14.81 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/0.3518, allocations: 2.677 MB / 324.2 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006303/0.3525, allocations: 1.045 MB / 325.2 MB, free: 12.36 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004617/0.3529, allocations: 86.94 kB / 325.3 MB, free: 12.34 MB / 250.7 MB Notification: Performance of SimCode: time 1.752e-06/0.353, allocations: 3.938 kB / 325.3 MB, free: 12.33 MB / 250.7 MB Notification: Performance of Templates: time 0.03604/0.389, allocations: 27.4 MB / 352.7 MB, free: 1.719 MB / 266.7 MB