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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.428/2.428, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001033/0.001033, allocations: 184.8 kB / 487.4 MB, free: 5.043 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.5/1.5, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 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.0008888/0.0008889, allocations: 94.67 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.88e-05/1.881e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2777, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.648/6.926, allocations: 2.344 GB / 3.55 GB, free: 338.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/6.926, allocations: 94.52 kB / 3.55 GB, free: 338.8 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.84/17.77, allocations: 2.694 GB / 6.243 GB, free: 115.2 MB / 1.245 GB Notification: Performance of FrontEnd: time 1.543e-06/17.77, allocations: 2.188 kB / 6.243 GB, free: 115.2 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.0008929/17.77, allocations: 132.1 kB / 6.244 GB, free: 115.2 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.0218/17.79, allocations: 5.593 MB / 6.249 GB, free: 113.2 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/17.79, allocations: 12.25 kB / 6.249 GB, free: 113.2 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02416/17.82, allocations: 3.333 MB / 6.252 GB, free: 112.9 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0178/17.84, allocations: 5.15 MB / 6.257 GB, free: 112.1 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002989/17.84, allocations: 129.8 kB / 6.258 GB, free: 112.1 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001941/17.84, allocations: 243.4 kB / 6.258 GB, free: 112.1 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01018/17.85, allocations: 4.523 MB / 6.262 GB, free: 112.1 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/17.86, allocations: 4.256 MB / 6.266 GB, free: 111.7 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/17.86, allocations: 0 / 6.266 GB, free: 111.7 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006367/17.86, allocations: 12.22 kB / 6.266 GB, free: 111.7 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/17.86, allocations: 162.3 kB / 6.266 GB, free: 111.7 MB / 1.245 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04402/17.9, allocations: 20.27 MB / 6.286 GB, free: 104.3 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004754/17.91, allocations: 3.717 MB / 6.29 GB, free: 103.4 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002312/17.91, allocations: 1.697 MB / 6.292 GB, free: 103.4 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01457/17.93, allocations: 7.425 MB / 6.299 GB, free: 101.4 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00311/17.93, allocations: 1.91 MB / 6.301 GB, free: 101.2 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002883/17.93, allocations: 187.6 kB / 6.301 GB, free: 101.1 MB / 1.245 GB Notification: Performance of pre-optimization done (n=304): time 6.042e-06/17.93, allocations: 0 / 6.301 GB, free: 101.1 MB / 1.245 GB Notification: Performance of matching and sorting (n=304): time 0.01106/17.94, allocations: 3.812 MB / 6.305 GB, free: 100.7 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/17.94, allocations: 290.4 kB / 6.305 GB, free: 100.4 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005771/17.95, allocations: 2.593 MB / 6.307 GB, free: 100.1 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.001133/17.95, allocations: 29.64 kB / 6.307 GB, free: 100.1 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.002124/17.95, allocations: 2.091 MB / 6.309 GB, free: 99.36 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.001302/17.95, allocations: 0.9894 MB / 6.31 GB, free: 98.69 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002577/17.95, allocations: 1.031 kB / 6.31 GB, free: 98.69 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001759/17.95, allocations: 424.5 kB / 6.311 GB, free: 98.38 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/17.96, allocations: 1.363 MB / 6.312 GB, free: 98.37 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/17.96, allocations: 2.035 MB / 6.314 GB, free: 97.68 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00347/17.96, allocations: 1.715 MB / 6.316 GB, free: 97.63 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.438e-05/17.96, allocations: 6.281 kB / 6.316 GB, free: 97.63 MB / 1.245 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01023/17.97, allocations: 4.338 MB / 6.32 GB, free: 97.26 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.001042/17.97, allocations: 5.65 MB / 6.326 GB, free: 91.38 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3e-05/17.97, allocations: 17.25 kB / 6.326 GB, free: 91.38 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00199/17.98, allocations: 0.5023 MB / 6.326 GB, free: 91.34 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006204/17.98, allocations: 1.022 MB / 6.327 GB, free: 91.34 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005311/17.99, allocations: 6.85 MB / 6.334 GB, free: 85.42 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008005/17.99, allocations: 0.5229 MB / 6.334 GB, free: 85.4 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/18, allocations: 167.7 kB / 6.334 GB, free: 85.39 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/18, allocations: 0 / 6.334 GB, free: 85.39 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009714/18.01, allocations: 3.927 MB / 6.338 GB, free: 85.16 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.481e-05/18.01, allocations: 11.41 kB / 6.338 GB, free: 85.16 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001887/18.01, allocations: 0.4987 MB / 6.339 GB, free: 85.12 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005902/18.01, allocations: 1.01 MB / 6.34 GB, free: 85.12 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00583/18.02, allocations: 7.078 MB / 6.347 GB, free: 79.04 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007448/18.03, allocations: 495.1 kB / 6.347 GB, free: 79.02 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/18.03, allocations: 160.4 kB / 6.347 GB, free: 79.02 MB / 1.245 GB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: 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.LMED:VARIABLE(unit = "J/kg" fixed = false protected = true ) "Log mean enthalpy difference" 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 (393): * Single equations (assignments): 385 * 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 3,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001253/18.03, allocations: 202.4 kB / 6.347 GB, free: 78.89 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/18.03, allocations: 422.4 kB / 6.348 GB, free: 78.68 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/18.04, allocations: 4.374 MB / 6.352 GB, free: 78.3 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.933e-05/18.04, allocations: 31.19 kB / 6.352 GB, free: 78.3 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/18.04, allocations: 5 kB / 6.352 GB, free: 78.3 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007654/18.05, allocations: 3.43 MB / 6.356 GB, free: 78 MB / 1.245 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02072/18.07, allocations: 8.806 MB / 6.364 GB, free: 77.29 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/18.07, allocations: 3.656 kB / 6.364 GB, free: 77.29 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00458/18.07, allocations: 0.7615 MB / 6.365 GB, free: 77.29 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001543/18.08, allocations: 362.1 kB / 6.365 GB, free: 77.25 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005325/18.08, allocations: 59.75 kB / 6.365 GB, free: 77.25 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007133/18.08, allocations: 8.877 MB / 6.374 GB, free: 69.45 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/18.08, allocations: 0 / 6.374 GB, free: 69.45 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/18.1, allocations: 6.023 MB / 6.38 GB, free: 68.62 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003111/18.1, allocations: 1 MB / 6.381 GB, free: 68.3 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001066/18.1, allocations: 14 kB / 6.381 GB, free: 68.3 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005173/18.11, allocations: 428.9 kB / 6.381 GB, free: 68.29 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004008/18.11, allocations: 211.5 kB / 6.381 GB, free: 68.29 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003476/18.11, allocations: 132 kB / 6.382 GB, free: 68.29 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.003484/18.11, allocations: 1.93 MB / 6.383 GB, free: 68.11 MB / 1.245 GB Notification: Performance of sort global known variables: time 1.122e-06/18.11, allocations: 0 / 6.383 GB, free: 68.11 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.01553/18.13, allocations: 3.153 MB / 6.387 GB, free: 67.63 MB / 1.245 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (313): * Single equations (assignments): 301 * 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%) 1} * 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.01626/18.14, allocations: 7.492 MB / 6.394 GB, free: 64.27 MB / 1.245 GB Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3306:7-3306:48:writable] Error: Internal error createOdeSystem2 failed for Generic Jacobian via directional derivatives [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3197:9-3197:50:writable] Error: Internal error function createOdeSystem failed for component {10, 12, 11:15, 21, 16, 17, 20, 18, 19} Size: 3 Generic Jacobian via directional derivatives [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1369:5-1369:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]