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: translateModel(Buildings.Examples.Tutorial.SpaceCooling.System3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|cooCoi.sta_a2.T|cooCoi.sta_b2.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.SpaceCooling.System3") translateModel(Buildings.Examples.Tutorial.SpaceCooling.System3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|cooCoi.sta_a2.T|cooCoi.sta_b2.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.SpaceCooling.System3") [: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.682/1.682, allocations: 387.2 MB / 394.5 MB, free: 13.36 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.0009358/0.0009358, allocations: 183 kB / 487 MB, free: 0.75 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.051/1.051, allocations: 221.4 MB / 0.7819 GB, free: 6.828 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.0008042/0.0008042, allocations: 99.2 kB / 0.9213 GB, free: 43.69 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 4.468e-06/4.488e-06, allocations: 0 / 1.066 GB, free: 7.605 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4464/0.4464, allocations: 142.3 MB / 1.205 GB, free: 72.66 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.03/3.477, allocations: 2.344 GB / 3.549 GB, free: 169.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001926/3.477, allocations: 84.45 kB / 3.549 GB, free: 169.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 6.506/9.983, allocations: 2.724 GB / 6.274 GB, free: 97.03 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.0003561/9.984, allocations: 139.2 kB / 6.274 GB, free: 97 MB / 1.229 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 0.01034/9.994, allocations: 5.73 MB / 6.279 GB, free: 94.26 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/9.994, allocations: 10.56 kB / 6.279 GB, free: 94.26 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02078/10.01, allocations: 3.622 MB / 6.283 GB, free: 93.94 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/10.03, allocations: 5.256 MB / 6.288 GB, free: 93.02 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/10.03, allocations: 132.3 kB / 6.288 GB, free: 93.02 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005313/10.03, allocations: 251.3 kB / 6.288 GB, free: 93.02 MB / 1.229 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006814/10.03, allocations: 4.688 MB / 6.293 GB, free: 93 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00648/10.04, allocations: 4.371 MB / 6.297 GB, free: 92.6 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.558e-05/10.04, allocations: 8.719 kB / 6.297 GB, free: 92.59 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003869/10.04, allocations: 1.906 kB / 6.297 GB, free: 92.59 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/10.04, allocations: 163.3 kB / 6.297 GB, free: 92.59 MB / 1.229 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02642/10.07, allocations: 21.05 MB / 6.318 GB, free: 84.84 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003178/10.07, allocations: 2.497 MB / 6.32 GB, free: 84.79 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002379/10.07, allocations: 1.944 MB / 6.322 GB, free: 84.7 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01145/10.08, allocations: 8.205 MB / 6.33 GB, free: 79.65 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002808/10.09, allocations: 2.136 MB / 6.332 GB, free: 78.79 MB / 1.229 GB Notification: Performance of pre-optimization done (n=330): time 4.007e-06/10.09, allocations: 0 / 6.332 GB, free: 78.79 MB / 1.229 GB Notification: Performance of matching and sorting (n=336): time 0.02/10.11, allocations: 9.003 MB / 6.341 GB, free: 73.51 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/10.11, allocations: 268.2 kB / 6.341 GB, free: 73.19 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002932/10.11, allocations: 2.539 MB / 6.344 GB, free: 70.89 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.000255/10.11, allocations: 29.7 kB / 6.344 GB, free: 70.85 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008185/10.11, allocations: 1.353 MB / 6.345 GB, free: 69.51 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007722/10.11, allocations: 1.085 MB / 6.346 GB, free: 68.41 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002356/10.11, allocations: 6.469 kB / 6.346 GB, free: 68.4 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.00012/10.11, allocations: 433.1 kB / 6.347 GB, free: 67.97 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001968/10.11, allocations: 1.479 MB / 6.348 GB, free: 66.49 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002255/10.12, allocations: 2.156 MB / 6.35 GB, free: 64.09 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003043/10.12, allocations: 1.874 MB / 6.352 GB, free: 62.23 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-06/10.12, allocations: 4 kB / 6.352 GB, free: 62.22 MB / 1.229 GB Notification: Performance of matching and sorting (n=432) (initialization): time 0.009403/10.13, allocations: 4.914 MB / 6.357 GB, free: 57.29 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006473/10.13, allocations: 5.648 MB / 6.362 GB, free: 51.28 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/10.13, allocations: 12 kB / 6.362 GB, free: 51.27 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002685/10.13, allocations: 0.7945 MB / 6.363 GB, free: 50.49 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005395/10.14, allocations: 1.034 MB / 6.364 GB, free: 49.48 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008206/10.15, allocations: 9.554 MB / 6.374 GB, free: 39.43 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005037/10.15, allocations: 0.4939 MB / 6.374 GB, free: 38.98 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003595/10.15, allocations: 171.9 kB / 6.374 GB, free: 38.81 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 4.459e-06/10.15, allocations: 7.375 kB / 6.374 GB, free: 38.8 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008798/10.16, allocations: 4.496 MB / 6.379 GB, free: 34.27 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/10.16, allocations: 15.89 kB / 6.379 GB, free: 34.26 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002582/10.16, allocations: 0.789 MB / 6.379 GB, free: 33.46 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005201/10.17, allocations: 1.038 MB / 6.38 GB, free: 32.42 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008825/10.18, allocations: 10.47 MB / 6.391 GB, free: 21.32 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004776/10.18, allocations: 0.4952 MB / 6.391 GB, free: 20.82 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000333/10.18, allocations: 167.9 kB / 6.391 GB, free: 20.66 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.0006873/10.18, allocations: 195.7 kB / 6.391 GB, free: 20.47 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006505/10.18, allocations: 430.5 kB / 6.392 GB, free: 20.05 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/10.19, allocations: 4.993 MB / 6.397 GB, free: 15.02 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-05/10.19, allocations: 38.81 kB / 6.397 GB, free: 14.99 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/10.19, allocations: 0 / 6.397 GB, free: 14.99 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00739/10.2, allocations: 3.871 MB / 6.401 GB, free: 11.05 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01543/10.22, allocations: 9.868 MB / 6.41 GB, free: 1.012 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/10.22, allocations: 0 / 6.41 GB, free: 1.012 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004597/10.22, allocations: 0.8879 MB / 6.411 GB, free: 128 kB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/10.22, allocations: 411.3 kB / 6.411 GB, free: 15.71 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003051/10.22, allocations: 71.89 kB / 6.412 GB, free: 15.64 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007209/10.23, allocations: 9.009 MB / 6.42 GB, free: 5.977 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/10.23, allocations: 0 / 6.42 GB, free: 5.977 MB / 1.245 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01187/10.24, allocations: 6.808 MB / 6.427 GB, free: 15.05 MB / 1.26 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001839/10.24, allocations: 1.034 MB / 6.428 GB, free: 13.99 MB / 1.26 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00075/10.24, allocations: 15.92 kB / 6.428 GB, free: 13.98 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004642/10.25, allocations: 491.1 kB / 6.428 GB, free: 13.5 MB / 1.26 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003386/10.25, allocations: 202.2 kB / 6.429 GB, free: 13.3 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003516/10.25, allocations: 139.9 kB / 6.429 GB, free: 13.16 MB / 1.26 GB Notification: Performance of sort global known variables: time 0.002422/10.25, allocations: 1.892 MB / 6.431 GB, free: 11.26 MB / 1.26 GB Notification: Performance of remove unused functions: time 0.009417/10.26, allocations: 2.796 MB / 6.433 GB, free: 8.465 MB / 1.26 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.008873/10.27, allocations: 7.473 MB / 6.441 GB, free: 0.6172 MB / 1.26 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:11, 12, 9, 10, 8, 7, 13} 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]