Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadModel(Modelica): time 0.972/0.972, allocations: 111.1 MB / 126.7 MB, free: 6.121 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002597, allocations: 7.938 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0449/0.04518, allocations: 25.18 MB / 183.5 MB, free: 5.969 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1779/0.2231, allocations: 36.22 MB / 219.7 MB, free: 6.098 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/0.2234, allocations: 67.77 kB / 219.8 MB, free: 6.086 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01391/0.2373, allocations: 3.875 MB / 223.7 MB, free: 4.555 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.371e-06/0.2373, allocations: 4 kB / 223.7 MB, free: 4.551 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.2373, allocations: 3.812 kB / 223.7 MB, free: 4.551 MB / 170.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.0006591/0.238, allocations: 0.4971 MB / 224.2 MB, free: 4.102 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.2381, allocations: 7.469 kB / 224.2 MB, free: 4.102 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.682e-05/0.2381, allocations: 34.77 kB / 224.2 MB, free: 4.082 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.2384, allocations: 226.9 kB / 224.4 MB, free: 3.852 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.2384, allocations: 14.88 kB / 224.5 MB, free: 3.852 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.739e-05/0.2385, allocations: 21.09 kB / 224.5 MB, free: 3.852 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004441/0.2389, allocations: 230 kB / 224.7 MB, free: 3.762 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.239, allocations: 3.906 kB / 224.7 MB, free: 3.758 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.239, allocations: 14.77 kB / 224.7 MB, free: 3.754 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.491e-06/0.239, allocations: 3.844 kB / 224.7 MB, free: 3.754 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003966/0.2394, allocations: 161.1 kB / 224.9 MB, free: 3.73 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.2409, allocations: 0.8565 MB / 225.7 MB, free: 3.145 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.2412, allocations: 153.9 kB / 225.9 MB, free: 3.102 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.2413, allocations: 3.688 kB / 225.9 MB, free: 3.102 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.2413, allocations: 41.55 kB / 225.9 MB, free: 3.055 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 2.975e-06/0.2413, allocations: 4 kB / 225.9 MB, free: 3.051 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.001443/0.2428, allocations: 428.3 kB / 226.3 MB, free: 2.84 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.232e-05/0.2428, allocations: 51.41 kB / 226.4 MB, free: 2.777 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.243, allocations: 161.9 kB / 226.6 MB, free: 2.672 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.243, allocations: 25.7 kB / 226.6 MB, free: 2.641 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.541e-05/0.2431, allocations: 224.8 kB / 226.8 MB, free: 2.449 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-05/0.2432, allocations: 58.36 kB / 226.9 MB, free: 2.402 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.2432, allocations: 7.094 kB / 226.9 MB, free: 2.402 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.265e-05/0.2433, allocations: 318.6 kB / 227.2 MB, free: 2.086 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.2435, allocations: 50.64 kB / 227.2 MB, free: 2.078 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.2437, allocations: 92.03 kB / 227.3 MB, free: 2.027 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.2439, allocations: 66.66 kB / 227.4 MB, free: 2.023 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.364e-06/0.2439, allocations: 0 / 227.4 MB, free: 2.023 MB / 170.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006553/0.2446, allocations: 258.8 kB / 227.6 MB, free: 1.93 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2446, allocations: 4.594 kB / 227.6 MB, free: 1.93 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.666e-06/0.2446, allocations: 3.844 kB / 227.6 MB, free: 1.93 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/0.246, allocations: 215.3 kB / 227.9 MB, free: 1.855 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.2462, allocations: 36.58 kB / 227.9 MB, free: 1.848 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004679/0.2467, allocations: 0.6142 MB / 228.5 MB, free: 1.309 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.247, allocations: 25.95 kB / 228.5 MB, free: 1.297 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.247, allocations: 6.688 kB / 228.5 MB, free: 1.297 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: HeatCapacitor1.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(6000.0, min(6000.0, 6000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Capacitor1.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.0002609/0.2473, allocations: 145.4 kB / 228.7 MB, free: 1.168 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.89e-05/0.2473, allocations: 22.56 kB / 228.7 MB, free: 1.156 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005761/0.2479, allocations: 234.6 kB / 228.9 MB, free: 1.066 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.406e-06/0.248, allocations: 4 kB / 228.9 MB, free: 1.062 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.655e-06/0.248, allocations: 0 / 228.9 MB, free: 1.062 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.248, allocations: 3.906 kB / 228.9 MB, free: 1.062 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003694/0.2484, allocations: 298.4 kB / 229.2 MB, free: 0.8242 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2484, allocations: 0 / 229.2 MB, free: 0.8242 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.2486, allocations: 31.14 kB / 229.3 MB, free: 0.8125 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/0.25, allocations: 220.6 kB / 229.5 MB, free: 0.7344 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.2501, allocations: 7.281 kB / 229.5 MB, free: 0.7344 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004663/0.2505, allocations: 0.6155 MB / 230.1 MB, free: 204 kB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.182e-06/0.2506, allocations: 3.875 kB / 230.1 MB, free: 204 kB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007065/0.2513, allocations: 395.2 kB / 230.5 MB, free: 16 kB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.2515, allocations: 106.6 kB / 230.6 MB, free: 15.91 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.778e-05/0.2515, allocations: 3.375 kB / 230.6 MB, free: 15.91 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.2517, allocations: 11.03 kB / 230.6 MB, free: 15.91 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.363e-05/0.2518, allocations: 16.03 kB / 230.6 MB, free: 15.89 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.2519, allocations: 8.797 kB / 230.6 MB, free: 15.89 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000166/0.252, allocations: 137 kB / 230.8 MB, free: 15.8 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.2521, allocations: 96 / 230.8 MB, free: 15.8 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004589/0.2525, allocations: 75.53 kB / 230.8 MB, free: 15.79 MB / 186.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.0002016/0.2527, allocations: 118.9 kB / 231 MB, free: 15.69 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000551/0.2533, allocations: 169.7 kB / 231.1 MB, free: 15.65 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.985e-06/0.2533, allocations: 1.219 kB / 231.1 MB, free: 15.65 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000282/0.2536, allocations: 80.91 kB / 231.2 MB, free: 15.64 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.2541, allocations: 50.08 kB / 231.2 MB, free: 15.63 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2554, allocations: 0.7091 MB / 232 MB, free: 14.95 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.2559, allocations: 0.7516 MB / 232.7 MB, free: 14.18 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.061e-05/0.256, allocations: 19.06 kB / 232.7 MB, free: 14.16 MB / 186.7 MB Notification: Performance of SimCode: time 1.527e-06/0.256, allocations: 0 / 232.7 MB, free: 14.16 MB / 186.7 MB Notification: Performance of Templates: time 0.006535/0.2625, allocations: 3.121 MB / 235.8 MB, free: 11.06 MB / 186.7 MB