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: 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.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 1.683/1.683, allocations: 171.2 MB / 187.3 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003419, allocations: 16 kB / 233.8 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08543/0.08579, allocations: 38.76 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3926/0.4785, allocations: 82.96 MB / 355.5 MB, free: 7.133 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004138/0.4789, allocations: 95.2 kB / 355.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1989/0.6779, allocations: 44.18 MB / 399.8 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.6779, allocations: 0 / 399.8 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002629/0.6782, allocations: 47.98 kB / 399.8 MB, free: 0.7695 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.01102/0.6892, allocations: 2.606 MB / 402.4 MB, free: 14.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.6893, allocations: 12.03 kB / 402.4 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001282/0.6906, allocations: 288.5 kB / 402.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004138/0.6947, allocations: 1.278 MB / 404 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/0.695, allocations: 152 kB / 404.2 MB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000756/0.6958, allocations: 199.9 kB / 404.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007645/0.7035, allocations: 1.868 MB / 406.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.7036, allocations: 8 kB / 406.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003619/0.704, allocations: 84 kB / 406.3 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.771e-05/0.7041, allocations: 51.95 kB / 406.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008831/0.7129, allocations: 1.948 MB / 408.3 MB, free: 8.082 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02503/0.738, allocations: 7.445 MB / 415.8 MB, free: 368 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006989/0.745, allocations: 2.272 MB / 418 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004159/0.7455, allocations: 119 kB / 418.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.998e-05/0.7456, allocations: 60.56 kB / 418.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 6.042e-06/0.7456, allocations: 0 / 418.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=350): time 0.4036/1.149, allocations: 17.5 MB / 435.7 MB, free: 86.31 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3056/1.455, allocations: 36.58 MB / 472.3 MB, free: 74.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004227/1.459, allocations: 1.824 MB / 474.1 MB, free: 73.35 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008357/1.46, allocations: 82.8 kB / 474.2 MB, free: 73.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008469/1.461, allocations: 0.8904 MB / 475.1 MB, free: 72.6 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001833/1.463, allocations: 1.159 MB / 476.2 MB, free: 71.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004234/1.463, allocations: 60.47 kB / 476.3 MB, free: 71.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002315/1.463, allocations: 430.4 kB / 476.7 MB, free: 71.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004678/1.468, allocations: 1.366 MB / 478.1 MB, free: 70.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005339/1.474, allocations: 1.651 MB / 479.7 MB, free: 70.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005654/1.479, allocations: 1.568 MB / 481.3 MB, free: 69.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.041e-05/1.479, allocations: 2.406 kB / 481.3 MB, free: 69.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01436/1.494, allocations: 4.177 MB / 485.5 MB, free: 67.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.057e-05/1.494, allocations: 33.45 kB / 485.5 MB, free: 67.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/1.494, allocations: 3.156 kB / 485.5 MB, free: 67.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01997/1.514, allocations: 1.555 MB / 487.1 MB, free: 67.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006281/1.52, allocations: 0.5907 MB / 487.6 MB, free: 67.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/1.531, allocations: 9.902 MB / 497.5 MB, free: 58.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005392/1.537, allocations: 165.7 kB / 497.7 MB, free: 58.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008576/1.538, allocations: 135.1 kB / 497.8 MB, free: 58.08 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.002937/1.541, allocations: 0.5821 MB / 498.4 MB, free: 57.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/1.542, allocations: 252.9 kB / 498.7 MB, free: 57.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/1.556, allocations: 4.258 MB / 0.4911 GB, free: 53.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01299/1.569, allocations: 3.688 MB / 0.4947 GB, free: 50.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/1.57, allocations: 4 kB / 0.4947 GB, free: 50.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.513e-05/1.57, allocations: 14.81 kB / 0.4948 GB, free: 50.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02833/1.598, allocations: 9.377 MB / 0.5039 GB, free: 42.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.591e-05/1.598, allocations: 6.062 kB / 0.5039 GB, free: 42.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00551/1.604, allocations: 0.5027 MB / 0.5044 GB, free: 41.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01961/1.623, allocations: 1.597 MB / 0.506 GB, free: 40.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007458/1.624, allocations: 91.91 kB / 0.5061 GB, free: 40.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/1.635, allocations: 9.946 MB / 0.5158 GB, free: 29.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2792/1.914, allocations: 32.54 MB / 0.5476 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02206/1.936, allocations: 6.219 MB / 0.5536 GB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002866/1.939, allocations: 0.7046 MB / 0.5543 GB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/1.94, allocations: 64.09 kB / 0.5544 GB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0045/1.945, allocations: 163.8 kB / 0.5545 GB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009212/1.946, allocations: 222.3 kB / 0.5547 GB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004956/1.946, allocations: 115.9 kB / 0.5549 GB, free: 5.027 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00331/1.95, allocations: 1.27 MB / 0.5561 GB, free: 3.766 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.95, allocations: 0 / 0.5561 GB, free: 3.766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005052/1.955, allocations: 0.8507 MB / 0.5569 GB, free: 2.918 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.001557/1.956, allocations: 332.6 kB / 0.5572 GB, free: 2.656 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.2505/2.207, allocations: 4.187 MB / 0.5613 GB, free: 93.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/2.207, allocations: 4.875 kB / 0.5613 GB, free: 93.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009141/2.216, allocations: 2.61 MB / 0.5639 GB, free: 93.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003228/2.219, allocations: 305 kB / 0.5642 GB, free: 93.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02236/2.242, allocations: 8.091 MB / 0.5721 GB, free: 90.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002759/2.245, allocations: 1.749 MB / 0.5738 GB, free: 89.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002597/2.247, allocations: 246.3 kB / 0.574 GB, free: 89.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.432e-06/2.247, allocations: 3.75 kB / 0.574 GB, free: 89.4 MB / 362.7 MB Notification: Performance of Templates: time 0.4413/2.689, allocations: 123.1 MB / 0.6942 GB, free: 93.24 MB / 362.7 MB