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.558/1.558, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003515, allocations: 4 kB / 233.2 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07236/0.07274, allocations: 38.78 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2992/0.372, allocations: 77.87 MB / 349.9 MB, free: 12.04 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.3722, allocations: 85.2 kB / 350 MB, free: 12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1404/0.5127, allocations: 35.75 MB / 385.7 MB, free: 14.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.503e-06/0.5127, allocations: 4 kB / 385.7 MB, free: 14.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.701e-05/0.5128, allocations: 24 kB / 385.7 MB, free: 14.21 MB / 314.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.004177/0.517, allocations: 1.235 MB / 387 MB, free: 12.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.5171, allocations: 8.031 kB / 387 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003321/0.5174, allocations: 122.6 kB / 387.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.5188, allocations: 0.6018 MB / 387.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.519, allocations: 81.98 kB / 387.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002364/0.5192, allocations: 96 kB / 387.9 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002854/0.5221, allocations: 1.021 MB / 388.9 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.037e-05/0.5222, allocations: 7.906 kB / 388.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001396/0.5223, allocations: 40 kB / 389 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.923e-05/0.5224, allocations: 20 kB / 389 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0029/0.5253, allocations: 0.9499 MB / 389.9 MB, free: 9.973 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007754/0.5331, allocations: 3.553 MB / 393.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.5354, allocations: 0.8862 MB / 394.4 MB, free: 5.359 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.63e-05/0.5355, allocations: 12.56 kB / 394.4 MB, free: 5.348 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/0.5356, allocations: 51.11 kB / 394.4 MB, free: 5.289 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 4.734e-06/0.5356, allocations: 0 / 394.4 MB, free: 5.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.01454/0.5501, allocations: 4.749 MB / 399.2 MB, free: 344 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.471e-05/0.5502, allocations: 90.2 kB / 399.3 MB, free: 232 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.5513, allocations: 0.5374 MB / 399.8 MB, free: 15.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.5515, allocations: 45.7 kB / 399.8 MB, free: 15.63 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/0.5519, allocations: 438.8 kB / 400.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004686/0.5524, allocations: 429.8 kB / 400.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.076e-05/0.5525, allocations: 23.94 kB / 400.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.5527, allocations: 362.8 kB / 401.1 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.554, allocations: 426.4 kB / 401.5 MB, free: 13.97 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.5555, allocations: 0.5553 MB / 402 MB, free: 13.38 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.557, allocations: 483.7 kB / 402.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.526e-06/0.557, allocations: 0 / 402.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003615/0.5606, allocations: 1.267 MB / 403.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.5607, allocations: 8 kB / 403.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.5607, allocations: 4 kB / 403.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005389/0.5612, allocations: 134.5 kB / 403.9 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.5627, allocations: 275.6 kB / 404.2 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005356/0.5681, allocations: 4.56 MB / 408.8 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.5692, allocations: 80.03 kB / 408.8 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.5694, allocations: 43.98 kB / 408.9 MB, free: 6.121 MB / 330.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 (138): * Single equations (assignments): 135 * 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.0007292/0.5701, allocations: 287.3 kB / 409.2 MB, free: 5.832 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/0.5704, allocations: 94.86 kB / 409.2 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002361/0.5728, allocations: 0.8243 MB / 410.1 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.5728, allocations: 12 kB / 410.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/0.5728, allocations: 7.953 kB / 410.1 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/0.5729, allocations: 7.969 kB / 410.1 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007/0.5799, allocations: 3.004 MB / 413.1 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/0.5799, allocations: 4 kB / 413.1 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/0.5812, allocations: 232 kB / 413.3 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006537/0.5819, allocations: 163.3 kB / 413.5 MB, free: 1.336 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.582, allocations: 31.98 kB / 413.5 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006222/0.5882, allocations: 5.608 MB / 419.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.5883, allocations: 12.09 kB / 419.1 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005878/0.5942, allocations: 2.099 MB / 421.2 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004135/0.5946, allocations: 168 kB / 421.4 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.5948, allocations: 31.98 kB / 421.4 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009464/0.5958, allocations: 75.89 kB / 421.5 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.596, allocations: 92.47 kB / 421.6 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.5962, allocations: 39.94 kB / 421.6 MB, free: 8.508 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008694/0.597, allocations: 447 kB / 422.1 MB, free: 8.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.58e-07/0.5971, allocations: 4 kB / 422.1 MB, free: 8.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001359/0.5984, allocations: 271.9 kB / 422.3 MB, free: 7.801 MB / 346.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 (114): * Single equations (assignments): 110 * 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.0003159/0.5988, allocations: 151.2 kB / 422.5 MB, free: 7.645 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003633/0.6024, allocations: 1.458 MB / 424 MB, free: 6.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.248e-06/0.6024, allocations: 4.062 kB / 424 MB, free: 6.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002355/0.6048, allocations: 1.092 MB / 425.1 MB, free: 5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.606, allocations: 163.8 kB / 425.2 MB, free: 4.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005725/0.6118, allocations: 2.785 MB / 428 MB, free: 1.992 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009536/0.6127, allocations: 1.048 MB / 429 MB, free: 0.918 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005049/0.6133, allocations: 91.39 kB / 429.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of SimCode: time 1.586e-06/0.6133, allocations: 0 / 429.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of Templates: time 0.2176/0.8309, allocations: 28.17 MB / 457.3 MB, free: 92.28 MB / 346.7 MB