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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.694/1.694, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.38e-05/2.382e-05, allocations: 11.92 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06693/0.06697, allocations: 38.77 MB / 261.3 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2754/0.3424, allocations: 67.95 MB / 329.2 MB, free: 4.281 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.3427, allocations: 70.47 kB / 329.3 MB, free: 4.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01589/0.3586, allocations: 3.966 MB / 333.3 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.506e-06/0.3587, allocations: 4 kB / 333.3 MB, free: 0.918 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.3587, allocations: 4 kB / 333.3 MB, free: 0.9141 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.0008/0.3595, allocations: 489.5 kB / 333.8 MB, free: 412 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3596, allocations: 16.03 kB / 333.8 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.3596, allocations: 23.72 kB / 333.8 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003457/0.36, allocations: 235.6 kB / 334 MB, free: 108 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.36, allocations: 11.94 kB / 334 MB, free: 96 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.3601, allocations: 15.95 kB / 334 MB, free: 80 kB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003535/0.3605, allocations: 127.9 kB / 334.2 MB, free: 0 / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.361, allocations: 187.3 kB / 334.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.361, allocations: 0 / 334.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.361, allocations: 0 / 334.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.3611, allocations: 12 kB / 334.4 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3627, allocations: 0.8065 MB / 335.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.3631, allocations: 137.8 kB / 335.3 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.3633, allocations: 87.5 kB / 335.4 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.3634, allocations: 3.984 kB / 335.4 MB, free: 14.94 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.3634, allocations: 37.19 kB / 335.4 MB, free: 14.9 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.512e-06/0.3634, allocations: 0 / 335.4 MB, free: 14.9 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008017/0.3642, allocations: 212.7 kB / 335.6 MB, free: 14.72 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.3643, allocations: 51.41 kB / 335.7 MB, free: 14.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.3645, allocations: 156.2 kB / 335.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.3646, allocations: 29.69 kB / 335.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.3647, allocations: 212.8 kB / 336.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.71e-05/0.3648, allocations: 58.81 kB / 336.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.3648, allocations: 7.938 kB / 336.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.365, allocations: 314 kB / 336.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.3651, allocations: 46.42 kB / 336.5 MB, free: 13.89 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.3653, allocations: 73.36 kB / 336.6 MB, free: 13.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.3655, allocations: 76.41 kB / 336.6 MB, free: 13.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.248e-06/0.3656, allocations: 0 / 336.6 MB, free: 13.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006692/0.3662, allocations: 218.3 kB / 336.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3663, allocations: 8 kB / 336.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.428e-06/0.3663, allocations: 0 / 336.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006684/0.367, allocations: 103.4 kB / 337 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.3672, allocations: 43.91 kB / 337 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007816/0.368, allocations: 0.6266 MB / 337.6 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.3682, allocations: 15.88 kB / 337.7 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.3683, allocations: 15.55 kB / 337.7 MB, free: 12.81 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 () * 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.0001226/0.3684, allocations: 112.9 kB / 337.8 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.288e-05/0.3685, allocations: 15.81 kB / 337.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006381/0.3691, allocations: 211.8 kB / 338 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.798e-06/0.3692, allocations: 3.938 kB / 338 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.3692, allocations: 0 / 338 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.6e-06/0.3692, allocations: 7.953 kB / 338 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.3704, allocations: 0.543 MB / 338.6 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.5e-06/0.3705, allocations: 3.938 kB / 338.6 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002118/0.3707, allocations: 27.98 kB / 338.6 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006322/0.3713, allocations: 120.2 kB / 338.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.3714, allocations: 0 / 338.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007919/0.3722, allocations: 0.6359 MB / 339.3 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.722e-06/0.3722, allocations: 80 / 339.3 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008895/0.3731, allocations: 398.7 kB / 339.7 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.3733, allocations: 100.3 kB / 339.8 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/0.3733, allocations: 7.984 kB / 339.8 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.3735, allocations: 8.062 kB / 339.8 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.3736, allocations: 18.62 kB / 339.9 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.3736, allocations: 4 kB / 339.9 MB, free: 10.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000141/0.3738, allocations: 124.3 kB / 340 MB, free: 10.64 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.3738, allocations: 0 / 340 MB, free: 10.64 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004541/0.3743, allocations: 58.59 kB / 340 MB, free: 10.59 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete 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.0002083/0.3745, allocations: 123.1 kB / 340.2 MB, free: 10.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004204/0.3749, allocations: 133.9 kB / 340.3 MB, free: 10.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.142e-06/0.375, allocations: 0 / 340.3 MB, free: 10.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.3752, allocations: 74.05 kB / 340.4 MB, free: 10.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.3755, allocations: 31.52 kB / 340.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009536/0.3765, allocations: 401.7 kB / 340.8 MB, free: 9.887 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.377, allocations: 0.7441 MB / 341.5 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.377, allocations: 19.42 kB / 341.6 MB, free: 9.102 MB / 282.7 MB Notification: Performance of SimCode: time 1.445e-06/0.377, allocations: 0 / 341.6 MB, free: 9.102 MB / 282.7 MB Notification: Performance of Templates: time 0.006389/0.3834, allocations: 3.049 MB / 344.6 MB, free: 6.078 MB / 282.7 MB