Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.662/1.662, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.703e-05/3.735e-05, allocations: 0 / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2113, allocations: 38.78 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.3368, allocations: 82.89 MB / 350.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.3371, allocations: 83.95 kB / 350.6 MB, free: 6.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.342/0.6791, allocations: 44.16 MB / 394.7 MB, free: 52.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.291e-06/0.6792, allocations: 4 kB / 394.7 MB, free: 52.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000161/0.6794, allocations: 52 kB / 394.8 MB, free: 52.21 MB / 298.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.006323/0.6857, allocations: 2.304 MB / 397.1 MB, free: 49.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.6858, allocations: 12.03 kB / 397.1 MB, free: 49.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009627/0.6867, allocations: 292.5 kB / 397.4 MB, free: 49.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003224/0.69, allocations: 1.259 MB / 398.6 MB, free: 48.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.6902, allocations: 156 kB / 398.8 MB, free: 48.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005753/0.6908, allocations: 203.9 kB / 399 MB, free: 47.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004839/0.6956, allocations: 1.72 MB / 400.7 MB, free: 46.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.373e-05/0.6958, allocations: 4 kB / 400.7 MB, free: 46.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003596/0.6961, allocations: 87.92 kB / 400.8 MB, free: 46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.879e-05/0.6962, allocations: 48 kB / 400.9 MB, free: 45.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005099/0.7013, allocations: 1.715 MB / 402.6 MB, free: 44.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.7191, allocations: 7.449 MB / 410 MB, free: 36.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005655/0.7248, allocations: 2.15 MB / 412.2 MB, free: 34.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006502/0.7314, allocations: 1.249 MB / 413.4 MB, free: 33.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004731/0.732, allocations: 123.1 kB / 413.5 MB, free: 32.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.753e-05/0.7321, allocations: 56.56 kB / 413.6 MB, free: 32.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=226): time 1.486e-05/0.7321, allocations: 3.984 kB / 413.6 MB, free: 32.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=347): time 0.1056/0.8378, allocations: 15.06 MB / 428.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1225/0.9603, allocations: 33.2 MB / 461.9 MB, free: 15.83 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003746/0.9641, allocations: 1.612 MB / 463.5 MB, free: 14.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005539/0.9646, allocations: 81.7 kB / 463.5 MB, free: 14.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008942/0.9656, allocations: 0.8869 MB / 464.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001504/0.9671, allocations: 1.143 MB / 465.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003388/0.9674, allocations: 68 kB / 465.6 MB, free: 12.01 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003236/0.9678, allocations: 433.6 kB / 466.1 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003949/0.9717, allocations: 1.311 MB / 467.4 MB, free: 10.26 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004686/0.9765, allocations: 1.584 MB / 469 MB, free: 8.629 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004672/0.9812, allocations: 1.513 MB / 470.5 MB, free: 7.098 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.848e-05/0.9812, allocations: 0 / 470.5 MB, free: 7.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01236/0.9936, allocations: 4.049 MB / 474.5 MB, free: 2.996 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.6e-05/0.9937, allocations: 34.8 kB / 474.6 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.9937, allocations: 4 kB / 474.6 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/1.006, allocations: 1.532 MB / 476.1 MB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004635/1.011, allocations: 0.5928 MB / 476.7 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/1.024, allocations: 9.863 MB / 486.5 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003611/1.028, allocations: 163.9 kB / 486.7 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007455/1.029, allocations: 131.9 kB / 486.8 MB, free: 5.93 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (301): * Single equations (assignments): 291 * 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%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 45,2 38} Notification: Performance of prepare postOptimizeDAE: time 0.0008107/1.029, allocations: 264.5 kB / 487.1 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008153/1.03, allocations: 252.9 kB / 487.3 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/1.043, allocations: 4.189 MB / 491.5 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2081/1.251, allocations: 3.578 MB / 495.1 MB, free: 92.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/1.251, allocations: 4.969 kB / 495.1 MB, free: 92.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.18e-05/1.251, allocations: 17.72 kB / 495.1 MB, free: 92.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02286/1.274, allocations: 9.491 MB / 0.4928 GB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.201e-05/1.274, allocations: 3.969 kB / 0.4928 GB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004154/1.278, allocations: 0.5158 MB / 0.4933 GB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01253/1.291, allocations: 1.57 MB / 0.4948 GB, free: 91.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006504/1.291, allocations: 102 kB / 0.4949 GB, free: 91.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009848/1.301, allocations: 9.881 MB / 0.5046 GB, free: 84.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09976/1.401, allocations: 28.81 MB / 0.5327 GB, free: 66.72 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/1.416, allocations: 6.307 MB / 0.5389 GB, free: 60.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/1.418, allocations: 0.727 MB / 0.5396 GB, free: 59.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009262/1.419, allocations: 63.66 kB / 0.5396 GB, free: 59.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003257/1.422, allocations: 157.9 kB / 0.5398 GB, free: 59.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008402/1.423, allocations: 234.8 kB / 0.54 GB, free: 59.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004957/1.424, allocations: 118.7 kB / 0.5401 GB, free: 59.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002597/1.426, allocations: 1.252 MB / 0.5414 GB, free: 58.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.014e-06/1.427, allocations: 3.844 kB / 0.5414 GB, free: 58.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004436/1.431, allocations: 0.861 MB / 0.5422 GB, free: 57.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 235 * 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%) 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.001344/1.432, allocations: 327.6 kB / 0.5425 GB, free: 57.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009751/1.442, allocations: 4.093 MB / 0.5465 GB, free: 53.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.466e-06/1.442, allocations: 0 / 0.5465 GB, free: 53.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006066/1.448, allocations: 2.57 MB / 0.549 GB, free: 50.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/1.451, allocations: 299 kB / 0.5493 GB, free: 50.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/1.466, allocations: 6.002 MB / 0.5552 GB, free: 45.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001689/1.467, allocations: 1.752 MB / 0.5569 GB, free: 43.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002015/1.47, allocations: 259.8 kB / 0.5571 GB, free: 43.57 MB / 346.7 MB Notification: Performance of SimCode: time 2.488e-06/1.47, allocations: 0 / 0.5571 GB, free: 43.57 MB / 346.7 MB Notification: Performance of Templates: time 0.3438/1.813, allocations: 124.7 MB / 0.6789 GB, free: 65.88 MB / 362.7 MB