Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.995/1.995, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003482/0.0003482, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09335/0.09373, allocations: 44.51 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3893/0.4831, allocations: 73.91 MB / 382.9 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003945/0.4835, allocations: 74.73 kB / 383 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02107/0.5046, allocations: 4.023 MB / 387 MB, free: 14.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5047, allocations: 0 / 387 MB, free: 14.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.5047, allocations: 7.531 kB / 387 MB, free: 14.23 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.0009236/0.5057, allocations: 0.5031 MB / 387.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.5057, allocations: 10.41 kB / 387.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.034e-05/0.5058, allocations: 25 kB / 387.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.5061, allocations: 248.5 kB / 387.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.5062, allocations: 12.22 kB / 387.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.838e-05/0.5062, allocations: 20.91 kB / 387.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005893/0.5068, allocations: 226.3 kB / 388 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.5069, allocations: 0 / 388 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.5069, allocations: 9.875 kB / 388 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.5069, allocations: 5.344 kB / 388 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004944/0.5074, allocations: 161.5 kB / 388.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.5092, allocations: 0.8434 MB / 389 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004308/0.5097, allocations: 152.5 kB / 389.2 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.5098, allocations: 1.281 kB / 389.2 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.5098, allocations: 39.83 kB / 389.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.294e-06/0.5098, allocations: 3.938 kB / 389.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.002335/0.5121, allocations: 426.3 kB / 389.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.5122, allocations: 52.78 kB / 389.7 MB, free: 12.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.5125, allocations: 178 kB / 389.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.5126, allocations: 30.42 kB / 389.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.5127, allocations: 206.7 kB / 390.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.508e-05/0.5128, allocations: 66.23 kB / 390.2 MB, free: 12.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.866e-05/0.5128, allocations: 7.906 kB / 390.2 MB, free: 12.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.143e-05/0.5129, allocations: 320.2 kB / 390.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002434/0.5132, allocations: 56.91 kB / 390.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.5134, allocations: 80.45 kB / 390.6 MB, free: 12.03 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.5137, allocations: 67.78 kB / 390.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.5138, allocations: 3.938 kB / 390.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009418/0.5147, allocations: 222.8 kB / 390.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.5148, allocations: 3.875 kB / 390.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.5148, allocations: 0 / 390.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002838/0.5176, allocations: 218.3 kB / 391.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.518, allocations: 42.94 kB / 391.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000749/0.5188, allocations: 0.6086 MB / 391.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.5192, allocations: 20.25 kB / 391.8 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.5192, allocations: 5.266 kB / 391.8 MB, free: 11.42 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.0002303/0.5194, allocations: 130 kB / 391.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.874e-05/0.5196, allocations: 25.12 kB / 392 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009624/0.5205, allocations: 238.7 kB / 392.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.5206, allocations: 3.906 kB / 392.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5206, allocations: 0 / 392.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.5206, allocations: 1.5 kB / 392.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006164/0.5212, allocations: 288.7 kB / 392.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.5213, allocations: 0 / 392.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003682/0.5216, allocations: 29.23 kB / 392.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002614/0.5243, allocations: 224.3 kB / 392.7 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.5243, allocations: 3.938 kB / 392.7 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006718/0.525, allocations: 0.6186 MB / 393.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.525, allocations: 4 kB / 393.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.5261, allocations: 394 kB / 393.7 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.5263, allocations: 114 kB / 393.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.015e-05/0.5264, allocations: 7.438 kB / 393.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003418/0.5267, allocations: 11.41 kB / 393.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.5268, allocations: 14.11 kB / 393.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.5268, allocations: 7.875 kB / 393.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001711/0.527, allocations: 134.9 kB / 394 MB, free: 10.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.527, allocations: 96 / 394 MB, free: 10.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006628/0.5277, allocations: 65.17 kB / 394.1 MB, free: 10.12 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.0002224/0.528, allocations: 122 kB / 394.2 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007409/0.5287, allocations: 160.5 kB / 394.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5287, allocations: 0 / 394.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003798/0.5291, allocations: 90.33 kB / 394.4 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.5297, allocations: 29.58 kB / 394.5 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.5314, allocations: 0.7066 MB / 395.2 MB, free: 9.566 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.5317, allocations: 0.7445 MB / 395.9 MB, free: 8.867 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.786e-05/0.5318, allocations: 18.78 kB / 395.9 MB, free: 8.859 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5318, allocations: 0 / 395.9 MB, free: 8.859 MB / 314.7 MB Notification: Performance of Templates: time 0.008573/0.5404, allocations: 3.031 MB / 399 MB, free: 8.672 MB / 314.7 MB