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.661/1.661, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003537, allocations: 4 kB / 233.2 MB, free: 3 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07291/0.07328, allocations: 38.77 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3096/0.3829, allocations: 82.97 MB / 355 MB, free: 7.086 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.3832, allocations: 89.12 kB / 355.1 MB, free: 7.035 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1845/0.5677, allocations: 44.17 MB / 399.2 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.281e-06/0.5678, allocations: 0 / 399.2 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003015/0.5681, allocations: 48 kB / 399.3 MB, free: 0.6719 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.01333/0.5815, allocations: 2.618 MB / 401.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/0.5815, allocations: 11.97 kB / 401.9 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.5834, allocations: 292.5 kB / 402.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006261/0.5897, allocations: 1.266 MB / 403.5 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000364/0.5901, allocations: 152 kB / 403.6 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009701/0.5911, allocations: 203.9 kB / 403.8 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01061/0.6017, allocations: 1.86 MB / 405.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.6019, allocations: 0 / 405.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006454/0.6026, allocations: 80 kB / 405.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.844e-05/0.6027, allocations: 55.95 kB / 405.8 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.6143, allocations: 1.948 MB / 407.8 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04247/0.6568, allocations: 7.449 MB / 415.2 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01162/0.6685, allocations: 2.272 MB / 417.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005427/0.6691, allocations: 123.1 kB / 417.6 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001039/0.6692, allocations: 56.56 kB / 417.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 1.166e-05/0.6693, allocations: 0 / 417.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=350): time 0.3052/0.9745, allocations: 17.5 MB / 435.2 MB, free: 86.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1878/1.162, allocations: 36.57 MB / 471.7 MB, free: 73.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003619/1.166, allocations: 1.628 MB / 473.4 MB, free: 73.19 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006262/1.167, allocations: 85.39 kB / 473.4 MB, free: 73.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007703/1.167, allocations: 0.8855 MB / 474.3 MB, free: 72.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001372/1.169, allocations: 1.16 MB / 475.5 MB, free: 71.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003324/1.169, allocations: 62.34 kB / 475.5 MB, free: 71.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000215/1.169, allocations: 436 kB / 476 MB, free: 71.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004181/1.174, allocations: 1.362 MB / 477.3 MB, free: 70.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00485/1.178, allocations: 1.635 MB / 479 MB, free: 69.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004736/1.183, allocations: 1.565 MB / 480.5 MB, free: 69.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.32e-05/1.183, allocations: 13.38 kB / 480.5 MB, free: 69.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01234/1.196, allocations: 4.174 MB / 484.7 MB, free: 67.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.993e-05/1.196, allocations: 37.45 kB / 484.8 MB, free: 67.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/1.196, allocations: 3.531 kB / 484.8 MB, free: 67.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01234/1.208, allocations: 1.559 MB / 486.3 MB, free: 66.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004367/1.213, allocations: 0.5885 MB / 486.9 MB, free: 66.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/1.223, allocations: 9.893 MB / 496.8 MB, free: 58.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003794/1.227, allocations: 164.5 kB / 497 MB, free: 58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007558/1.227, allocations: 130.4 kB / 497.1 MB, free: 57.98 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.002422/1.23, allocations: 0.5812 MB / 497.7 MB, free: 57.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008084/1.231, allocations: 252.9 kB / 497.9 MB, free: 57.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/1.243, allocations: 4.267 MB / 0.4904 GB, free: 53.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01018/1.253, allocations: 3.684 MB / 0.494 GB, free: 50.1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/1.253, allocations: 4 kB / 0.494 GB, free: 50.1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-05/1.253, allocations: 18 kB / 0.494 GB, free: 50.1 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02411/1.277, allocations: 9.373 MB / 0.5032 GB, free: 42.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-05/1.277, allocations: 11.78 kB / 0.5032 GB, free: 42.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003758/1.281, allocations: 0.502 MB / 0.5037 GB, free: 41.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01257/1.294, allocations: 1.596 MB / 0.5052 GB, free: 40.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006186/1.295, allocations: 87.91 kB / 0.5053 GB, free: 40.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01659/1.311, allocations: 9.951 MB / 0.515 GB, free: 29.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1562/1.467, allocations: 32.54 MB / 0.5468 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01874/1.486, allocations: 6.452 MB / 0.5531 GB, free: 6.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002512/1.489, allocations: 0.6968 MB / 0.5538 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008571/1.49, allocations: 71.98 kB / 0.5539 GB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003115/1.493, allocations: 151.9 kB / 0.554 GB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007788/1.494, allocations: 230.3 kB / 0.5542 GB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003813/1.494, allocations: 111.9 kB / 0.5543 GB, free: 4.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003088/1.497, allocations: 1.274 MB / 0.5556 GB, free: 3.469 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.14e-07/1.497, allocations: 0 / 0.5556 GB, free: 3.469 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004499/1.502, allocations: 0.8564 MB / 0.5564 GB, free: 2.621 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.001436/1.503, allocations: 322.3 kB / 0.5567 GB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.3385/1.842, allocations: 4.19 MB / 0.5608 GB, free: 94.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.196e-06/1.842, allocations: 0.9062 kB / 0.5608 GB, free: 94.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007247/1.849, allocations: 2.619 MB / 0.5634 GB, free: 94.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/1.851, allocations: 301.7 kB / 0.5637 GB, free: 94.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/1.87, allocations: 8.073 MB / 0.5716 GB, free: 90.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002502/1.872, allocations: 1.755 MB / 0.5733 GB, free: 90.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/1.874, allocations: 248.2 kB / 0.5735 GB, free: 90.05 MB / 362.7 MB Notification: Performance of SimCode: time 1.686e-06/1.874, allocations: 3.281 kB / 0.5735 GB, free: 90.05 MB / 362.7 MB Notification: Performance of Templates: time 0.3626/2.237, allocations: 123.1 MB / 0.6937 GB, free: 92.52 MB / 362.7 MB