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.998/0.998, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.379e-05/2.39e-05, allocations: 0 / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1677, allocations: 25.15 MB / 179.5 MB, free: 0.8086 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07401/0.2417, allocations: 42.24 MB / 221.8 MB, free: 6.867 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.2421, allocations: 71.95 kB / 221.8 MB, free: 6.797 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.303/0.5451, allocations: 35.01 MB / 256.8 MB, free: 46.82 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5451, allocations: 4 kB / 256.9 MB, free: 46.81 MB / 202.7 MB Notification: Performance of Transformations before backend: time 5.186e-05/0.5452, allocations: 20.28 kB / 256.9 MB, free: 46.81 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.003249/0.5485, allocations: 1.121 MB / 258 MB, free: 46.19 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.5485, allocations: 9.719 kB / 258 MB, free: 46.19 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002991/0.5488, allocations: 143.1 kB / 258.1 MB, free: 46.15 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/0.5491, allocations: 122.7 kB / 258.3 MB, free: 46.09 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.5505, allocations: 0.5724 MB / 258.8 MB, free: 45.73 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.5507, allocations: 79.31 kB / 258.9 MB, free: 45.7 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002102/0.5509, allocations: 97.34 kB / 259 MB, free: 45.66 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.5532, allocations: 0.9195 MB / 259.9 MB, free: 45.25 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.863e-05/0.5533, allocations: 6.094 kB / 259.9 MB, free: 45.25 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.5534, allocations: 35.09 kB / 260 MB, free: 45.22 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.5535, allocations: 22.41 kB / 260 MB, free: 45.22 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002035/0.5555, allocations: 0.7584 MB / 260.7 MB, free: 44.93 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007361/0.5629, allocations: 3.504 MB / 264.3 MB, free: 42.77 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.5645, allocations: 0.7502 MB / 265 MB, free: 42.14 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.5656, allocations: 439.8 kB / 265.4 MB, free: 41.71 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.65e-05/0.5657, allocations: 16.55 kB / 265.4 MB, free: 41.69 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.5657, allocations: 47.72 kB / 265.5 MB, free: 41.64 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 4.479e-06/0.5657, allocations: 0 / 265.5 MB, free: 41.64 MB / 202.7 MB Notification: Performance of matching and sorting (n=127): time 0.01321/0.5789, allocations: 4.188 MB / 269.7 MB, free: 37.27 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.579, allocations: 90.33 kB / 269.8 MB, free: 37.17 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009075/0.5799, allocations: 0.5205 MB / 270.3 MB, free: 36.64 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.5801, allocations: 45.7 kB / 270.3 MB, free: 36.59 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.5803, allocations: 438.8 kB / 270.8 MB, free: 36.15 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003491/0.5807, allocations: 429.4 kB / 271.2 MB, free: 35.74 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-05/0.5808, allocations: 28 kB / 271.2 MB, free: 35.71 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.9e-05/0.5809, allocations: 354.8 kB / 271.6 MB, free: 35.36 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00095/0.5819, allocations: 362.6 kB / 271.9 MB, free: 35 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.5829, allocations: 0.4928 MB / 272.4 MB, free: 34.48 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.584, allocations: 415.9 kB / 272.8 MB, free: 34.07 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.584, allocations: 4 kB / 272.8 MB, free: 34.07 MB / 202.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002857/0.5869, allocations: 1.145 MB / 274 MB, free: 32.9 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.587, allocations: 9.25 kB / 274 MB, free: 32.89 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.587, allocations: 4 kB / 274 MB, free: 32.89 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006427/0.5877, allocations: 150.5 kB / 274.1 MB, free: 32.73 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/0.5899, allocations: 279.6 kB / 274.4 MB, free: 32.46 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/0.5942, allocations: 4.784 MB / 279.2 MB, free: 27.3 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.5958, allocations: 75.95 kB / 279.2 MB, free: 27.23 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.596, allocations: 40.05 kB / 279.3 MB, free: 27.19 MB / 202.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.0002916/0.5963, allocations: 181.2 kB / 279.5 MB, free: 27 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.5965, allocations: 90.92 kB / 279.6 MB, free: 26.91 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/0.5985, allocations: 0.7753 MB / 280.3 MB, free: 26.12 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/0.5986, allocations: 12 kB / 280.3 MB, free: 26.11 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.5986, allocations: 4 kB / 280.3 MB, free: 26.11 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.086e-05/0.5986, allocations: 7.922 kB / 280.4 MB, free: 26.1 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006268/0.6049, allocations: 2.913 MB / 283.3 MB, free: 23.09 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.605, allocations: 8.031 kB / 283.3 MB, free: 23.08 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001944/0.6069, allocations: 243.7 kB / 283.5 MB, free: 22.84 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005729/0.6075, allocations: 129.9 kB / 283.6 MB, free: 22.71 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.6077, allocations: 35.92 kB / 283.7 MB, free: 22.68 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003537/0.6112, allocations: 4.379 MB / 288.1 MB, free: 17.91 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.6113, allocations: 7.938 kB / 288.1 MB, free: 17.91 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003914/0.6152, allocations: 1.908 MB / 290 MB, free: 15.88 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.6156, allocations: 172.1 kB / 290.1 MB, free: 15.7 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.6158, allocations: 24 kB / 290.2 MB, free: 15.67 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.6172, allocations: 79.94 kB / 290.2 MB, free: 15.59 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/0.6175, allocations: 88.56 kB / 290.3 MB, free: 15.5 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.6176, allocations: 35.98 kB / 290.4 MB, free: 15.47 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0007375/0.6183, allocations: 425.6 kB / 290.8 MB, free: 15.05 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6183, allocations: 0 / 290.8 MB, free: 15.05 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001492/0.6198, allocations: 268 kB / 291 MB, free: 14.79 MB / 202.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.004295/0.6242, allocations: 3.266 MB / 294.3 MB, free: 11.43 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003019/0.6272, allocations: 1.349 MB / 295.7 MB, free: 10.04 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.6273, allocations: 0 / 295.7 MB, free: 10.04 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.6291, allocations: 0.8945 MB / 296.5 MB, free: 9.105 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.6308, allocations: 181.5 kB / 296.7 MB, free: 8.934 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005402/0.6362, allocations: 1.968 MB / 298.7 MB, free: 6.91 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.6369, allocations: 1.048 MB / 299.7 MB, free: 5.84 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009498/0.6378, allocations: 395.3 kB / 300.1 MB, free: 5.453 MB / 202.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6378, allocations: 0 / 300.1 MB, free: 5.453 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.24/3.878, allocations: 30.76 MB / 330.9 MB, free: 6.688 MB / 234.7 MB