Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadModel(Modelica): time 1.563/1.563, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005717/0.0005719, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1059, allocations: 38.78 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3086/0.4146, allocations: 68.7 MB / 340.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.4148, allocations: 69.47 kB / 340.8 MB, free: 5.094 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01642/0.4313, allocations: 4.017 MB / 344.8 MB, free: 1.668 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.637e-06/0.4313, allocations: 0 / 344.8 MB, free: 1.668 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.82e-05/0.4314, allocations: 4 kB / 344.8 MB, free: 1.664 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008859/0.4323, allocations: 0.5073 MB / 345.3 MB, free: 1.121 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.4323, allocations: 8.031 kB / 345.3 MB, free: 1.113 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.4324, allocations: 27.72 kB / 345.3 MB, free: 1.086 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.4327, allocations: 229.2 kB / 345.6 MB, free: 0.832 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.4328, allocations: 22.95 kB / 345.6 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.4329, allocations: 22.62 kB / 345.6 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005369/0.4334, allocations: 225.8 kB / 345.8 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.4334, allocations: 3.938 kB / 345.8 MB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.4335, allocations: 13.98 kB / 345.8 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.4335, allocations: 4 kB / 345.9 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.434, allocations: 171.2 kB / 346 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.4357, allocations: 0.8525 MB / 346.9 MB, free: 15.72 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003901/0.4361, allocations: 160 kB / 347 MB, free: 15.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.4362, allocations: 0 / 347 MB, free: 15.6 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.4362, allocations: 30.56 kB / 347.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.181e-06/0.4362, allocations: 4 kB / 347.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.001558/0.4378, allocations: 430.6 kB / 347.5 MB, free: 15.17 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.4379, allocations: 51.41 kB / 347.5 MB, free: 15.11 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.4381, allocations: 166.4 kB / 347.7 MB, free: 14.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.4381, allocations: 29.7 kB / 347.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.4383, allocations: 223.5 kB / 347.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.538e-05/0.4384, allocations: 60.8 kB / 348 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.225e-05/0.4384, allocations: 3.5 kB / 348 MB, free: 14.67 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.4386, allocations: 328.1 kB / 348.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.4388, allocations: 53.53 kB / 348.4 MB, free: 14.31 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.439, allocations: 93.78 kB / 348.5 MB, free: 14.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.4392, allocations: 75.16 kB / 348.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4392, allocations: 0 / 348.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006723/0.4399, allocations: 242.7 kB / 348.8 MB, free: 14 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.4399, allocations: 4 kB / 348.8 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.756e-06/0.4399, allocations: 8.125 kB / 348.8 MB, free: 13.99 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.4414, allocations: 211.4 kB / 349 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.4417, allocations: 47.47 kB / 349 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006692/0.4424, allocations: 0.6102 MB / 349.7 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.4426, allocations: 23 kB / 349.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.4426, allocations: 4 kB / 349.7 MB, free: 13.12 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001846/0.4428, allocations: 131.8 kB / 349.8 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.007e-05/0.4429, allocations: 23.8 kB / 349.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000621/0.4435, allocations: 233.7 kB / 350.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.4435, allocations: 7.891 kB / 350.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4436, allocations: 7.938 kB / 350.1 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.102e-06/0.4436, allocations: 3.984 kB / 350.1 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.444, allocations: 287.7 kB / 350.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.27e-06/0.4441, allocations: 0 / 350.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.4443, allocations: 27.98 kB / 350.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/0.4457, allocations: 227 kB / 350.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.4457, allocations: 0 / 350.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006741/0.4464, allocations: 0.6294 MB / 351.2 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.409e-06/0.4464, allocations: 0 / 351.2 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000795/0.4472, allocations: 384.3 kB / 351.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.4474, allocations: 112.2 kB / 351.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.4475, allocations: 7.438 kB / 351.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.4477, allocations: 15.42 kB / 351.7 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.4477, allocations: 11.98 kB / 351.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.4478, allocations: 4 kB / 351.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001697/0.4479, allocations: 131 kB / 351.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.448, allocations: 0 / 351.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004608/0.4484, allocations: 70.08 kB / 352 MB, free: 11.01 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001986/0.4486, allocations: 118.5 kB / 352.1 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005554/0.4492, allocations: 167.5 kB / 352.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.411e-06/0.4492, allocations: 0 / 352.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002647/0.4495, allocations: 83.95 kB / 352.3 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.4499, allocations: 30.02 kB / 352.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.4512, allocations: 0.7146 MB / 353.1 MB, free: 9.973 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.4517, allocations: 0.7556 MB / 353.8 MB, free: 9.191 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.607e-05/0.4518, allocations: 15.44 kB / 353.8 MB, free: 9.176 MB / 282.7 MB Notification: Performance of SimCode: time 1.419e-06/0.4518, allocations: 0 / 353.8 MB, free: 9.176 MB / 282.7 MB Notification: Performance of Templates: time 0.006443/0.4582, allocations: 3.103 MB / 356.9 MB, free: 6.098 MB / 282.7 MB