Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.SpaceCooling.System3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System3,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_SpaceCooling_System3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System3,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_SpaceCooling_System3",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.762/1.762, allocations: 387.2 MB / 394.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009397/0.0009397, allocations: 181.1 kB / 487 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.12/1.12, allocations: 221.4 MB / 0.7819 GB, free: 6.75 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008219/0.0008219, allocations: 96.69 kB / 0.9213 GB, free: 43.7 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.224/0.2248, allocations: 148.5 MB / 1.066 GB, free: 7.484 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5187/0.7436, allocations: 142.3 MB / 1.205 GB, free: 72.77 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.215/3.958, allocations: 2.344 GB / 3.549 GB, free: 182.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/3.958, allocations: 88.98 kB / 3.549 GB, free: 182.4 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1033 * Number of variables: 1033 Notification: Performance of Generate backend data structure: time 7.165/11.12, allocations: 2.73 GB / 6.279 GB, free: 94.86 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/11.12, allocations: 10.06 kB / 6.279 GB, free: 94.86 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02224/11.15, allocations: 3.622 MB / 6.283 GB, free: 94.54 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0124/11.16, allocations: 5.263 MB / 6.288 GB, free: 93.62 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/11.16, allocations: 135.8 kB / 6.288 GB, free: 93.62 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007112/11.16, allocations: 248.4 kB / 6.288 GB, free: 93.61 MB / 1.229 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007949/11.17, allocations: 4.687 MB / 6.293 GB, free: 93.59 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007051/11.17, allocations: 4.369 MB / 6.297 GB, free: 93.2 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-05/11.17, allocations: 4 kB / 6.297 GB, free: 93.2 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004182/11.17, allocations: 2.938 kB / 6.297 GB, free: 93.2 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/11.17, allocations: 163.2 kB / 6.297 GB, free: 93.19 MB / 1.229 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03287/11.21, allocations: 21.05 MB / 6.318 GB, free: 84.45 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00377/11.21, allocations: 2.491 MB / 6.32 GB, free: 83.41 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002791/11.21, allocations: 1.955 MB / 6.322 GB, free: 82.58 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01413/11.23, allocations: 8.207 MB / 6.33 GB, free: 75.49 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002815/11.23, allocations: 2.134 MB / 6.332 GB, free: 73.32 MB / 1.229 GB Notification: Performance of pre-optimization done (n=330): time 5.33e-06/11.23, allocations: 0 / 6.332 GB, free: 73.32 MB / 1.229 GB Notification: Performance of matching and sorting (n=336): time 0.02561/11.26, allocations: 8.997 MB / 6.341 GB, free: 64.22 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.743e-05/11.26, allocations: 274 kB / 6.341 GB, free: 63.89 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00533/11.26, allocations: 2.537 MB / 6.344 GB, free: 61.34 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.0009077/11.26, allocations: 29.7 kB / 6.344 GB, free: 61.3 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.001344/11.26, allocations: 1.361 MB / 6.345 GB, free: 59.93 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.001522/11.27, allocations: 1.085 MB / 6.346 GB, free: 58.82 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005866/11.27, allocations: 3.938 kB / 6.346 GB, free: 58.82 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0002345/11.27, allocations: 437.1 kB / 6.347 GB, free: 58.39 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002598/11.27, allocations: 1.481 MB / 6.348 GB, free: 56.91 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002902/11.27, allocations: 2.158 MB / 6.35 GB, free: 54.5 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003849/11.28, allocations: 1.866 MB / 6.352 GB, free: 52.64 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/11.28, allocations: 4 kB / 6.352 GB, free: 52.64 MB / 1.229 GB Notification: Performance of matching and sorting (n=432) (initialization): time 0.01173/11.29, allocations: 4.918 MB / 6.357 GB, free: 47.71 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008496/11.29, allocations: 5.644 MB / 6.362 GB, free: 41.7 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/11.29, allocations: 20 kB / 6.362 GB, free: 41.68 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002885/11.29, allocations: 0.7733 MB / 6.363 GB, free: 40.9 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005917/11.3, allocations: 1.049 MB / 6.364 GB, free: 39.85 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009193/11.31, allocations: 9.544 MB / 6.374 GB, free: 29.77 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006499/11.31, allocations: 0.4992 MB / 6.374 GB, free: 29.27 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000754/11.31, allocations: 176.4 kB / 6.374 GB, free: 29.09 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 7.053e-06/11.31, allocations: 4 kB / 6.374 GB, free: 29.09 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01121/11.33, allocations: 4.495 MB / 6.379 GB, free: 24.54 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-05/11.33, allocations: 16 kB / 6.379 GB, free: 24.52 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002811/11.33, allocations: 0.7858 MB / 6.379 GB, free: 23.73 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00595/11.33, allocations: 1.034 MB / 6.38 GB, free: 22.7 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/11.34, allocations: 10.49 MB / 6.391 GB, free: 11.57 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006517/11.35, allocations: 0.4952 MB / 6.391 GB, free: 11.07 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008008/11.35, allocations: 164 kB / 6.391 GB, free: 10.91 MB / 1.229 GB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: cooCoi.UAFroRated.cpEff:VARIABLE(min = 0.0 unit = "J/(kg.K)" fixed = false protected = true ) "Effective specific heat: change in saturated moist air enthalpy with respect to temperature along the saturation line between inlet and outlet water temperatures" type: Real cooCoi.UAFroRated.LMED:VARIABLE(unit = "J/kg" fixed = false protected = true ) "Log mean enthalpy difference" type: Real cooCoi.UAFroRated.UA:VARIABLE(unit = "W/K" protected = true ) = cooCoi.UA_nominal "Overall heat transfer coefficient for a fully dry condition" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fan.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 12 (cooCoi.flowRegime_nominal,$whenCondition2,$whenCondition1,cooCoi.flowRegime,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.con.y,con.y,cooCoi.UAFroRated.isFulDry,cooCoi.UAFroRated.isFulWet) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (390): * Single equations (assignments): 382 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,3} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 2,2 23,1 2,1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001427/11.35, allocations: 194.8 kB / 6.391 GB, free: 10.72 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/11.35, allocations: 426.8 kB / 6.392 GB, free: 10.3 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/11.37, allocations: 5.006 MB / 6.397 GB, free: 5.27 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/11.37, allocations: 32 kB / 6.397 GB, free: 5.238 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/11.37, allocations: 4 kB / 6.397 GB, free: 5.234 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008587/11.38, allocations: 3.86 MB / 6.401 GB, free: 1.309 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02326/11.4, allocations: 9.861 MB / 6.41 GB, free: 7.27 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/11.4, allocations: 0 / 6.41 GB, free: 7.27 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005235/11.4, allocations: 0.8856 MB / 6.411 GB, free: 6.383 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/11.41, allocations: 421.3 kB / 6.411 GB, free: 5.961 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003759/11.41, allocations: 59.91 kB / 6.412 GB, free: 5.902 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007858/11.41, allocations: 9.021 MB / 6.42 GB, free: 12.23 MB / 1.26 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/11.41, allocations: 7.938 kB / 6.42 GB, free: 12.22 MB / 1.26 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01349/11.43, allocations: 6.794 MB / 6.427 GB, free: 5.309 MB / 1.26 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01763/11.45, allocations: 9.974 MB / 6.437 GB, free: 11.2 MB / 1.276 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002666/11.45, allocations: 1.034 MB / 6.438 GB, free: 10.14 MB / 1.276 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001259/11.45, allocations: 12 kB / 6.438 GB, free: 10.13 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005669/11.46, allocations: 495.1 kB / 6.438 GB, free: 9.648 MB / 1.276 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000366/11.46, allocations: 194.5 kB / 6.438 GB, free: 9.457 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004134/11.46, allocations: 143.9 kB / 6.439 GB, free: 9.316 MB / 1.276 GB Notification: Performance of sort global known variables: time 0.003739/11.46, allocations: 1.888 MB / 6.44 GB, free: 7.418 MB / 1.276 GB Notification: Performance of remove unused functions: time 0.01777/11.48, allocations: 4.581 MB / 6.445 GB, free: 2.84 MB / 1.276 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (vol.dynBal.medium.X[2],vol.dynBal.medium.dT,vol.dynBal.m,fan.filter.s[1],fan.filter.s[2],cooCoi.heaCoo.vol.dynBal.U,cooCoi.heaCooHum_u.vol.dynBal.medium.Xi[1],cooCoi.heaCooHum_u.vol.dynBal.U,cooCoi.heaCooHum_u.vol.dynBal.m,cooCoi.dryWetCalcs.fullyWet.TWatOutEst,senTemHXOut.T,senTemSupAir.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,cooCoi.flowRegime,weaDat.conTimMin.tNext,weaDat.conTim.tNext,con.y) * Number of discrete states: 3 (weaDat.conTim.tNext,weaDat.conTimMin.tNext,con.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (347): * Single equations (assignments): 335 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 4 {1 2,1 4,1 1,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.4511/11.93, allocations: 7.476 MB / 6.452 GB, free: 231.4 MB / 1.276 GB Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3706:7-3706:48:writable] Error: Internal error createOdeSystem2 failed for Generic Jacobian via directional derivatives [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3599:9-3599:50:writable] Error: Internal error function createOdeSystem failed for component {12, 11, 10:11, 12, 9, 10, 8, 7, 13} Size: 3 Generic Jacobian via directional derivatives [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1356:5-1356:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] Error: Internal error SimCode: The model Buildings.Examples.Tutorial.SpaceCooling.System3 could not be translated to FMU