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.SolenoidActuator.ComparisonQuasiStationary.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: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 1.186/1.186, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002669, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05817/0.05847, allocations: 25.17 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2398/0.2983, allocations: 45.52 MB / 229.6 MB, free: 1.117 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.2987, allocations: 76.39 kB / 229.6 MB, free: 1.078 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2061/0.5048, allocations: 42.97 MB / 272.6 MB, free: 10.02 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5049, allocations: 0 / 272.6 MB, free: 10.02 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0002179/0.5051, allocations: 48 kB / 272.7 MB, free: 9.973 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01137/0.5165, allocations: 2.554 MB / 275.2 MB, free: 7.359 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.5165, allocations: 8.031 kB / 275.2 MB, free: 7.352 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001453/0.518, allocations: 289.3 kB / 275.5 MB, free: 7.066 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004264/0.5223, allocations: 1.25 MB / 276.8 MB, free: 5.766 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.5226, allocations: 148 kB / 276.9 MB, free: 5.621 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007529/0.5233, allocations: 203.9 kB / 277.1 MB, free: 5.422 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008799/0.5322, allocations: 2.222 MB / 279.3 MB, free: 3.184 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-05/0.5323, allocations: 0 / 279.3 MB, free: 3.184 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003614/0.5327, allocations: 84 kB / 279.4 MB, free: 3.102 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.969e-05/0.5328, allocations: 52 kB / 279.5 MB, free: 3.051 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008883/0.5417, allocations: 2.054 MB / 281.5 MB, free: 0.9961 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02594/0.5676, allocations: 7.388 MB / 288.9 MB, free: 9.402 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009024/0.5767, allocations: 2.38 MB / 291.3 MB, free: 6.969 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004425/0.5772, allocations: 119.1 kB / 291.4 MB, free: 6.836 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.1e-05/0.5773, allocations: 64.45 kB / 291.5 MB, free: 6.766 MB / 234.7 MB Notification: Performance of pre-optimization done (n=220): time 7.905e-06/0.5774, allocations: 4 kB / 291.5 MB, free: 6.762 MB / 234.7 MB Notification: Performance of matching and sorting (n=348): time 0.3431/0.9205, allocations: 19.24 MB / 310.7 MB, free: 49.3 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2829/1.203, allocations: 36.37 MB / 347.1 MB, free: 34.55 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Magnetic/FluxTubes.mo:3057:9-3059:53:writable] Warning: Parameter advancedSolenoid.g_mFePole.r_i has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/1.207, allocations: 1.596 MB / 348.7 MB, free: 33.95 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008838/1.208, allocations: 80.55 kB / 348.8 MB, free: 33.88 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009267/1.209, allocations: 0.8894 MB / 349.6 MB, free: 33.2 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001762/1.211, allocations: 1.149 MB / 350.8 MB, free: 32.35 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004191/1.211, allocations: 67.53 kB / 350.9 MB, free: 32.3 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002117/1.211, allocations: 429.7 kB / 351.3 MB, free: 31.93 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004912/1.216, allocations: 1.498 MB / 352.8 MB, free: 30.66 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005342/1.222, allocations: 1.797 MB / 354.6 MB, free: 29.02 MB / 234.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v (if time < x_set.startTime then 0.0 else if time < x_set.startTime + x_set.duration then x_set.height / x_set.duration else 0.0 = $START.advancedSolenoid.armature.mass.v) Notification: Performance of analyzeInitialSystem (initialization): time 0.07039/1.292, allocations: 7.193 MB / 361.8 MB, free: 23.35 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/1.292, allocations: 4 kB / 361.8 MB, free: 23.34 MB / 234.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01466/1.307, allocations: 4.425 MB / 366.2 MB, free: 18.98 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/1.307, allocations: 11.98 kB / 366.2 MB, free: 18.97 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/1.307, allocations: 7.953 kB / 366.2 MB, free: 18.96 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01901/1.326, allocations: 1.528 MB / 367.7 MB, free: 17.42 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006249/1.332, allocations: 0.6023 MB / 368.3 MB, free: 16.85 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/1.342, allocations: 9.923 MB / 378.3 MB, free: 6.285 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005216/1.348, allocations: 172 kB / 378.4 MB, free: 6.117 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006843/1.348, allocations: 143.9 kB / 378.6 MB, free: 5.977 MB / 234.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (300): * Single equations (assignments): 291 * Array equations: 2 * 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%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 37,5 46} Notification: Performance of prepare postOptimizeDAE: time 0.002376/1.351, allocations: 0.5792 MB / 379.2 MB, free: 5.398 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009625/1.352, allocations: 252.9 kB / 379.4 MB, free: 5.148 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/1.367, allocations: 4.747 MB / 384.1 MB, free: 352 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0135/1.38, allocations: 4.134 MB / 388.3 MB, free: 12.16 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/1.38, allocations: 4 kB / 388.3 MB, free: 12.15 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.213e-05/1.38, allocations: 15.94 kB / 388.3 MB, free: 12.14 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03071/1.411, allocations: 9.816 MB / 398.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.398e-05/1.411, allocations: 4 kB / 398.1 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005784/1.417, allocations: 0.4997 MB / 398.6 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02022/1.437, allocations: 1.605 MB / 400.2 MB, free: 68 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.1641/1.602, allocations: 89.45 kB / 400.3 MB, free: 60.41 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/1.613, allocations: 9.938 MB / 410.3 MB, free: 52.95 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2526/1.866, allocations: 32.54 MB / 442.8 MB, free: 43.37 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01978/1.886, allocations: 6.863 MB / 449.7 MB, free: 40.26 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002374/1.888, allocations: 0.6987 MB / 450.4 MB, free: 39.77 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008748/1.889, allocations: 66.73 kB / 450.4 MB, free: 39.72 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004447/1.893, allocations: 160.1 kB / 450.6 MB, free: 39.68 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000772/1.894, allocations: 232.6 kB / 450.8 MB, free: 39.64 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004068/1.895, allocations: 125.8 kB / 450.9 MB, free: 39.62 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.002377/1.897, allocations: 1.095 MB / 452 MB, free: 39.2 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.897, allocations: 2.406 kB / 452 MB, free: 39.2 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004383/1.901, allocations: 0.8262 MB / 452.9 MB, free: 39.09 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 7 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001148/1.903, allocations: 263.1 kB / 453.1 MB, free: 38.94 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.01287/1.915, allocations: 4.321 MB / 457.4 MB, free: 37.05 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.916, allocations: 0.875 kB / 457.4 MB, free: 37.05 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007815/1.923, allocations: 2.695 MB / 460.1 MB, free: 35.07 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/1.927, allocations: 346.1 kB / 460.5 MB, free: 34.8 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01772/1.945, allocations: 7.893 MB / 468.4 MB, free: 27.52 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/1.946, allocations: 1.746 MB / 470.1 MB, free: 26.12 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002201/1.948, allocations: 239 kB / 470.3 MB, free: 25.95 MB / 250.7 MB Notification: Performance of SimCode: time 1.543e-06/1.948, allocations: 0 / 470.3 MB, free: 25.95 MB / 250.7 MB Notification: Performance of Templates: time 0.3322/2.281, allocations: 122.2 MB / 0.5786 GB, free: 6.777 MB / 266.7 MB