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 1.253/1.253, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002657/0.0002657, allocations: 4 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05398/0.05428, allocations: 25.17 MB / 183.5 MB, free: 5.914 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008197/0.06252, allocations: 4.755 MB / 188.3 MB, free: 1.145 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0044/0.06696, allocations: 1.673 MB / 189.9 MB, free: 15.47 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009019/0.06791, allocations: 15.94 kB / 190 MB, free: 15.45 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000632/0.06856, allocations: 154.9 kB / 190.1 MB, free: 15.3 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001607/0.07018, allocations: 414.8 kB / 190.5 MB, free: 14.89 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.07123, allocations: 203.7 kB / 190.7 MB, free: 14.7 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.002278/0.07352, allocations: 0.8893 MB / 191.6 MB, free: 13.8 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008479/0.07441, allocations: 361.5 kB / 192 MB, free: 13.43 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000893/0.07532, allocations: 418.5 kB / 192.4 MB, free: 13.02 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008942/0.07623, allocations: 493.8 kB / 192.8 MB, free: 12.54 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002164/0.07647, allocations: 60 kB / 192.9 MB, free: 12.48 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002749/0.07675, allocations: 60 kB / 193 MB, free: 12.42 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.077, allocations: 187.3 kB / 193.1 MB, free: 12.24 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003357/0.07735, allocations: 237.1 kB / 193.4 MB, free: 12 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.07942, allocations: 1.418 MB / 194.8 MB, free: 10.58 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.07945, allocations: 4 kB / 194.8 MB, free: 10.57 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.07946, allocations: 0 / 194.8 MB, free: 10.57 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.552e-05/0.07951, allocations: 3.938 kB / 194.8 MB, free: 10.57 MB / 170.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.004514/0.08403, allocations: 1.274 MB / 196.1 MB, free: 9.246 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.0841, allocations: 11.97 kB / 196.1 MB, free: 9.234 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003377/0.08445, allocations: 147.9 kB / 196.2 MB, free: 9.082 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.08475, allocations: 110.7 kB / 196.3 MB, free: 8.973 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.08639, allocations: 0.6192 MB / 197 MB, free: 8.309 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.08661, allocations: 81.95 kB / 197 MB, free: 8.23 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002357/0.08686, allocations: 100 kB / 197.1 MB, free: 8.133 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0032/0.09007, allocations: 0.9974 MB / 198.1 MB, free: 7.121 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.406e-05/0.09015, allocations: 11.91 kB / 198.2 MB, free: 7.109 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.0903, allocations: 36 kB / 198.2 MB, free: 7.074 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.648e-05/0.09035, allocations: 23.98 kB / 198.2 MB, free: 7.051 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003431/0.09379, allocations: 0.8913 MB / 199.1 MB, free: 6.16 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008337/0.1022, allocations: 3.274 MB / 202.4 MB, free: 2.766 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002445/0.1046, allocations: 0.7808 MB / 203.2 MB, free: 1.969 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.81e-05/0.1048, allocations: 12.7 kB / 203.2 MB, free: 1.957 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.1048, allocations: 43.22 kB / 203.2 MB, free: 1.906 MB / 170.7 MB Notification: Performance of pre-optimization done (n=87): time 3.106e-06/0.1048, allocations: 0 / 203.2 MB, free: 1.906 MB / 170.7 MB Notification: Performance of matching and sorting (n=111): time 0.1531/0.2579, allocations: 4.329 MB / 207.5 MB, free: 22.09 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.258, allocations: 88.42 kB / 207.6 MB, free: 22 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.2592, allocations: 0.5911 MB / 208.2 MB, free: 21.72 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001491/0.2594, allocations: 45.58 kB / 208.3 MB, free: 21.68 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/0.2597, allocations: 447.8 kB / 208.7 MB, free: 21.3 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003695/0.26, allocations: 377.4 kB / 209.1 MB, free: 21.01 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.499e-05/0.2601, allocations: 20.12 kB / 209.1 MB, free: 20.99 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.2603, allocations: 353 kB / 209.4 MB, free: 20.66 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.2617, allocations: 389.6 kB / 209.8 MB, free: 20.53 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.2633, allocations: 0.516 MB / 210.3 MB, free: 20.27 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.2648, allocations: 435 kB / 210.8 MB, free: 20.09 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2648, allocations: 4.016 kB / 210.8 MB, free: 20.09 MB / 170.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003856/0.2687, allocations: 1.155 MB / 211.9 MB, free: 19.63 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.2688, allocations: 7.312 kB / 211.9 MB, free: 19.63 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.2688, allocations: 4.812 kB / 211.9 MB, free: 19.63 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006178/0.2694, allocations: 129.1 kB / 212 MB, free: 19.58 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/0.2714, allocations: 259.4 kB / 212.3 MB, free: 19.56 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004258/0.2757, allocations: 4.55 MB / 216.9 MB, free: 15.17 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.2771, allocations: 64.44 kB / 216.9 MB, free: 15.15 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.2773, allocations: 40.72 kB / 217 MB, free: 15.14 MB / 170.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 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 121 * 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.000663/0.2779, allocations: 273 kB / 217.2 MB, free: 14.92 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002575/0.2782, allocations: 88 kB / 217.3 MB, free: 14.88 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/0.2808, allocations: 0.7707 MB / 218.1 MB, free: 14.51 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.2808, allocations: 12.89 kB / 218.1 MB, free: 14.51 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.805e-05/0.2808, allocations: 1.359 kB / 218.1 MB, free: 14.51 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-05/0.2809, allocations: 9.781 kB / 218.1 MB, free: 14.51 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006053/0.2869, allocations: 2.641 MB / 220.7 MB, free: 13.08 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.287, allocations: 0 / 220.7 MB, free: 13.08 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.2887, allocations: 207.2 kB / 220.9 MB, free: 13.07 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006975/0.2894, allocations: 157.7 kB / 221.1 MB, free: 12.99 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.2895, allocations: 25.38 kB / 221.1 MB, free: 12.98 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004594/0.2941, allocations: 5.603 MB / 226.7 MB, free: 7.34 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.2941, allocations: 1.375 kB / 226.7 MB, free: 7.34 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004975/0.2991, allocations: 1.758 MB / 228.5 MB, free: 6.328 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003171/0.2995, allocations: 160.8 kB / 228.6 MB, free: 6.172 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002117/0.2997, allocations: 22.59 kB / 228.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.3007, allocations: 65.05 kB / 228.7 MB, free: 6.125 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.301, allocations: 69.8 kB / 228.8 MB, free: 6.09 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.3011, allocations: 34.67 kB / 228.8 MB, free: 6.078 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0007634/0.3018, allocations: 425 kB / 229.2 MB, free: 5.828 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.743e-06/0.3018, allocations: 0 / 229.2 MB, free: 5.828 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001325/0.3032, allocations: 251.4 kB / 229.5 MB, free: 5.797 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 96 * 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%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005026/0.3082, allocations: 2.324 MB / 231.8 MB, free: 3.445 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.00359/0.3118, allocations: 1.363 MB / 233.2 MB, free: 2.051 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.3119, allocations: 0 / 233.2 MB, free: 2.051 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00217/0.3141, allocations: 0.9992 MB / 234.2 MB, free: 1 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.3156, allocations: 181.7 kB / 234.4 MB, free: 0.832 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/0.3331, allocations: 6.022 MB / 240.4 MB, free: 10.62 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008435/0.3339, allocations: 1.034 MB / 241.4 MB, free: 9.562 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/0.335, allocations: 387.3 kB / 241.8 MB, free: 9.188 MB / 186.7 MB Notification: Performance of SimCode: time 1.112e-06/0.3351, allocations: 0 / 241.8 MB, free: 9.188 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.346/3.681, allocations: 31.34 MB / 273.1 MB, free: 9.801 MB / 218.7 MB