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.ForceCurrentBehaviour.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.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadModel(Modelica): time 1.668/1.668, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.948e-05/2.97e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2286, allocations: 38.77 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.3476, allocations: 79.2 MB / 346.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.348, allocations: 87.94 kB / 346.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2617/0.6097, allocations: 21.35 MB / 368.2 MB, free: 76.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.3e-06/0.6097, allocations: 4 kB / 368.2 MB, free: 76.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.918e-05/0.6098, allocations: 27.25 kB / 368.3 MB, free: 76.23 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.00266/0.6125, allocations: 1.233 MB / 369.5 MB, free: 75.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.6125, allocations: 11.34 kB / 369.5 MB, free: 75.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003045/0.6129, allocations: 125.1 kB / 369.6 MB, free: 75.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.6141, allocations: 0.6523 MB / 370.3 MB, free: 74.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.6143, allocations: 76.56 kB / 370.4 MB, free: 74.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.6145, allocations: 102.6 kB / 370.5 MB, free: 74.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.6166, allocations: 0.9249 MB / 371.4 MB, free: 74.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.049e-05/0.6167, allocations: 3.906 kB / 371.4 MB, free: 74.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.6168, allocations: 40 kB / 371.4 MB, free: 74.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.6168, allocations: 24 kB / 371.4 MB, free: 74.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/0.6186, allocations: 0.7729 MB / 372.2 MB, free: 73.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007304/0.626, allocations: 3.846 MB / 376.1 MB, free: 69.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002332/0.6283, allocations: 0.8314 MB / 376.9 MB, free: 68.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008301/0.6292, allocations: 384.8 kB / 377.3 MB, free: 68.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.769e-05/0.6293, allocations: 12.47 kB / 377.3 MB, free: 68.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.6293, allocations: 35.12 kB / 377.3 MB, free: 68.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 5.112e-06/0.6293, allocations: 4 kB / 377.3 MB, free: 68.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=86): time 0.004408/0.6337, allocations: 1.647 MB / 379 MB, free: 66.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.6338, allocations: 85.55 kB / 379 MB, free: 66.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00136/0.6352, allocations: 0.805 MB / 379.9 MB, free: 65.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.857e-05/0.6353, allocations: 41.7 kB / 379.9 MB, free: 65.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.6356, allocations: 0.5054 MB / 380.4 MB, free: 65.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.6358, allocations: 295.6 kB / 380.7 MB, free: 64.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-05/0.6359, allocations: 16 kB / 380.7 MB, free: 64.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.664e-05/0.636, allocations: 350.8 kB / 381 MB, free: 64.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007128/0.6367, allocations: 302 kB / 381.3 MB, free: 64.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007745/0.6375, allocations: 457.9 kB / 381.8 MB, free: 63.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007736/0.6383, allocations: 372.8 kB / 382.2 MB, free: 63.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.368e-06/0.6383, allocations: 0 / 382.2 MB, free: 63.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001906/0.6403, allocations: 0.9022 MB / 383.1 MB, free: 62.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.6403, allocations: 33.7 kB / 383.1 MB, free: 62.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.6404, allocations: 4 kB / 383.1 MB, free: 62.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/0.6404, allocations: 12 kB / 383.1 MB, free: 62.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.6422, allocations: 347.6 kB / 383.4 MB, free: 62.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.194e-05/0.6423, allocations: 11.94 kB / 383.5 MB, free: 62.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.6435, allocations: 119.8 kB / 383.6 MB, free: 61.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.955e-05/0.6436, allocations: 35.98 kB / 383.6 MB, free: 61.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002059/0.6439, allocations: 165.5 kB / 383.8 MB, free: 61.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.6441, allocations: 102.7 kB / 383.9 MB, free: 61.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008734/0.645, allocations: 370.1 kB / 384.2 MB, free: 61.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.645, allocations: 8 kB / 384.2 MB, free: 61.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.38e-06/0.645, allocations: 3.938 kB / 384.2 MB, free: 61.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.6451, allocations: 3.984 kB / 384.2 MB, free: 61.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005365/0.6504, allocations: 2.888 MB / 387.1 MB, free: 58.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/0.6505, allocations: 16 kB / 387.1 MB, free: 58.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/0.6518, allocations: 272.3 kB / 387.4 MB, free: 57.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.321e-05/0.6518, allocations: 16 kB / 387.4 MB, free: 57.85 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.957e-05/0.6519, allocations: 24 kB / 387.5 MB, free: 57.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.866e-05/0.6519, allocations: 27.86 kB / 387.5 MB, free: 57.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/0.652, allocations: 15.94 kB / 387.5 MB, free: 57.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.6537, allocations: 1.69 MB / 389.2 MB, free: 55.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/0.6541, allocations: 199.9 kB / 389.4 MB, free: 55.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.6543, allocations: 28 kB / 389.4 MB, free: 55.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000998/0.6553, allocations: 79.94 kB / 389.5 MB, free: 55.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.6555, allocations: 95.62 kB / 389.6 MB, free: 55.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.569e-05/0.6556, allocations: 43.98 kB / 389.6 MB, free: 55.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001004/0.6566, allocations: 0.6124 MB / 390.2 MB, free: 54.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.39e-07/0.6566, allocations: 0 / 390.2 MB, free: 54.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001229/0.6578, allocations: 232 kB / 390.5 MB, free: 54.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006559/0.6585, allocations: 261 kB / 390.7 MB, free: 54.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.6601, allocations: 0.777 MB / 391.5 MB, free: 53.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.6601, allocations: 0 / 391.5 MB, free: 53.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009165/0.6611, allocations: 405.5 kB / 391.9 MB, free: 52.97 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/0.6625, allocations: 189.1 kB / 392.1 MB, free: 52.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003403/0.6659, allocations: 1.606 MB / 393.7 MB, free: 51.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006125/0.6666, allocations: 1.049 MB / 394.7 MB, free: 49.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004773/0.6671, allocations: 79.41 kB / 394.8 MB, free: 49.86 MB / 298.7 MB Notification: Performance of SimCode: time 1.786e-06/0.6671, allocations: 0 / 394.8 MB, free: 49.86 MB / 298.7 MB Notification: Performance of Templates: time 0.02047/0.6876, allocations: 12.98 MB / 407.8 MB, free: 36.85 MB / 298.7 MB