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.564/1.564, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.045e-05, allocations: 0 / 228.8 MB, free: 15.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2008, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1139/0.3148, allocations: 77.79 MB / 345.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.3151, allocations: 83.94 kB / 345.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3172/0.6323, allocations: 35.79 MB / 381.3 MB, free: 64.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.6324, allocations: 0 / 381.3 MB, free: 64.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.514e-05/0.6324, allocations: 20 kB / 381.3 MB, free: 64.96 MB / 298.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.00246/0.6349, allocations: 1.142 MB / 382.4 MB, free: 63.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.635, allocations: 12.02 kB / 382.4 MB, free: 63.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003059/0.6353, allocations: 122.5 kB / 382.5 MB, free: 63.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.6365, allocations: 0.594 MB / 383.1 MB, free: 63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.6366, allocations: 82 kB / 383.2 MB, free: 62.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00019/0.6368, allocations: 99.91 kB / 383.3 MB, free: 62.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002025/0.6389, allocations: 0.9308 MB / 384.3 MB, free: 61.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.813e-05/0.639, allocations: 8 kB / 384.3 MB, free: 61.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.6391, allocations: 36 kB / 384.3 MB, free: 61.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/0.6391, allocations: 24 kB / 384.3 MB, free: 61.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.641, allocations: 0.7736 MB / 385.1 MB, free: 61.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006703/0.6477, allocations: 3.561 MB / 388.7 MB, free: 57.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.6492, allocations: 0.8019 MB / 389.5 MB, free: 56.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008953/0.6501, allocations: 456.4 kB / 389.9 MB, free: 56.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.408e-05/0.6502, allocations: 16.55 kB / 389.9 MB, free: 56.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.6503, allocations: 58.77 kB / 390 MB, free: 55.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=95): time 4.455e-06/0.6503, allocations: 0 / 390 MB, free: 55.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=131): time 0.01093/0.6612, allocations: 4.254 MB / 394.2 MB, free: 51.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.6613, allocations: 94.28 kB / 394.3 MB, free: 51.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008494/0.6622, allocations: 0.5283 MB / 394.8 MB, free: 50.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.6623, allocations: 45.7 kB / 394.9 MB, free: 50.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.6625, allocations: 439 kB / 395.3 MB, free: 50.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000328/0.6629, allocations: 445.5 kB / 395.8 MB, free: 49.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.298e-05/0.663, allocations: 24 kB / 395.8 MB, free: 49.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.722e-05/0.6631, allocations: 358.8 kB / 396.1 MB, free: 49.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008531/0.6639, allocations: 370.6 kB / 396.5 MB, free: 49.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009192/0.6649, allocations: 0.5044 MB / 397 MB, free: 48.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009104/0.6658, allocations: 423.7 kB / 397.4 MB, free: 48.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.6658, allocations: 0 / 397.4 MB, free: 48.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002491/0.6683, allocations: 1.176 MB / 398.6 MB, free: 47.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.6684, allocations: 8 kB / 398.6 MB, free: 47.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.6684, allocations: 4 kB / 398.6 MB, free: 47.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005496/0.6689, allocations: 158.5 kB / 398.8 MB, free: 46.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/0.6705, allocations: 279.6 kB / 399 MB, free: 46.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003896/0.6744, allocations: 4.77 MB / 403.8 MB, free: 41.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.6756, allocations: 87.94 kB / 403.9 MB, free: 41.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.6758, allocations: 43.92 kB / 403.9 MB, free: 41.32 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 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * 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%) 6,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002577/0.676, allocations: 176.2 kB / 404.1 MB, free: 41.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.6763, allocations: 94.95 kB / 404.2 MB, free: 41.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.678, allocations: 0.7989 MB / 405 MB, free: 40.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.678, allocations: 12 kB / 405 MB, free: 40.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.6781, allocations: 4 kB / 405 MB, free: 40.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.6781, allocations: 7.969 kB / 405 MB, free: 40.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005301/0.6834, allocations: 2.973 MB / 408 MB, free: 37.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.968e-05/0.6835, allocations: 4.312 kB / 408 MB, free: 37.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/0.6848, allocations: 251.7 kB / 408.2 MB, free: 36.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004993/0.6854, allocations: 130.5 kB / 408.4 MB, free: 36.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.6855, allocations: 27.98 kB / 408.4 MB, free: 36.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003259/0.6888, allocations: 4.393 MB / 412.8 MB, free: 31.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.6888, allocations: 7.938 kB / 412.8 MB, free: 31.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003421/0.6922, allocations: 1.944 MB / 414.7 MB, free: 29.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003368/0.6926, allocations: 168 kB / 414.9 MB, free: 29.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.6928, allocations: 31.98 kB / 414.9 MB, free: 29.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009218/0.6937, allocations: 83.91 kB / 415 MB, free: 29.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.694, allocations: 88.59 kB / 415.1 MB, free: 29.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.211e-05/0.6941, allocations: 35.98 kB / 415.1 MB, free: 29.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006788/0.6948, allocations: 439.2 kB / 415.6 MB, free: 28.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.28e-07/0.6948, allocations: 3.938 kB / 415.6 MB, free: 28.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001397/0.6962, allocations: 276 kB / 415.8 MB, free: 28.71 MB / 298.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.g_ma.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002678/0.6965, allocations: 162.6 kB / 416 MB, free: 28.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002507/0.699, allocations: 1.361 MB / 417.4 MB, free: 27.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.067e-06/0.699, allocations: 4 kB / 417.4 MB, free: 27.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.7005, allocations: 0.9063 MB / 418.3 MB, free: 26.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.7016, allocations: 167.8 kB / 418.4 MB, free: 26.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003736/0.7054, allocations: 1.825 MB / 420.3 MB, free: 24.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005711/0.706, allocations: 1.06 MB / 421.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/0.7065, allocations: 95.39 kB / 421.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of SimCode: time 1.777e-06/0.7065, allocations: 0 / 421.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of Templates: time 0.03103/0.7375, allocations: 26.52 MB / 447.9 MB, free: 12.42 MB / 314.7 MB