Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.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.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.119/1.119, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004578, allocations: 8 kB / 158.3 MB, free: 15.12 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07272/0.07323, allocations: 25.16 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.004791/0.07809, allocations: 1.899 MB / 185.4 MB, free: 4.016 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.0801, allocations: 0.5501 MB / 186 MB, free: 3.465 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.08039, allocations: 8 kB / 186 MB, free: 3.457 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.08052, allocations: 27.77 kB / 186 MB, free: 3.43 MB / 154.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Thermal/HeatTransfer.mo:67:7-68:32:writable] Warning: Conditional component ‘heatPort‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.0005607/0.0811, allocations: 91.78 kB / 186.1 MB, free: 3.34 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.08143, allocations: 55.88 kB / 186.1 MB, free: 3.285 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005461/0.082, allocations: 195.5 kB / 186.3 MB, free: 3.094 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.08234, allocations: 81.61 kB / 186.4 MB, free: 3.016 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.08258, allocations: 75.72 kB / 186.5 MB, free: 2.941 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003324/0.08294, allocations: 99.59 kB / 186.6 MB, free: 2.844 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.08301, allocations: 12 kB / 186.6 MB, free: 2.832 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.08318, allocations: 23.94 kB / 186.6 MB, free: 2.809 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.08327, allocations: 35.84 kB / 186.6 MB, free: 2.773 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.08339, allocations: 69.58 kB / 186.7 MB, free: 2.699 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.08385, allocations: 179.5 kB / 186.9 MB, free: 2.523 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.08387, allocations: 0 / 186.9 MB, free: 2.523 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.08389, allocations: 0 / 186.9 MB, free: 2.523 MB / 154.7 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.08391, allocations: 0 / 186.9 MB, free: 2.523 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001829/0.08576, allocations: 0.5146 MB / 187.4 MB, free: 1.961 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.08583, allocations: 12.03 kB / 187.4 MB, free: 1.949 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001704/0.08602, allocations: 58.98 kB / 187.5 MB, free: 1.883 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.08615, allocations: 23.72 kB / 187.5 MB, free: 1.859 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.08664, allocations: 230.8 kB / 187.7 MB, free: 1.598 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.08669, allocations: 12.44 kB / 187.7 MB, free: 1.586 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.998e-05/0.08679, allocations: 20 kB / 187.8 MB, free: 1.566 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000971/0.08778, allocations: 241.7 kB / 188 MB, free: 1.32 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.08783, allocations: 3.953 kB / 188 MB, free: 1.316 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.08789, allocations: 8 kB / 188 MB, free: 1.309 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.08793, allocations: 8 kB / 188 MB, free: 1.301 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009399/0.08888, allocations: 165.6 kB / 188.2 MB, free: 1.137 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/0.09163, allocations: 0.8283 MB / 189 MB, free: 244 kB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008828/0.09256, allocations: 166.6 kB / 189.2 MB, free: 68 kB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001992/0.09279, allocations: 89.03 kB / 189.2 MB, free: 15.96 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/0.09285, allocations: 38.5 kB / 189.3 MB, free: 15.91 MB / 170.7 MB Notification: Performance of pre-optimization done (n=16): time 4.208e-06/0.09288, allocations: 0 / 189.3 MB, free: 15.91 MB / 170.7 MB Notification: Performance of matching and sorting (n=16): time 0.002097/0.09499, allocations: 355.7 kB / 189.6 MB, free: 15.54 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.09509, allocations: 55.34 kB / 189.7 MB, free: 15.47 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.09544, allocations: 174.6 kB / 189.9 MB, free: 15.29 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 5.337e-05/0.09551, allocations: 33.7 kB / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.09572, allocations: 206.5 kB / 190.1 MB, free: 15.05 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.09584, allocations: 43.27 kB / 190.1 MB, free: 15 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.402e-05/0.09589, allocations: 8 kB / 190.1 MB, free: 15 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.09609, allocations: 322.8 kB / 190.5 MB, free: 14.67 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004366/0.09655, allocations: 60.34 kB / 190.5 MB, free: 14.61 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/0.09703, allocations: 93 kB / 190.6 MB, free: 14.51 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004301/0.09748, allocations: 63.98 kB / 190.7 MB, free: 14.45 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.09751, allocations: 0 / 190.7 MB, free: 14.45 MB / 170.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001252/0.09878, allocations: 228 kB / 190.9 MB, free: 14.21 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.09884, allocations: 4 kB / 190.9 MB, free: 14.21 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.09887, allocations: 0 / 190.9 MB, free: 14.21 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003884/0.09927, allocations: 40.77 kB / 190.9 MB, free: 14.17 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.09973, allocations: 36.11 kB / 191 MB, free: 14.13 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002439/0.1022, allocations: 1.371 MB / 192.3 MB, free: 12.62 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005729/0.1028, allocations: 51.81 kB / 192.4 MB, free: 12.57 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.1029, allocations: 7.984 kB / 192.4 MB, free: 12.57 MB / 170.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: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002688/0.1032, allocations: 133.7 kB / 192.5 MB, free: 12.43 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.267e-05/0.1033, allocations: 19.81 kB / 192.6 MB, free: 12.41 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.1046, allocations: 212.3 kB / 192.8 MB, free: 12.19 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1046, allocations: 4 kB / 192.8 MB, free: 12.18 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.1046, allocations: 4 kB / 192.8 MB, free: 12.18 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1046, allocations: 4 kB / 192.8 MB, free: 12.18 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.1065, allocations: 0.5186 MB / 193.3 MB, free: 11.6 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.1065, allocations: 0 / 193.3 MB, free: 11.6 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004492/0.107, allocations: 39.94 kB / 193.3 MB, free: 11.56 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003004/0.1073, allocations: 28.83 kB / 193.4 MB, free: 11.53 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.263e-05/0.1074, allocations: 11.94 kB / 193.4 MB, free: 11.52 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.1098, allocations: 1.366 MB / 194.7 MB, free: 10.02 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1098, allocations: 0 / 194.7 MB, free: 10.02 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.1115, allocations: 368.1 kB / 195.1 MB, free: 9.637 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.1117, allocations: 105.2 kB / 195.2 MB, free: 9.516 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.496e-05/0.1118, allocations: 4 kB / 195.2 MB, free: 9.512 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005794/0.1124, allocations: 32.03 kB / 195.2 MB, free: 9.48 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.1126, allocations: 23.95 kB / 195.3 MB, free: 9.457 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-05/0.1126, allocations: 0 / 195.3 MB, free: 9.457 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002322/0.1129, allocations: 140.3 kB / 195.4 MB, free: 9.32 MB / 170.7 MB Notification: Performance of sort global known variables: time 9.62e-07/0.1129, allocations: 0 / 195.4 MB, free: 9.32 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007595/0.1137, allocations: 59.84 kB / 195.5 MB, free: 9.262 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002184/0.1159, allocations: 0.9159 MB / 196.4 MB, free: 8.316 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.1172, allocations: 281.9 kB / 196.6 MB, free: 8.031 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.1172, allocations: 0 / 196.6 MB, free: 8.031 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006744/0.1179, allocations: 198.5 kB / 196.8 MB, free: 7.824 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.119, allocations: 60.08 kB / 196.9 MB, free: 7.766 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004621/0.1237, allocations: 1.261 MB / 198.2 MB, free: 6.438 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000548/0.1243, allocations: 0.7362 MB / 198.9 MB, free: 5.676 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.1245, allocations: 63.41 kB / 199 MB, free: 5.613 MB / 170.7 MB Notification: Performance of SimCode: time 1.543e-06/0.1246, allocations: 0 / 199 MB, free: 5.613 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/3.031, allocations: 4.109 MB / 203.1 MB, free: 1.504 MB / 170.7 MB