Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 2.18/2.18, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000506/0.000506, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1087, allocations: 44.51 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4434/0.5522, allocations: 87.23 MB / 396.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.5525, allocations: 96 kB / 396.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.197/0.7496, allocations: 49.38 MB / 445.7 MB, free: 9.062 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.7496, allocations: 0 / 445.7 MB, free: 9.062 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002044/0.7499, allocations: 48 kB / 445.7 MB, free: 9.016 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.01114/0.761, allocations: 2.626 MB / 448.4 MB, free: 6.496 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.7611, allocations: 8.031 kB / 448.4 MB, free: 6.488 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00132/0.7624, allocations: 296.4 kB / 448.7 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004614/0.767, allocations: 1.327 MB / 450 MB, free: 5.176 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.7673, allocations: 156.1 kB / 450.1 MB, free: 5.086 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000624/0.7679, allocations: 216.1 kB / 450.3 MB, free: 4.941 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007085/0.775, allocations: 1.93 MB / 452.3 MB, free: 3.074 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.66e-05/0.7751, allocations: 4 kB / 452.3 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003286/0.7755, allocations: 92 kB / 452.4 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.832e-05/0.7755, allocations: 48 kB / 452.4 MB, free: 2.934 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008946/0.7845, allocations: 2.011 MB / 454.4 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02446/0.809, allocations: 7.582 MB / 462 MB, free: 9.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007092/0.8162, allocations: 2.375 MB / 464.4 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000316/0.8165, allocations: 41.81 kB / 464.4 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.387e-05/0.8166, allocations: 56.56 kB / 464.5 MB, free: 6.613 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 5.84e-06/0.8166, allocations: 4 kB / 464.5 MB, free: 6.609 MB / 346.7 MB Notification: Performance of matching and sorting (n=375): time 0.1208/0.9375, allocations: 19.03 MB / 483.5 MB, free: 3.473 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1872/1.125, allocations: 34.51 MB / 0.5059 GB, free: 392 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006936/1.132, allocations: 1.82 MB / 0.5077 GB, free: 14.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00101/1.133, allocations: 85.7 kB / 0.5077 GB, free: 14.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/1.134, allocations: 0.8859 MB / 0.5086 GB, free: 13.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002696/1.137, allocations: 1.243 MB / 0.5098 GB, free: 12.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006268/1.138, allocations: 68 kB / 0.5099 GB, free: 12.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004281/1.138, allocations: 442.1 kB / 0.5103 GB, free: 11.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008224/1.146, allocations: 1.354 MB / 0.5116 GB, free: 10.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009045/1.155, allocations: 1.653 MB / 0.5132 GB, free: 8.781 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009247/1.165, allocations: 1.564 MB / 0.5148 GB, free: 7.203 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-05/1.165, allocations: 0 / 0.5148 GB, free: 7.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=437) (initialization): time 0.03244/1.197, allocations: 4.724 MB / 0.5194 GB, free: 2.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.431e-05/1.197, allocations: 33.7 kB / 0.5194 GB, free: 2.391 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.765e-05/1.198, allocations: 4.125 kB / 0.5194 GB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01617/1.214, allocations: 1.398 MB / 0.5208 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008754/1.223, allocations: 0.5695 MB / 0.5213 GB, free: 412 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3083/1.531, allocations: 19.61 MB / 0.5405 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005001/1.536, allocations: 166.8 kB / 0.5407 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008457/1.537, allocations: 129.8 kB / 0.5408 GB, free: 105.1 MB / 410.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 (317): * Single equations (assignments): 307 * 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 54,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.00248/1.539, allocations: 0.5924 MB / 0.5414 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008949/1.54, allocations: 264.1 kB / 0.5416 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02024/1.561, allocations: 4.796 MB / 0.5463 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01817/1.579, allocations: 4.212 MB / 0.5504 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.818e-05/1.579, allocations: 3.75 kB / 0.5504 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001107/1.579, allocations: 20.28 kB / 0.5504 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03402/1.613, allocations: 9.881 MB / 0.5601 GB, free: 99.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.361e-05/1.613, allocations: 2.062 kB / 0.5601 GB, free: 99.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005164/1.618, allocations: 0.4904 MB / 0.5606 GB, free: 99.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01/1.628, allocations: 1.415 MB / 0.5619 GB, free: 99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007785/1.629, allocations: 82.2 kB / 0.562 GB, free: 98.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03555/1.665, allocations: 18.15 MB / 0.5798 GB, free: 85.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1476/1.812, allocations: 30.64 MB / 0.6097 GB, free: 64.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02441/1.837, allocations: 6.736 MB / 0.6162 GB, free: 58.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002283/1.839, allocations: 0.6865 MB / 0.6169 GB, free: 57.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009976/1.84, allocations: 64 kB / 0.617 GB, free: 57.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004312/1.844, allocations: 164.5 kB / 0.6171 GB, free: 57.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00114/1.846, allocations: 287.2 kB / 0.6174 GB, free: 57.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003961/1.846, allocations: 99.17 kB / 0.6175 GB, free: 57.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00278/1.849, allocations: 1.272 MB / 0.6187 GB, free: 56.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.42e-07/1.849, allocations: 0 / 0.6187 GB, free: 56.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005499/1.854, allocations: 1.072 MB / 0.6198 GB, free: 55.01 MB / 410.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 (257): * Single equations (assignments): 250 * 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 42,5 55} Notification: Performance of Backend phase and start with SimCode phase: time 0.00149/1.856, allocations: 349.4 kB / 0.6201 GB, free: 54.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/1.87, allocations: 4.832 MB / 0.6248 GB, free: 50.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/1.87, allocations: 192 / 0.6248 GB, free: 50.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00882/1.878, allocations: 3.266 MB / 0.628 GB, free: 47.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/1.882, allocations: 308 kB / 0.6283 GB, free: 46.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/1.901, allocations: 8.297 MB / 0.6364 GB, free: 39.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/1.903, allocations: 1.839 MB / 0.6382 GB, free: 37.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002194/1.905, allocations: 197.8 kB / 0.6384 GB, free: 37.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/1.905, allocations: 0 / 0.6384 GB, free: 37.56 MB / 410.7 MB Notification: Performance of Templates: time 0.4562/2.361, allocations: 126.5 MB / 0.7619 GB, free: 54.03 MB / 410.7 MB