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.9205/0.9205, allocations: 111.2 MB / 124.3 MB, free: 11.13 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.284e-05, allocations: 0 / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1409, allocations: 25.15 MB / 179.4 MB, free: 0.7812 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05454/0.1955, allocations: 36.14 MB / 215.6 MB, free: 12.95 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.1957, allocations: 55.97 kB / 215.6 MB, free: 12.9 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01607/0.2118, allocations: 3.883 MB / 219.5 MB, free: 9.004 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.111e-06/0.2119, allocations: 0 / 219.5 MB, free: 9.004 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.16e-05/0.2119, allocations: 8 kB / 219.5 MB, free: 8.996 MB / 186.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.0008264/0.2127, allocations: 490.2 kB / 220 MB, free: 8.469 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.2128, allocations: 8.031 kB / 220 MB, free: 8.461 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.362e-05/0.2129, allocations: 27.72 kB / 220 MB, free: 8.434 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.2133, allocations: 231.4 kB / 220.3 MB, free: 8.164 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.2133, allocations: 12.44 kB / 220.3 MB, free: 8.152 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.634e-05/0.2134, allocations: 28 kB / 220.3 MB, free: 8.125 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004878/0.2139, allocations: 213.9 kB / 220.5 MB, free: 7.906 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2139, allocations: 3.938 kB / 220.5 MB, free: 7.902 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.2139, allocations: 11.95 kB / 220.5 MB, free: 7.891 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.772e-06/0.214, allocations: 4 kB / 220.5 MB, free: 7.887 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004119/0.2144, allocations: 149.7 kB / 220.7 MB, free: 7.738 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.2162, allocations: 0.8476 MB / 221.5 MB, free: 6.824 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.2166, allocations: 154.6 kB / 221.7 MB, free: 6.664 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.2168, allocations: 88.8 kB / 221.7 MB, free: 6.574 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.2169, allocations: 7.984 kB / 221.8 MB, free: 6.566 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.2169, allocations: 30.56 kB / 221.8 MB, free: 6.527 MB / 186.7 MB Notification: Performance of pre-optimization done (n=17): time 2.676e-06/0.2169, allocations: 0 / 221.8 MB, free: 6.527 MB / 186.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006868/0.2176, allocations: 208 kB / 222 MB, free: 6.316 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.2177, allocations: 55.41 kB / 222 MB, free: 6.25 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.2179, allocations: 163.2 kB / 222.2 MB, free: 6.078 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.218, allocations: 29.7 kB / 222.2 MB, free: 6.043 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.2181, allocations: 218.3 kB / 222.4 MB, free: 5.828 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.613e-05/0.2182, allocations: 59.11 kB / 222.5 MB, free: 5.77 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.832e-05/0.2183, allocations: 4 kB / 222.5 MB, free: 5.766 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.2184, allocations: 318.8 kB / 222.8 MB, free: 5.445 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.2186, allocations: 48.12 kB / 222.9 MB, free: 5.395 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.2187, allocations: 85.27 kB / 222.9 MB, free: 5.297 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.2189, allocations: 54.91 kB / 223 MB, free: 5.246 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.187e-06/0.2189, allocations: 3.938 kB / 223 MB, free: 5.242 MB / 186.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006161/0.2196, allocations: 230.3 kB / 223.2 MB, free: 5.008 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.2196, allocations: 8 kB / 223.2 MB, free: 5 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2196, allocations: 0 / 223.2 MB, free: 5 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/0.2212, allocations: 220.6 kB / 223.5 MB, free: 4.781 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.2214, allocations: 39.92 kB / 223.5 MB, free: 4.742 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006642/0.2221, allocations: 0.6032 MB / 224.1 MB, free: 4.113 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.2223, allocations: 23.73 kB / 224.1 MB, free: 4.09 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.2223, allocations: 8 kB / 224.1 MB, free: 4.082 MB / 186.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" nominal = 300.0 ) "Temperature of element" type: Real Capacitor1.v:VARIABLE(unit = "V" ) "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 () * 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.000212/0.2226, allocations: 141.7 kB / 224.3 MB, free: 3.938 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.274e-05/0.2226, allocations: 19.81 kB / 224.3 MB, free: 3.918 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005851/0.2232, allocations: 212.9 kB / 224.5 MB, free: 3.699 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.925e-06/0.2233, allocations: 4 kB / 224.5 MB, free: 3.695 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.315e-06/0.2233, allocations: 0 / 224.5 MB, free: 3.695 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.197e-06/0.2233, allocations: 0 / 224.5 MB, free: 3.695 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.2245, allocations: 0.5947 MB / 225.1 MB, free: 3.039 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.2245, allocations: 0 / 225.1 MB, free: 3.039 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.2248, allocations: 31.92 kB / 225.1 MB, free: 3.008 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.2262, allocations: 220.7 kB / 225.3 MB, free: 2.789 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.2262, allocations: 15.88 kB / 225.4 MB, free: 2.773 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006493/0.2269, allocations: 0.6109 MB / 226 MB, free: 2.137 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.4e-06/0.2269, allocations: 0 / 226 MB, free: 2.137 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007995/0.2277, allocations: 401.4 kB / 226.4 MB, free: 1.719 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.2279, allocations: 108.9 kB / 226.5 MB, free: 1.594 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.2279, allocations: 0 / 226.5 MB, free: 1.594 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.2282, allocations: 16.06 kB / 226.5 MB, free: 1.578 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.2282, allocations: 11.97 kB / 226.5 MB, free: 1.566 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.2283, allocations: 12 kB / 226.5 MB, free: 1.555 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001618/0.2284, allocations: 132.3 kB / 226.6 MB, free: 1.426 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.2285, allocations: 0 / 226.6 MB, free: 1.426 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004416/0.2289, allocations: 67.73 kB / 226.7 MB, free: 1.359 MB / 186.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.0001925/0.2291, allocations: 124.7 kB / 226.8 MB, free: 1.23 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004653/0.2296, allocations: 147.8 kB / 227 MB, free: 1.086 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.107e-06/0.2296, allocations: 0 / 227 MB, free: 1.086 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.2298, allocations: 71.92 kB / 227 MB, free: 1.016 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.2303, allocations: 48.45 kB / 227.1 MB, free: 0.9688 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009134/0.2313, allocations: 402.4 kB / 227.5 MB, free: 0.5469 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.2318, allocations: 0.7479 MB / 228.2 MB, free: 15.77 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.249e-05/0.2318, allocations: 15.44 kB / 228.2 MB, free: 15.76 MB / 202.7 MB Notification: Performance of SimCode: time 1.427e-06/0.2318, allocations: 0 / 228.2 MB, free: 15.76 MB / 202.7 MB Notification: Performance of Templates: time 0.006389/0.2382, allocations: 3.131 MB / 231.4 MB, free: 12.63 MB / 202.7 MB