Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.58/1.58, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09524, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3619/0.4572, allocations: 82.97 MB / 355.1 MB, free: 6.613 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.4575, allocations: 86.58 kB / 355.2 MB, free: 6.566 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1919/0.6495, allocations: 44.16 MB / 399.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.6495, allocations: 0 / 399.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002561/0.6498, allocations: 55.98 kB / 399.4 MB, free: 0.5078 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 513 * Number of variables: 513 Notification: Performance of Generate backend data structure: time 0.01092/0.6607, allocations: 2.61 MB / 402 MB, free: 13.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/0.6608, allocations: 12.03 kB / 402 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001246/0.6621, allocations: 291 kB / 402.3 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.6631, allocations: 284.5 kB / 402.6 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004236/0.6674, allocations: 1.27 MB / 403.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002363/0.6677, allocations: 156 kB / 404 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007729/0.6685, allocations: 199.9 kB / 404.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007704/0.6762, allocations: 1.856 MB / 406 MB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-05/0.6763, allocations: 8 kB / 406 MB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003674/0.6767, allocations: 83.95 kB / 406.1 MB, free: 9.559 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.035e-05/0.6768, allocations: 48 kB / 406.2 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00833/0.6851, allocations: 1.948 MB / 408.1 MB, free: 7.547 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02456/0.7097, allocations: 7.456 MB / 415.6 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00696/0.7167, allocations: 2.269 MB / 417.9 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004179/0.7172, allocations: 119.1 kB / 418 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.45e-05/0.7173, allocations: 56.56 kB / 418 MB, free: 13.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 4.739e-06/0.7173, allocations: 3.938 kB / 418 MB, free: 13.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=350): time 0.3543/1.072, allocations: 17.5 MB / 435.5 MB, free: 85.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.283/1.355, allocations: 36.58 MB / 472.1 MB, free: 73.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003822/1.358, allocations: 1.636 MB / 473.7 MB, free: 72.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006747/1.359, allocations: 83.48 kB / 473.8 MB, free: 72.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007362/1.36, allocations: 0.8915 MB / 474.7 MB, free: 71.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/1.361, allocations: 1.15 MB / 475.9 MB, free: 71.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003672/1.362, allocations: 66.84 kB / 475.9 MB, free: 71.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002033/1.362, allocations: 433.6 kB / 476.4 MB, free: 70.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004387/1.366, allocations: 1.359 MB / 477.7 MB, free: 70.17 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005065/1.372, allocations: 1.641 MB / 479.4 MB, free: 69.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00534/1.377, allocations: 1.561 MB / 480.9 MB, free: 68.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/1.377, allocations: 0 / 480.9 MB, free: 68.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01363/1.391, allocations: 4.179 MB / 485.1 MB, free: 66.81 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.479e-05/1.391, allocations: 35.83 kB / 485.1 MB, free: 66.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/1.391, allocations: 3.875 kB / 485.1 MB, free: 66.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01892/1.41, allocations: 1.558 MB / 486.7 MB, free: 66.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005978/1.416, allocations: 0.5845 MB / 487.3 MB, free: 66.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/1.426, allocations: 9.903 MB / 497.2 MB, free: 57.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005103/1.431, allocations: 163.4 kB / 497.3 MB, free: 57.24 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008093/1.432, allocations: 138.3 kB / 497.5 MB, free: 57.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (303): * Single equations (assignments): 293 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 48,2 38} Notification: Performance of prepare postOptimizeDAE: time 0.002384/1.434, allocations: 0.5738 MB / 498 MB, free: 56.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009093/1.435, allocations: 256.9 kB / 498.3 MB, free: 56.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/1.449, allocations: 4.258 MB / 0.4908 GB, free: 52.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01164/1.46, allocations: 3.686 MB / 0.4944 GB, free: 49.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/1.461, allocations: 6.75 kB / 0.4944 GB, free: 49.15 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.979e-05/1.461, allocations: 17.72 kB / 0.4944 GB, free: 49.15 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.486, allocations: 9.377 MB / 0.5036 GB, free: 41.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-05/1.486, allocations: 4 kB / 0.5036 GB, free: 41.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005462/1.492, allocations: 0.5021 MB / 0.5041 GB, free: 40.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01896/1.511, allocations: 1.594 MB / 0.5056 GB, free: 39.47 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000682/1.511, allocations: 95.91 kB / 0.5057 GB, free: 39.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/1.521, allocations: 9.947 MB / 0.5154 GB, free: 28.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2424/1.764, allocations: 32.54 MB / 0.5472 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02187/1.786, allocations: 6.44 MB / 0.5535 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002563/1.788, allocations: 0.7007 MB / 0.5542 GB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009464/1.789, allocations: 70.7 kB / 0.5542 GB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004485/1.794, allocations: 159.9 kB / 0.5544 GB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008669/1.795, allocations: 226.3 kB / 0.5546 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004104/1.795, allocations: 115.9 kB / 0.5547 GB, free: 3.805 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003294/1.799, allocations: 1.274 MB / 0.556 GB, free: 2.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.799, allocations: 0 / 0.556 GB, free: 2.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004777/1.803, allocations: 0.8471 MB / 0.5568 GB, free: 1.695 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 37,5 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.2742/2.078, allocations: 8.128 MB / 0.5647 GB, free: 90.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0177/2.095, allocations: 4.193 MB / 0.5688 GB, free: 89.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/2.095, allocations: 1.281 kB / 0.5688 GB, free: 89.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009397/2.105, allocations: 2.621 MB / 0.5714 GB, free: 89.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/2.108, allocations: 299.7 kB / 0.5717 GB, free: 89.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02301/2.131, allocations: 11.68 MB / 0.5831 GB, free: 82.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/2.133, allocations: 1.742 MB / 0.5848 GB, free: 81.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003437/2.136, allocations: 1.134 MB / 0.5859 GB, free: 81.96 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/2.136, allocations: 0 / 0.5859 GB, free: 81.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.511/6.647, allocations: 134.7 MB / 0.7174 GB, free: 91.98 MB / 362.7 MB