Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.779/1.779, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.0003599, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08068/0.08106, allocations: 44.51 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3498/0.4309, allocations: 87.23 MB / 395.7 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4312, allocations: 93.22 kB / 395.8 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1778/0.609, allocations: 49.38 MB / 445.2 MB, free: 12.05 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.962e-06/0.6091, allocations: 0 / 445.2 MB, free: 12.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002236/0.6093, allocations: 51.98 kB / 445.2 MB, free: 12 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.008975/0.6183, allocations: 2.626 MB / 447.8 MB, free: 9.465 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.6184, allocations: 8.031 kB / 447.8 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/0.6197, allocations: 292.4 kB / 448.1 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004186/0.6239, allocations: 1.34 MB / 449.5 MB, free: 8.102 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002456/0.6242, allocations: 156.1 kB / 449.6 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007518/0.6249, allocations: 213.4 kB / 449.8 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007101/0.6321, allocations: 1.917 MB / 451.7 MB, free: 6.332 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.943e-05/0.6322, allocations: 0 / 451.7 MB, free: 6.332 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003795/0.6326, allocations: 84 kB / 451.8 MB, free: 6.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.775e-05/0.6327, allocations: 52 kB / 451.9 MB, free: 6.199 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007521/0.6402, allocations: 2.007 MB / 453.9 MB, free: 4.176 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02262/0.6629, allocations: 7.598 MB / 461.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006464/0.6694, allocations: 2.368 MB / 463.9 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002746/0.6697, allocations: 45.91 kB / 463.9 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.665e-05/0.6698, allocations: 56.56 kB / 464 MB, free: 9.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 6.519e-06/0.6698, allocations: 4 kB / 464 MB, free: 9.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=375): time 0.0904/0.7602, allocations: 19.04 MB / 483 MB, free: 6.566 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1361/0.8963, allocations: 34.5 MB / 0.5054 GB, free: 3.371 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004265/0.9006, allocations: 1.631 MB / 0.507 GB, free: 1.738 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006553/0.9013, allocations: 85.7 kB / 0.507 GB, free: 1.648 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.9024, allocations: 0.8873 MB / 0.5079 GB, free: 0.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001893/0.9043, allocations: 1.244 MB / 0.5091 GB, free: 15.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004351/0.9048, allocations: 68 kB / 0.5092 GB, free: 15.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003782/0.9052, allocations: 438.2 kB / 0.5096 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004653/0.9098, allocations: 1.354 MB / 0.5109 GB, free: 13.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005155/0.915, allocations: 1.645 MB / 0.5125 GB, free: 11.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005349/0.9204, allocations: 1.557 MB / 0.5141 GB, free: 10.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.729e-05/0.9205, allocations: 7.781 kB / 0.5141 GB, free: 10.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=437) (initialization): time 0.01804/0.9385, allocations: 4.72 MB / 0.5187 GB, free: 5.586 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.648e-05/0.9386, allocations: 33.7 kB / 0.5187 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/0.9387, allocations: 0 / 0.5187 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00781/0.9465, allocations: 1.387 MB / 0.5201 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004151/0.9507, allocations: 0.5773 MB / 0.5206 GB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2616/1.212, allocations: 19.63 MB / 0.5398 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003389/1.216, allocations: 167.9 kB / 0.5399 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007183/1.217, allocations: 116 kB / 0.5401 GB, free: 106 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.002309/1.219, allocations: 0.5963 MB / 0.5406 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008843/1.22, allocations: 261.9 kB / 0.5409 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/1.236, allocations: 4.795 MB / 0.5456 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02429/1.261, allocations: 4.209 MB / 0.5497 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.023e-05/1.261, allocations: 3.938 kB / 0.5497 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001217/1.261, allocations: 21.56 kB / 0.5497 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05081/1.312, allocations: 9.888 MB / 0.5594 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-05/1.312, allocations: 6.25 kB / 0.5594 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0065/1.318, allocations: 0.4931 MB / 0.5599 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01158/1.33, allocations: 1.411 MB / 0.5612 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006495/1.331, allocations: 76.62 kB / 0.5613 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03009/1.361, allocations: 18.16 MB / 0.579 GB, free: 86.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1042/1.465, allocations: 30.63 MB / 0.6089 GB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01921/1.484, allocations: 6.954 MB / 0.6157 GB, free: 60.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002186/1.486, allocations: 0.6815 MB / 0.6164 GB, free: 59.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007544/1.487, allocations: 75.89 kB / 0.6165 GB, free: 59.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002931/1.49, allocations: 160.8 kB / 0.6166 GB, free: 59.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000955/1.491, allocations: 275.7 kB / 0.6169 GB, free: 59.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004076/1.492, allocations: 103.5 kB / 0.617 GB, free: 59.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002753/1.494, allocations: 1.269 MB / 0.6182 GB, free: 58.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.198e-06/1.494, allocations: 0 / 0.6182 GB, free: 58.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004761/1.499, allocations: 1.073 MB / 0.6193 GB, free: 57.13 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.001382/1.501, allocations: 353.3 kB / 0.6196 GB, free: 56.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0111/1.512, allocations: 4.831 MB / 0.6243 GB, free: 52.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.92e-06/1.512, allocations: 4.062 kB / 0.6243 GB, free: 52.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00762/1.519, allocations: 3.256 MB / 0.6275 GB, free: 49.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002647/1.522, allocations: 312.1 kB / 0.6278 GB, free: 48.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01721/1.539, allocations: 8.292 MB / 0.6359 GB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001994/1.541, allocations: 1.84 MB / 0.6377 GB, free: 39.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001743/1.543, allocations: 203.7 kB / 0.6379 GB, free: 39.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.901e-06/1.543, allocations: 0 / 0.6379 GB, free: 39.67 MB / 410.7 MB Notification: Performance of Templates: time 0.3676/1.911, allocations: 126.5 MB / 0.7614 GB, free: 57.34 MB / 410.7 MB