Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadModel(Modelica): time 1.77/1.77, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003755, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07952/0.07993, allocations: 44.5 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.343/0.4229, allocations: 73.92 MB / 382.4 MB, free: 18.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/0.4234, allocations: 79.75 kB / 382.4 MB, free: 18.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02293/0.4463, allocations: 4.02 MB / 386.5 MB, free: 17.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.949e-06/0.4464, allocations: 5.5 kB / 386.5 MB, free: 17.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.4464, allocations: 3.25 kB / 386.5 MB, free: 17.8 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001069/0.4475, allocations: 0.4999 MB / 387 MB, free: 17.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.4476, allocations: 8.906 kB / 387 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.4477, allocations: 28.72 kB / 387 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.4481, allocations: 242.4 kB / 387.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.4482, allocations: 16.88 kB / 387.3 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.712e-05/0.4483, allocations: 19.31 kB / 387.3 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00077/0.4491, allocations: 218.5 kB / 387.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.4491, allocations: 5.094 kB / 387.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.877e-05/0.4492, allocations: 9.047 kB / 387.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.4492, allocations: 6.188 kB / 387.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007058/0.4499, allocations: 162.2 kB / 387.7 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.4523, allocations: 0.8423 MB / 388.5 MB, free: 16.6 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.453, allocations: 148.7 kB / 388.7 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.4531, allocations: 7.344 kB / 388.7 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.4531, allocations: 38.45 kB / 388.7 MB, free: 16.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 4.841e-06/0.4531, allocations: 5.875 kB / 388.7 MB, free: 16.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.00234/0.4555, allocations: 422.9 kB / 389.1 MB, free: 16.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.4556, allocations: 54.38 kB / 389.2 MB, free: 16.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.4558, allocations: 157 kB / 389.3 MB, free: 16.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.4559, allocations: 32.33 kB / 389.4 MB, free: 16.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.456, allocations: 206.8 kB / 389.6 MB, free: 16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.621e-05/0.4561, allocations: 66.44 kB / 389.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.161e-05/0.4562, allocations: 5.344 kB / 389.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.225e-05/0.4562, allocations: 322.8 kB / 389.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.4565, allocations: 51.97 kB / 390 MB, free: 15.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/0.4568, allocations: 82.94 kB / 390.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.4572, allocations: 65.12 kB / 390.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.285e-06/0.4572, allocations: 0 / 390.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009953/0.4582, allocations: 232.4 kB / 390.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.4582, allocations: 7.656 kB / 390.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.933e-06/0.4583, allocations: 4.062 kB / 390.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002266/0.4606, allocations: 210.9 kB / 390.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003001/0.4609, allocations: 33.09 kB / 390.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007462/0.4617, allocations: 0.6234 MB / 391.2 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/0.462, allocations: 13.42 kB / 391.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.462, allocations: 11.34 kB / 391.3 MB, free: 15 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (15): * Single equations (assignments): 14 * 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.0002127/0.4623, allocations: 129.3 kB / 391.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-05/0.4624, allocations: 25.19 kB / 391.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009196/0.4633, allocations: 240 kB / 391.6 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.436e-06/0.4634, allocations: 3.875 kB / 391.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.888e-06/0.4634, allocations: 0 / 391.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.54e-06/0.4634, allocations: 1.922 kB / 391.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005817/0.464, allocations: 284 kB / 391.9 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.522e-06/0.4641, allocations: 0 / 391.9 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.4644, allocations: 32.59 kB / 392 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00208/0.4665, allocations: 225.7 kB / 392.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.4666, allocations: 7.641 kB / 392.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007298/0.4673, allocations: 0.6223 MB / 392.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.4674, allocations: 0 / 392.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.4685, allocations: 395.4 kB / 393.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.4687, allocations: 106.1 kB / 393.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.292e-05/0.4688, allocations: 5.453 kB / 393.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.4691, allocations: 17.33 kB / 393.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.331e-05/0.4692, allocations: 11.91 kB / 393.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.4693, allocations: 3.969 kB / 393.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001684/0.4694, allocations: 135.9 kB / 393.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.98e-07/0.4695, allocations: 0 / 393.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000792/0.4703, allocations: 57.5 kB / 393.5 MB, free: 13.7 MB / 314.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.0002132/0.4705, allocations: 123.4 kB / 393.7 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006887/0.4712, allocations: 163.2 kB / 393.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.901e-06/0.4712, allocations: 0 / 393.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.4716, allocations: 88.23 kB / 393.9 MB, free: 13.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004855/0.4721, allocations: 33.45 kB / 393.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.4737, allocations: 0.7054 MB / 394.6 MB, free: 13.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.474, allocations: 0.7448 MB / 395.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.721e-05/0.4741, allocations: 15.19 kB / 395.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.955e-06/0.4741, allocations: 0 / 395.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of Templates: time 0.007526/0.4817, allocations: 3.033 MB / 398.4 MB, free: 12.24 MB / 314.7 MB