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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.071/1.071, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.443e-05/2.462e-05, allocations: 0 / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06054/0.06062, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.234/0.2947, allocations: 41.57 MB / 215 MB, free: 4.617 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.295, allocations: 68.94 kB / 215 MB, free: 4.617 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1569/0.452, allocations: 34.68 MB / 249.7 MB, free: 15.45 MB / 202.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.4521, allocations: 0 / 249.7 MB, free: 15.45 MB / 202.7 MB Notification: Performance of Transformations before backend: time 6.854e-05/0.4521, allocations: 24 kB / 249.7 MB, free: 15.42 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.004313/0.4565, allocations: 1.119 MB / 250.9 MB, free: 14.26 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.4565, allocations: 12.03 kB / 250.9 MB, free: 14.25 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005906/0.4571, allocations: 114.6 kB / 251 MB, free: 14.13 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.4593, allocations: 0.5764 MB / 251.6 MB, free: 13.52 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/0.4596, allocations: 46 kB / 251.6 MB, free: 13.48 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003211/0.4599, allocations: 56 kB / 251.7 MB, free: 13.43 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002423/0.4623, allocations: 0.7107 MB / 252.4 MB, free: 12.71 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.465, allocations: 0.7863 MB / 253.1 MB, free: 11.91 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-05/0.4651, allocations: 7.891 kB / 253.2 MB, free: 11.91 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.4653, allocations: 4 kB / 253.2 MB, free: 11.9 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.4653, allocations: 20 kB / 253.2 MB, free: 11.88 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009396/0.4747, allocations: 3.326 MB / 256.5 MB, free: 8.457 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.4767, allocations: 0.7034 MB / 257.2 MB, free: 7.73 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.4779, allocations: 415.8 kB / 257.6 MB, free: 7.32 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.478, allocations: 15.77 kB / 257.6 MB, free: 7.305 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/0.4781, allocations: 43.06 kB / 257.7 MB, free: 7.254 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 4.759e-06/0.4781, allocations: 0 / 257.7 MB, free: 7.254 MB / 202.7 MB Notification: Performance of matching and sorting (n=127): time 0.01244/0.4906, allocations: 3.589 MB / 261.3 MB, free: 3.496 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.4907, allocations: 90.33 kB / 261.3 MB, free: 3.387 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.4918, allocations: 454.1 kB / 261.8 MB, free: 2.934 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002512/0.492, allocations: 29.69 kB / 261.8 MB, free: 2.898 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/0.4924, allocations: 454.7 kB / 262.3 MB, free: 2.449 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000581/0.493, allocations: 413.7 kB / 262.7 MB, free: 2.039 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.683e-05/0.4931, allocations: 0 / 262.7 MB, free: 2.039 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.4933, allocations: 362.7 kB / 263 MB, free: 1.676 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009975/0.4943, allocations: 342.6 kB / 263.4 MB, free: 1.344 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.4955, allocations: 473.8 kB / 263.8 MB, free: 0.8477 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.4966, allocations: 385.3 kB / 264.2 MB, free: 488 kB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.4966, allocations: 4 kB / 264.2 MB, free: 484 kB / 202.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003231/0.4999, allocations: 1.039 MB / 265.2 MB, free: 15.41 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.4999, allocations: 11.94 kB / 265.3 MB, free: 15.4 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.5, allocations: 4 kB / 265.3 MB, free: 15.4 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007471/0.5007, allocations: 150.3 kB / 265.4 MB, free: 15.25 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002667/0.5034, allocations: 283.6 kB / 265.7 MB, free: 14.97 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009496/0.513, allocations: 4.607 MB / 270.3 MB, free: 10.02 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/0.5156, allocations: 56.02 kB / 270.3 MB, free: 9.965 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000364/0.5161, allocations: 43.98 kB / 270.4 MB, free: 9.922 MB / 218.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 (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 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000375/0.5165, allocations: 116.8 kB / 270.5 MB, free: 9.801 MB / 218.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00306/0.5195, allocations: 0.9492 MB / 271.4 MB, free: 8.836 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004388/0.52, allocations: 90.95 kB / 271.5 MB, free: 8.746 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.5223, allocations: 0.7008 MB / 272.2 MB, free: 8.031 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.878e-05/0.5223, allocations: 12 kB / 272.2 MB, free: 8.02 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/0.5224, allocations: 4 kB / 272.3 MB, free: 8.016 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.658e-05/0.5224, allocations: 7.922 kB / 272.3 MB, free: 8.008 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007608/0.53, allocations: 2.691 MB / 275 MB, free: 5.23 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/0.5301, allocations: 7.938 kB / 275 MB, free: 5.223 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00218/0.5323, allocations: 247.7 kB / 275.2 MB, free: 4.98 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006545/0.533, allocations: 122.6 kB / 275.3 MB, free: 4.852 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002185/0.5332, allocations: 15.98 kB / 275.3 MB, free: 4.836 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004673/0.5379, allocations: 4.221 MB / 279.6 MB, free: 276 kB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.128e-05/0.538, allocations: 7.953 kB / 279.6 MB, free: 268 kB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004445/0.5424, allocations: 1.802 MB / 281.4 MB, free: 14.34 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004454/0.5429, allocations: 164.1 kB / 281.5 MB, free: 14.16 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002819/0.5432, allocations: 11.98 kB / 281.5 MB, free: 14.15 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.5445, allocations: 56.14 kB / 281.6 MB, free: 14.09 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/0.5448, allocations: 92.61 kB / 281.7 MB, free: 14 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.545, allocations: 39.97 kB / 281.7 MB, free: 13.96 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007392/0.5457, allocations: 351 kB / 282.1 MB, free: 13.62 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.72e-07/0.5457, allocations: 0 / 282.1 MB, free: 13.62 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001872/0.5476, allocations: 220 kB / 282.3 MB, free: 13.41 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.mmf_PM.Phi,pmActuator.armature.stopper_xMin.v_rel,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 (118): * Single equations (assignments): 115 * 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.005309/0.553, allocations: 3.149 MB / 285.4 MB, free: 10.16 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003468/0.5565, allocations: 1.273 MB / 286.7 MB, free: 8.852 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/0.5566, allocations: 0 / 286.7 MB, free: 8.852 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.5587, allocations: 0.8479 MB / 287.6 MB, free: 7.977 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/0.5607, allocations: 143.2 kB / 287.7 MB, free: 7.836 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006721/0.5675, allocations: 1.858 MB / 289.5 MB, free: 5.895 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008945/0.5685, allocations: 1.052 MB / 290.6 MB, free: 4.812 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/0.5697, allocations: 388.5 kB / 291 MB, free: 4.434 MB / 234.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5697, allocations: 0 / 291 MB, free: 4.434 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.561/4.13, allocations: 30.41 MB / 321.4 MB, free: 57.17 MB / 234.7 MB