Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9675/0.9675, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002531/0.0002532, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05168/0.05195, allocations: 25.18 MB / 183.6 MB, free: 5.871 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2123/0.2643, allocations: 42.31 MB / 225.9 MB, free: 3.801 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.2646, allocations: 72.34 kB / 226 MB, free: 3.793 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1443/0.4089, allocations: 34.97 MB / 261 MB, free: 5.148 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4089, allocations: 4 kB / 261 MB, free: 5.145 MB / 202.7 MB Notification: Performance of Transformations before backend: time 5.675e-05/0.409, allocations: 20 kB / 261 MB, free: 5.125 MB / 202.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.003701/0.4127, allocations: 1.225 MB / 262.2 MB, free: 3.848 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.4128, allocations: 12.03 kB / 262.2 MB, free: 3.836 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002637/0.4131, allocations: 139.9 kB / 262.4 MB, free: 3.691 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.4133, allocations: 118.6 kB / 262.5 MB, free: 3.574 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.4146, allocations: 0.5763 MB / 263 MB, free: 2.957 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/0.4148, allocations: 89.92 kB / 263.1 MB, free: 2.867 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/0.4151, allocations: 95.91 kB / 263.2 MB, free: 2.773 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.4181, allocations: 1.005 MB / 264.2 MB, free: 1.762 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.292e-05/0.4182, allocations: 0 / 264.2 MB, free: 1.762 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.4183, allocations: 36 kB / 264.3 MB, free: 1.727 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.4183, allocations: 27.94 kB / 264.3 MB, free: 1.699 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00334/0.4217, allocations: 0.9303 MB / 265.2 MB, free: 0.7617 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007954/0.4297, allocations: 3.499 MB / 268.7 MB, free: 13.11 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.4321, allocations: 0.8243 MB / 269.6 MB, free: 12.25 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.137e-05/0.4322, allocations: 12.56 kB / 269.6 MB, free: 12.24 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.4323, allocations: 47.12 kB / 269.6 MB, free: 12.19 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 3.927e-06/0.4323, allocations: 0 / 269.6 MB, free: 12.19 MB / 218.7 MB Notification: Performance of matching and sorting (n=121): time 0.01654/0.4488, allocations: 4.653 MB / 274.3 MB, free: 7.328 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.4489, allocations: 90.2 kB / 274.3 MB, free: 7.223 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.4501, allocations: 0.5295 MB / 274.9 MB, free: 6.684 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.4502, allocations: 53.64 kB / 274.9 MB, free: 6.625 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.4505, allocations: 434.7 kB / 275.4 MB, free: 6.195 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/0.451, allocations: 417.9 kB / 275.8 MB, free: 5.781 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.547e-05/0.4511, allocations: 20 kB / 275.8 MB, free: 5.762 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4513, allocations: 362.8 kB / 276.1 MB, free: 5.398 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/0.4529, allocations: 418.4 kB / 276.5 MB, free: 4.992 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.4546, allocations: 0.5436 MB / 277.1 MB, free: 4.414 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.4562, allocations: 471.7 kB / 277.6 MB, free: 3.961 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4562, allocations: 0 / 277.6 MB, free: 3.961 MB / 218.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.004047/0.4603, allocations: 1.24 MB / 278.8 MB, free: 2.699 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.4603, allocations: 4 kB / 278.8 MB, free: 2.695 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.4603, allocations: 4 kB / 278.8 MB, free: 2.691 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005854/0.4609, allocations: 134.5 kB / 278.9 MB, free: 2.551 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/0.463, allocations: 271.6 kB / 279.2 MB, free: 2.285 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004867/0.4679, allocations: 4.548 MB / 283.7 MB, free: 13.33 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.4694, allocations: 91.91 kB / 283.8 MB, free: 13.24 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.4695, allocations: 39.98 kB / 283.9 MB, free: 13.2 MB / 234.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 (134): * Single equations (assignments): 131 * 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.0007204/0.4702, allocations: 269.7 kB / 284.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002467/0.4705, allocations: 94.92 kB / 284.2 MB, free: 12.83 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.4732, allocations: 0.8081 MB / 285 MB, free: 12.01 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.4732, allocations: 12 kB / 285 MB, free: 12 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.4732, allocations: 4.188 kB / 285.1 MB, free: 12 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/0.4732, allocations: 3.984 kB / 285.1 MB, free: 11.99 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007304/0.4806, allocations: 2.96 MB / 288 MB, free: 8.906 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/0.4806, allocations: 8 kB / 288 MB, free: 8.898 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/0.4824, allocations: 228 kB / 288.2 MB, free: 8.676 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006957/0.4831, allocations: 159.2 kB / 288.4 MB, free: 8.508 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.212e-05/0.4832, allocations: 31.94 kB / 288.4 MB, free: 8.477 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00562/0.4888, allocations: 5.608 MB / 294 MB, free: 2.344 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.4889, allocations: 8.062 kB / 294 MB, free: 2.336 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005835/0.4947, allocations: 2.051 MB / 296.1 MB, free: 156 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.147/0.6417, allocations: 166.8 kB / 296.3 MB, free: 59.82 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004694/0.6423, allocations: 23.58 kB / 296.3 MB, free: 59.82 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.6435, allocations: 80.48 kB / 296.4 MB, free: 59.82 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002944/0.6438, allocations: 84.88 kB / 296.4 MB, free: 59.82 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.644, allocations: 35.17 kB / 296.5 MB, free: 59.82 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009587/0.6449, allocations: 430 kB / 296.9 MB, free: 59.73 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6449, allocations: 2.719 kB / 296.9 MB, free: 59.73 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001378/0.6463, allocations: 265.2 kB / 297.2 MB, free: 59.73 MB / 234.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 (110): * Single equations (assignments): 106 * 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.00555/0.6519, allocations: 3.41 MB / 300.6 MB, free: 57.96 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003769/0.6557, allocations: 1.428 MB / 302 MB, free: 57.61 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.6557, allocations: 0 / 302 MB, free: 57.61 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002296/0.658, allocations: 1.079 MB / 303.1 MB, free: 57.17 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.6596, allocations: 177.7 kB / 303.3 MB, free: 57.17 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/0.6749, allocations: 7.92 MB / 311.2 MB, free: 53.54 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006825/0.6756, allocations: 1.045 MB / 312.2 MB, free: 52.82 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009164/0.6765, allocations: 392.7 kB / 312.6 MB, free: 52.82 MB / 234.7 MB Notification: Performance of SimCode: time 1.322e-06/0.6765, allocations: 0 / 312.6 MB, free: 52.82 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.307/3.983, allocations: 32.18 MB / 344.8 MB, free: 38.5 MB / 234.7 MB