Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.SpaceCooling.System2.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.System2,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_SpaceCooling_System2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System2,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_SpaceCooling_System2",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.808/1.808, allocations: 387.2 MB / 394.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 181.2 kB / 487 MB, free: 5.348 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.147/1.147, allocations: 221.3 MB / 0.7819 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009092/0.0009092, allocations: 107.6 kB / 0.9213 GB, free: 2.672 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4114/0.4124, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.5941, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.402/3.996, allocations: 2.344 GB / 3.549 GB, free: 408.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/3.996, allocations: 88.66 kB / 3.549 GB, free: 408.6 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: 1024 * Number of variables: 1024 Notification: Performance of Generate backend data structure: time 7.145/11.14, allocations: 2.729 GB / 6.278 GB, free: 116.2 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/11.14, allocations: 7.281 kB / 6.278 GB, free: 116.2 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02314/11.16, allocations: 3.618 MB / 6.281 GB, free: 115.9 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01406/11.18, allocations: 5.235 MB / 6.287 GB, free: 115.1 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/11.18, allocations: 138.5 kB / 6.287 GB, free: 115.1 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006415/11.18, allocations: 246 kB / 6.287 GB, free: 115.1 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00721/11.19, allocations: 4.67 MB / 6.291 GB, free: 115.1 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006414/11.19, allocations: 4.342 MB / 6.296 GB, free: 114.7 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.561e-05/11.19, allocations: 1.125 kB / 6.296 GB, free: 114.7 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003902/11.19, allocations: 7.125 kB / 6.296 GB, free: 114.7 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001047/11.19, allocations: 164.9 kB / 6.296 GB, free: 114.7 MB / 1.245 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02885/11.22, allocations: 21.23 MB / 6.317 GB, free: 106.9 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/11.23, allocations: 2.295 MB / 6.319 GB, free: 106.8 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002291/11.23, allocations: 1.862 MB / 6.321 GB, free: 106.8 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01145/11.24, allocations: 7.708 MB / 6.328 GB, free: 104.8 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002509/11.24, allocations: 2.044 MB / 6.33 GB, free: 104.6 MB / 1.245 GB Notification: Performance of pre-optimization done (n=315): time 4.098e-06/11.24, allocations: 2.156 kB / 6.33 GB, free: 104.6 MB / 1.245 GB Notification: Performance of matching and sorting (n=315): time 0.009972/11.25, allocations: 4.094 MB / 6.334 GB, free: 104.3 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/11.25, allocations: 297.6 kB / 6.334 GB, free: 103.9 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/11.25, allocations: 2.606 MB / 6.337 GB, free: 103.6 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0002611/11.26, allocations: 27.23 kB / 6.337 GB, free: 103.6 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009217/11.26, allocations: 1.383 MB / 6.338 GB, free: 102.9 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008346/11.26, allocations: 1.019 MB / 6.339 GB, free: 102.2 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/11.26, allocations: 3.031 kB / 6.339 GB, free: 102.2 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001263/11.26, allocations: 430 kB / 6.34 GB, free: 101.9 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002034/11.26, allocations: 1.426 MB / 6.341 GB, free: 101.9 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002277/11.26, allocations: 2.11 MB / 6.343 GB, free: 101.2 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003139/11.26, allocations: 1.816 MB / 6.345 GB, free: 101.1 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/11.26, allocations: 3.094 kB / 6.345 GB, free: 101.1 MB / 1.245 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.009443/11.27, allocations: 4.575 MB / 6.349 GB, free: 100.8 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007025/11.27, allocations: 5.643 MB / 6.355 GB, free: 94.9 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/11.28, allocations: 19.44 kB / 6.355 GB, free: 94.9 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002052/11.28, allocations: 0.5151 MB / 6.355 GB, free: 94.86 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00581/11.28, allocations: 1.069 MB / 6.357 GB, free: 94.86 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005019/11.29, allocations: 6.871 MB / 6.363 GB, free: 88.94 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006243/11.29, allocations: 0.6901 MB / 6.364 GB, free: 88.8 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003754/11.29, allocations: 166.4 kB / 6.364 GB, free: 88.8 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 5.68e-06/11.29, allocations: 3.562 kB / 6.364 GB, free: 88.8 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008714/11.3, allocations: 4.171 MB / 6.368 GB, free: 88.57 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/11.3, allocations: 11.69 kB / 6.368 GB, free: 88.57 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002003/11.31, allocations: 0.5234 MB / 6.369 GB, free: 88.53 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005519/11.31, allocations: 1.046 MB / 6.37 GB, free: 88.53 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005725/11.32, allocations: 7.165 MB / 6.377 GB, free: 82.43 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006363/11.32, allocations: 0.6275 MB / 6.377 GB, free: 82.3 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000741/11.32, allocations: 164.1 kB / 6.377 GB, free: 82.3 MB / 1.245 GB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: 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 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 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: 10 (cooCoi.flowRegime_nominal,$whenCondition2,$whenCondition1,cooCoi.flowRegime,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,cooCoi.UAFroRated.isFulDry,cooCoi.UAFroRated.isFulWet) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (402): * Single equations (assignments): 394 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,3} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,1 4,1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001148/11.32, allocations: 192.5 kB / 6.378 GB, free: 82.18 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001263/11.33, allocations: 419 kB / 6.378 GB, free: 81.97 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/11.34, allocations: 4.701 MB / 6.383 GB, free: 81.62 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/11.34, allocations: 30.12 kB / 6.383 GB, free: 81.62 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/11.34, allocations: 3.688 kB / 6.383 GB, free: 81.62 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007477/11.35, allocations: 3.625 MB / 6.386 GB, free: 81.33 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01789/11.36, allocations: 9.484 MB / 6.395 GB, free: 80.29 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/11.36, allocations: 0 / 6.395 GB, free: 80.29 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004427/11.37, allocations: 0.8073 MB / 6.396 GB, free: 80.29 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/11.37, allocations: 394.4 kB / 6.397 GB, free: 80.24 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003004/11.37, allocations: 60.62 kB / 6.397 GB, free: 80.24 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006082/11.38, allocations: 8.971 MB / 6.405 GB, free: 72.45 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/11.38, allocations: 0 / 6.405 GB, free: 72.45 MB / 1.245 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01112/11.39, allocations: 6.325 MB / 6.412 GB, free: 71.66 MB / 1.245 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01409/11.4, allocations: 9.319 MB / 6.421 GB, free: 70.49 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002354/11.4, allocations: 1.071 MB / 6.422 GB, free: 70.13 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007342/11.4, allocations: 7.812 kB / 6.422 GB, free: 70.13 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004509/11.41, allocations: 452.8 kB / 6.422 GB, free: 70.12 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/11.41, allocations: 176.9 kB / 6.422 GB, free: 70.11 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003169/11.41, allocations: 133 kB / 6.423 GB, free: 70.11 MB / 1.245 GB Notification: Performance of sort global known variables: time 0.002681/11.41, allocations: 1.947 MB / 6.424 GB, free: 69.93 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.01359/11.43, allocations: 4.935 MB / 6.429 GB, free: 69.45 MB / 1.245 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (vol.dynBal.medium.Xi[1],vol.dynBal.U,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: 5 ($whenCondition2,$whenCondition1,cooCoi.flowRegime,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (323): * Single equations (assignments): 311 * 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%) 2,(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.007997/11.43, allocations: 7.483 MB / 6.437 GB, free: 66.08 MB / 1.245 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:18, 16, 15, 21, 19, 20, 17} 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.System2 could not be translated to FMU