Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 0.992/0.992, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.501e-05/2.518e-05, allocations: 4 kB / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1399, allocations: 25.14 MB / 179.4 MB, free: 0.8125 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0685/0.2085, allocations: 45.04 MB / 224.5 MB, free: 4.047 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.2087, allocations: 67.95 kB / 224.5 MB, free: 3.98 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4416/0.6503, allocations: 70.27 MB / 294.8 MB, free: 11.7 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.148e-06/0.6504, allocations: 0 / 294.8 MB, free: 11.7 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.000424/0.6508, allocations: 108 kB / 294.9 MB, free: 11.59 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: 508 * Number of variables: 508 Notification: Performance of Generate backend data structure: time 0.01058/0.6614, allocations: 5.592 MB / 300.5 MB, free: 5.93 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.6615, allocations: 12.03 kB / 300.5 MB, free: 5.918 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001361/0.6629, allocations: 0.8535 MB / 301.4 MB, free: 5.055 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00729/0.6702, allocations: 3.491 MB / 304.9 MB, free: 1.5 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.6703, allocations: 152 kB / 305 MB, free: 1.352 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008249/0.6712, allocations: 215.9 kB / 305.2 MB, free: 1.141 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01208/0.6833, allocations: 5.728 MB / 310.9 MB, free: 11.39 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.739e-05/0.6834, allocations: 11.91 kB / 311 MB, free: 11.38 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005611/0.684, allocations: 92 kB / 311 MB, free: 11.29 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.225e-05/0.6841, allocations: 48 kB / 311.1 MB, free: 11.24 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.6963, allocations: 5.346 MB / 316.4 MB, free: 5.883 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02711/0.7234, allocations: 10.38 MB / 326.8 MB, free: 11.32 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/0.7348, allocations: 5.533 MB / 332.4 MB, free: 5.715 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009884/0.7448, allocations: 4.64 MB / 337 MB, free: 1.07 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004016/0.7452, allocations: 131.1 kB / 337.1 MB, free: 0.918 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.73e-05/0.7453, allocations: 60.66 kB / 337.2 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of pre-optimization done (n=225): time 6.428e-06/0.7453, allocations: 4 kB / 337.2 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of matching and sorting (n=350): time 0.2247/0.9701, allocations: 29.2 MB / 366.4 MB, free: 47.24 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1149/1.085, allocations: 33.3 MB / 399.7 MB, free: 18.01 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.01284/1.098, allocations: 7.352 MB / 407 MB, free: 11.6 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008724/1.099, allocations: 97.7 kB / 407.1 MB, free: 11.5 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003363/1.102, allocations: 2.821 MB / 410 MB, free: 8.805 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001626/1.104, allocations: 1.175 MB / 411.1 MB, free: 7.891 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006371/1.104, allocations: 82.66 kB / 411.2 MB, free: 7.812 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000181/1.105, allocations: 435.4 kB / 411.6 MB, free: 7.418 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008109/1.113, allocations: 4.711 MB / 416.3 MB, free: 2.977 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009616/1.122, allocations: 5 MB / 421.3 MB, free: 13.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/1.133, allocations: 4.887 MB / 426.2 MB, free: 9.031 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/1.133, allocations: 4 kB / 426.2 MB, free: 9.027 MB / 250.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.1698/1.303, allocations: 11.08 MB / 437.3 MB, free: 62.9 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/1.303, allocations: 4.688 kB / 437.3 MB, free: 62.9 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/1.303, allocations: 6.969 kB / 437.3 MB, free: 62.9 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01309/1.316, allocations: 1.579 MB / 438.9 MB, free: 62.83 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005251/1.321, allocations: 0.7579 MB / 439.7 MB, free: 62.83 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/1.333, allocations: 12.9 MB / 452.6 MB, free: 52.69 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004759/1.338, allocations: 172.1 kB / 452.7 MB, free: 52.69 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001154/1.339, allocations: 473.4 kB / 453.2 MB, free: 52.67 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (comparisonWithFEA.tableID,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (297): * Single equations (assignments): 286 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 37,3 45} Notification: Performance of prepare postOptimizeDAE: time 0.001135/1.34, allocations: 281.2 kB / 453.5 MB, free: 52.56 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001483/1.342, allocations: 0.8274 MB / 454.3 MB, free: 52.56 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02746/1.369, allocations: 15.48 MB / 469.8 MB, free: 51.67 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005221/1.375, allocations: 2.159 MB / 471.9 MB, free: 50.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.76e-05/1.375, allocations: 7.938 kB / 472 MB, free: 50.49 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.995e-05/1.375, allocations: 25.28 kB / 472 MB, free: 50.48 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02982/1.405, allocations: 13.72 MB / 485.7 MB, free: 39.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.602e-05/1.405, allocations: 5.938 kB / 485.7 MB, free: 39.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003676/1.408, allocations: 0.5028 MB / 486.2 MB, free: 39.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01231/1.421, allocations: 1.613 MB / 487.8 MB, free: 37.85 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009672/1.422, allocations: 186.1 kB / 488 MB, free: 37.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/1.433, allocations: 12.58 MB / 0.4888 GB, free: 24.65 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09412/1.527, allocations: 28.8 MB / 0.517 GB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1953/1.722, allocations: 23.29 MB / 0.5397 GB, free: 68.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/1.724, allocations: 0.759 MB / 0.5405 GB, free: 68.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001594/1.725, allocations: 85.25 kB / 0.5405 GB, free: 68.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00384/1.729, allocations: 167.6 kB / 0.5407 GB, free: 68.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006927/1.73, allocations: 233.7 kB / 0.5409 GB, free: 68.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008342/1.731, allocations: 456.6 kB / 0.5414 GB, free: 68.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.01185/1.743, allocations: 5.87 MB / 0.5471 GB, free: 68.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.375e-06/1.743, allocations: 0 / 0.5471 GB, free: 68.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.004438/1.747, allocations: 0.9901 MB / 0.5481 GB, free: 68.23 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET2.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel,$STATESET1.x[2],$STATESET1.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v) * Number of discrete variables: 5 (comparisonWithFEA.tableID,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 234 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 38,4 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009683/1.748, allocations: 301.6 kB / 0.5483 GB, free: 68.13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.01246/1.761, allocations: 8.077 MB / 0.5562 GB, free: 67.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.761, allocations: 3.438 kB / 0.5562 GB, free: 67.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007482/1.768, allocations: 4.69 MB / 0.5608 GB, free: 66.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004094/1.772, allocations: 0.4921 MB / 0.5613 GB, free: 65.74 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03007/1.802, allocations: 15.91 MB / 0.5768 GB, free: 52.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006753/1.809, allocations: 4.11 MB / 0.5808 GB, free: 49.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.811, allocations: 255.8 kB / 0.5811 GB, free: 49.02 MB / 266.7 MB Notification: Performance of SimCode: time 2.113e-06/1.811, allocations: 0 / 0.5811 GB, free: 49.02 MB / 266.7 MB Notification: Performance of Templates: time 2.236/4.048, allocations: 0.5277 GB / 1.109 GB, free: 84.11 MB / 282.7 MB