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: translateModel(Buildings.Examples.Tutorial.SpaceCooling.System2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|cooCoi.sta_b2.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.SpaceCooling.System2") translateModel(Buildings.Examples.Tutorial.SpaceCooling.System2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|cooCoi.sta_b2.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.SpaceCooling.System2") [: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.719/1.719, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009405/0.0009407, allocations: 185.2 kB / 487 MB, free: 5.34 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.061/1.061, allocations: 221.3 MB / 0.7819 GB, free: 1.348 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.0008204/0.0008204, allocations: 89.56 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.338e-06/4.368e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1669, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.27/3.437, allocations: 2.344 GB / 3.549 GB, free: 294.9 MB / 1.135 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/3.438, allocations: 91.31 kB / 3.549 GB, free: 294.8 MB / 1.135 GB Notification: Performance of FrontEnd: time 6.515/9.952, allocations: 2.723 GB / 6.272 GB, free: 110 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.0003446/9.953, allocations: 132.8 kB / 6.272 GB, free: 110 MB / 1.245 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 0.01013/9.963, allocations: 5.692 MB / 6.278 GB, free: 107.5 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 2.85e-05/9.963, allocations: 9.906 kB / 6.278 GB, free: 107.5 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01996/9.983, allocations: 3.617 MB / 6.281 GB, free: 107.2 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/9.993, allocations: 5.245 MB / 6.287 GB, free: 106.4 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-05/9.993, allocations: 129.9 kB / 6.287 GB, free: 106.4 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005039/9.994, allocations: 242.1 kB / 6.287 GB, free: 106.4 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006434/10, allocations: 4.667 MB / 6.291 GB, free: 106.3 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005975/10.01, allocations: 4.341 MB / 6.296 GB, free: 105.9 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.486e-05/10.01, allocations: 9.5 kB / 6.296 GB, free: 105.9 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003865/10.01, allocations: 9.766 kB / 6.296 GB, free: 105.9 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.49e-05/10.01, allocations: 161.8 kB / 6.296 GB, free: 105.9 MB / 1.245 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02549/10.03, allocations: 21.23 MB / 6.317 GB, free: 98.12 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002811/10.04, allocations: 2.301 MB / 6.319 GB, free: 98.09 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002183/10.04, allocations: 1.869 MB / 6.321 GB, free: 98.05 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/10.05, allocations: 7.703 MB / 6.328 GB, free: 95.98 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002468/10.05, allocations: 2.04 MB / 6.33 GB, free: 95.85 MB / 1.245 GB Notification: Performance of pre-optimization done (n=315): time 4.048e-06/10.05, allocations: 0 / 6.33 GB, free: 95.85 MB / 1.245 GB Notification: Performance of matching and sorting (n=315): time 0.009505/10.06, allocations: 4.099 MB / 6.334 GB, free: 95.47 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/10.06, allocations: 292.9 kB / 6.334 GB, free: 95.16 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002905/10.06, allocations: 2.606 MB / 6.337 GB, free: 94.86 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0002409/10.06, allocations: 29.64 kB / 6.337 GB, free: 94.83 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007619/10.06, allocations: 1.387 MB / 6.338 GB, free: 94.1 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007584/10.06, allocations: 1.018 MB / 6.339 GB, free: 93.41 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/10.06, allocations: 0 / 6.339 GB, free: 93.41 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001231/10.06, allocations: 434.7 kB / 6.34 GB, free: 93.1 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001909/10.07, allocations: 1.424 MB / 6.341 GB, free: 93.09 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/10.07, allocations: 2.11 MB / 6.343 GB, free: 92.39 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002965/10.07, allocations: 1.821 MB / 6.345 GB, free: 92.35 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/10.07, allocations: 3.656 kB / 6.345 GB, free: 92.35 MB / 1.245 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.008708/10.08, allocations: 4.573 MB / 6.349 GB, free: 91.98 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006291/10.08, allocations: 5.638 MB / 6.355 GB, free: 86.11 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/10.08, allocations: 17.56 kB / 6.355 GB, free: 86.11 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001973/10.08, allocations: 0.523 MB / 6.356 GB, free: 86.07 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005479/10.09, allocations: 1.063 MB / 6.357 GB, free: 86.07 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004726/10.09, allocations: 6.869 MB / 6.363 GB, free: 80.15 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005297/10.1, allocations: 0.6923 MB / 6.364 GB, free: 80 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000335/10.1, allocations: 166 kB / 6.364 GB, free: 80 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 4.568e-06/10.1, allocations: 2.906 kB / 6.364 GB, free: 80 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008106/10.11, allocations: 4.167 MB / 6.368 GB, free: 79.78 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/10.11, allocations: 11.72 kB / 6.368 GB, free: 79.78 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/10.11, allocations: 0.5305 MB / 6.369 GB, free: 79.73 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/10.11, allocations: 1.05 MB / 6.37 GB, free: 79.73 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005129/10.12, allocations: 7.156 MB / 6.377 GB, free: 73.64 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004877/10.12, allocations: 0.6208 MB / 6.377 GB, free: 73.52 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003237/10.12, allocations: 163.3 kB / 6.377 GB, free: 73.52 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.0006876/10.13, allocations: 193.7 kB / 6.378 GB, free: 73.41 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000609/10.13, allocations: 423.8 kB / 6.378 GB, free: 73.2 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/10.14, allocations: 4.696 MB / 6.383 GB, free: 72.84 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/10.14, allocations: 39.91 kB / 6.383 GB, free: 72.84 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/10.14, allocations: 0 / 6.383 GB, free: 72.84 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007057/10.14, allocations: 3.625 MB / 6.386 GB, free: 72.55 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/10.16, allocations: 9.489 MB / 6.395 GB, free: 71.5 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/10.16, allocations: 0 / 6.395 GB, free: 71.5 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004247/10.16, allocations: 0.803 MB / 6.396 GB, free: 71.5 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/10.16, allocations: 393.9 kB / 6.397 GB, free: 71.45 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002513/10.16, allocations: 53.02 kB / 6.397 GB, free: 71.45 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005715/10.17, allocations: 8.971 MB / 6.405 GB, free: 63.66 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/10.17, allocations: 6.156 kB / 6.405 GB, free: 63.66 MB / 1.245 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009956/10.18, allocations: 6.314 MB / 6.412 GB, free: 62.88 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/10.18, allocations: 1.063 MB / 6.413 GB, free: 62.53 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006841/10.18, allocations: 9.438 kB / 6.413 GB, free: 62.53 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004286/10.19, allocations: 462.7 kB / 6.413 GB, free: 62.51 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002896/10.19, allocations: 174.5 kB / 6.413 GB, free: 62.51 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002965/10.19, allocations: 136.6 kB / 6.413 GB, free: 62.51 MB / 1.245 GB Notification: Performance of sort global known variables: time 0.002174/10.19, allocations: 1.938 MB / 6.415 GB, free: 62.33 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.008199/10.2, allocations: 3.16 MB / 6.418 GB, free: 61.84 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.007171/10.2, allocations: 7.473 MB / 6.426 GB, free: 58.37 MB / 1.245 GB Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1356:5-1356:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/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]