Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.057/1.057, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003148, allocations: 12 kB / 158.3 MB, free: 15.12 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05679/0.05715, allocations: 25.16 MB / 183.5 MB, free: 5.914 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003335/0.06055, allocations: 1.926 MB / 185.4 MB, free: 3.984 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.06183, allocations: 0.5384 MB / 186 MB, free: 3.445 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.06199, allocations: 4 kB / 186 MB, free: 3.441 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 7.653e-05/0.06208, allocations: 23.77 kB / 186 MB, free: 3.418 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003466/0.06244, allocations: 95.72 kB / 186.1 MB, free: 3.324 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.06269, allocations: 59.92 kB / 186.2 MB, free: 3.266 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003717/0.06308, allocations: 195.6 kB / 186.3 MB, free: 3.074 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.0633, allocations: 65.06 kB / 186.4 MB, free: 3.012 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.0635, allocations: 95.62 kB / 186.5 MB, free: 2.918 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.06373, allocations: 107.5 kB / 186.6 MB, free: 2.812 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.06378, allocations: 12 kB / 186.6 MB, free: 2.801 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.0639, allocations: 27.97 kB / 186.6 MB, free: 2.773 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 5.398e-05/0.06397, allocations: 35.84 kB / 186.7 MB, free: 2.738 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 7.564e-05/0.06405, allocations: 69.58 kB / 186.7 MB, free: 2.664 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.06439, allocations: 203.4 kB / 186.9 MB, free: 2.465 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.0644, allocations: 0 / 186.9 MB, free: 2.465 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.06442, allocations: 0 / 186.9 MB, free: 2.465 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.06443, allocations: 0 / 186.9 MB, free: 2.465 MB / 154.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.001063/0.0655, allocations: 0.4989 MB / 187.4 MB, free: 1.918 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.06556, allocations: 12.02 kB / 187.5 MB, free: 1.906 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.925e-05/0.06566, allocations: 58.48 kB / 187.5 MB, free: 1.84 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.352e-05/0.06574, allocations: 27.62 kB / 187.5 MB, free: 1.812 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.0661, allocations: 235.3 kB / 187.8 MB, free: 1.539 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.06614, allocations: 16.44 kB / 187.8 MB, free: 1.523 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-05/0.06621, allocations: 24 kB / 187.8 MB, free: 1.5 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006066/0.06683, allocations: 229.8 kB / 188 MB, free: 1.266 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.06686, allocations: 0 / 188 MB, free: 1.266 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.06691, allocations: 15.94 kB / 188.1 MB, free: 1.25 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.06693, allocations: 4 kB / 188.1 MB, free: 1.246 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005309/0.06747, allocations: 161.6 kB / 188.2 MB, free: 1.09 MB / 154.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.0696, allocations: 1.002 MB / 189.2 MB, free: 15.98 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.07012, allocations: 154.6 kB / 189.4 MB, free: 15.82 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.07017, allocations: 7.938 kB / 189.4 MB, free: 15.81 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.07022, allocations: 34.88 kB / 189.4 MB, free: 15.77 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 2.655e-06/0.07023, allocations: 0 / 189.4 MB, free: 15.77 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.00212/0.07236, allocations: 432.9 kB / 189.8 MB, free: 15.32 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.07243, allocations: 55.39 kB / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.07272, allocations: 183.1 kB / 190.1 MB, free: 15.06 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.07277, allocations: 29.7 kB / 190.1 MB, free: 15.03 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.07293, allocations: 214.4 kB / 190.3 MB, free: 14.82 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.225e-05/0.07301, allocations: 63.09 kB / 190.4 MB, free: 14.75 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.091e-05/0.07304, allocations: 4 kB / 190.4 MB, free: 14.75 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.0732, allocations: 322.8 kB / 190.7 MB, free: 14.43 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.07341, allocations: 52.16 kB / 190.7 MB, free: 14.38 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.07365, allocations: 92.16 kB / 190.8 MB, free: 14.27 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.07392, allocations: 79.92 kB / 190.9 MB, free: 14.2 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.07394, allocations: 0 / 190.9 MB, free: 14.2 MB / 170.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007314/0.07468, allocations: 240.6 kB / 191.1 MB, free: 13.95 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.07471, allocations: 4 kB / 191.1 MB, free: 13.95 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.07474, allocations: 4.125 kB / 191.1 MB, free: 13.95 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/0.07707, allocations: 216.6 kB / 191.4 MB, free: 13.73 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002882/0.07737, allocations: 39.98 kB / 191.4 MB, free: 13.69 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007004/0.07809, allocations: 0.6225 MB / 192 MB, free: 13.04 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.07836, allocations: 15.84 kB / 192 MB, free: 13.03 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.0784, allocations: 8 kB / 192 MB, free: 13.02 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.0003333/0.07874, allocations: 158.2 kB / 192.2 MB, free: 12.86 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.093e-05/0.07881, allocations: 19.8 kB / 192.2 MB, free: 12.84 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007444/0.07957, allocations: 232.2 kB / 192.4 MB, free: 12.6 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.07959, allocations: 0 / 192.4 MB, free: 12.6 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.07961, allocations: 3.938 kB / 192.4 MB, free: 12.6 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.07962, allocations: 3.984 kB / 192.4 MB, free: 12.59 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000501/0.08014, allocations: 297.4 kB / 192.7 MB, free: 12.25 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.08016, allocations: 0 / 192.7 MB, free: 12.25 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002933/0.08046, allocations: 39.91 kB / 192.8 MB, free: 12.21 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.08255, allocations: 212.6 kB / 193 MB, free: 12 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.0826, allocations: 11.98 kB / 193 MB, free: 11.99 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007034/0.08332, allocations: 0.6264 MB / 193.6 MB, free: 11.34 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.08334, allocations: 0 / 193.6 MB, free: 11.34 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009377/0.08428, allocations: 399.3 kB / 194 MB, free: 10.93 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.08445, allocations: 104.9 kB / 194.1 MB, free: 10.81 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.08451, allocations: 8 kB / 194.1 MB, free: 10.8 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.08481, allocations: 11.92 kB / 194.1 MB, free: 10.79 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.353e-05/0.08489, allocations: 19.94 kB / 194.2 MB, free: 10.77 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.08492, allocations: 4 kB / 194.2 MB, free: 10.77 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001699/0.0851, allocations: 141.2 kB / 194.3 MB, free: 10.63 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.08511, allocations: 0 / 194.3 MB, free: 10.63 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004827/0.0856, allocations: 63.84 kB / 194.4 MB, free: 10.57 MB / 170.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.00132/0.08693, allocations: 0.9282 MB / 195.3 MB, free: 9.609 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0006375/0.08759, allocations: 163.3 kB / 195.4 MB, free: 9.453 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.08761, allocations: 0 / 195.4 MB, free: 9.453 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000324/0.08794, allocations: 100.1 kB / 195.5 MB, free: 9.355 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.08854, allocations: 48.09 kB / 195.6 MB, free: 9.309 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003284/0.09184, allocations: 1.407 MB / 197 MB, free: 7.828 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.09231, allocations: 0.7517 MB / 197.8 MB, free: 7.047 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.09247, allocations: 59.41 kB / 197.8 MB, free: 6.992 MB / 170.7 MB Notification: Performance of SimCode: time 1.182e-06/0.09248, allocations: 4 kB / 197.8 MB, free: 6.988 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.478/2.57, allocations: 4.112 MB / 201.9 MB, free: 2.875 MB / 170.7 MB