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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.239/2.239, allocations: 387.4 MB / 394.9 MB, free: 13.31 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.001055/0.001055, allocations: 176.9 kB / 487.4 MB, free: 5.004 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.45/1.45, allocations: 221.5 MB / 0.7824 GB, free: 0.9492 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.001155/0.001155, allocations: 91.8 kB / 0.9219 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.406e-05/1.432e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.278, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.509/6.787, allocations: 2.344 GB / 3.55 GB, free: 338.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/6.787, allocations: 88.36 kB / 3.55 GB, free: 338.7 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 11.16/17.95, allocations: 2.695 GB / 6.245 GB, free: 114.9 MB / 1.245 GB Notification: Performance of FrontEnd: time 2.555e-06/17.95, allocations: 0 / 6.245 GB, free: 114.9 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.000979/17.95, allocations: 137.8 kB / 6.245 GB, free: 114.8 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: 1033 * Number of variables: 1033 Notification: Performance of Generate backend data structure: time 0.02264/17.97, allocations: 5.639 MB / 6.251 GB, free: 112.9 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/17.97, allocations: 12.5 kB / 6.251 GB, free: 112.9 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02367/17.99, allocations: 3.336 MB / 6.254 GB, free: 112.5 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01831/18.01, allocations: 5.159 MB / 6.259 GB, free: 111.7 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003503/18.01, allocations: 133.4 kB / 6.259 GB, free: 111.7 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002089/18.01, allocations: 247.1 kB / 6.259 GB, free: 111.7 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01261/18.03, allocations: 4.549 MB / 6.264 GB, free: 111.7 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01586/18.04, allocations: 4.277 MB / 6.268 GB, free: 111.3 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002143/18.04, allocations: 4.844 kB / 6.268 GB, free: 111.3 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001434/18.04, allocations: 9.234 kB / 6.268 GB, free: 111.3 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001759/18.04, allocations: 164.4 kB / 6.268 GB, free: 111.3 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.04405/18.09, allocations: 20.19 MB / 6.288 GB, free: 104.2 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007154/18.1, allocations: 3.966 MB / 6.292 GB, free: 103.2 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004484/18.1, allocations: 1.784 MB / 6.293 GB, free: 103.1 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02353/18.12, allocations: 7.908 MB / 6.301 GB, free: 100.8 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004218/18.13, allocations: 2.001 MB / 6.303 GB, free: 100.7 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002853/18.13, allocations: 188.8 kB / 6.303 GB, free: 100.5 MB / 1.245 GB Notification: Performance of pre-optimization done (n=318): time 8.095e-06/18.13, allocations: 0 / 6.303 GB, free: 100.5 MB / 1.245 GB Notification: Performance of matching and sorting (n=324): time 0.02626/18.16, allocations: 8.434 MB / 6.311 GB, free: 99.12 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/18.16, allocations: 273.9 kB / 6.312 GB, free: 98.83 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007865/18.17, allocations: 2.513 MB / 6.314 GB, free: 98.54 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.001316/18.17, allocations: 31.3 kB / 6.314 GB, free: 98.51 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.003018/18.17, allocations: 2.09 MB / 6.316 GB, free: 97.79 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.002191/18.17, allocations: 1.047 MB / 6.317 GB, free: 97.08 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000869/18.17, allocations: 0 / 6.317 GB, free: 97.08 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.000391/18.17, allocations: 437.9 kB / 6.318 GB, free: 96.77 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003585/18.18, allocations: 1.407 MB / 6.319 GB, free: 96.76 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003999/18.18, allocations: 2.088 MB / 6.321 GB, free: 96.07 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005017/18.19, allocations: 1.765 MB / 6.323 GB, free: 96.02 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.566e-05/18.19, allocations: 3.438 kB / 6.323 GB, free: 96.02 MB / 1.245 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.01347/18.2, allocations: 4.642 MB / 6.327 GB, free: 95.64 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.00121/18.2, allocations: 5.662 MB / 6.333 GB, free: 89.76 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.993e-05/18.2, allocations: 14.19 kB / 6.333 GB, free: 89.76 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002638/18.2, allocations: 0.72 MB / 6.334 GB, free: 89.71 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006149/18.21, allocations: 1.006 MB / 6.335 GB, free: 89.71 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009351/18.22, allocations: 9.27 MB / 6.344 GB, free: 83.03 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007968/18.23, allocations: 491 kB / 6.344 GB, free: 83.01 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001295/18.23, allocations: 163.9 kB / 6.344 GB, free: 83.01 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/18.23, allocations: 3.594 kB / 6.344 GB, free: 83.01 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01414/18.24, allocations: 4.239 MB / 6.348 GB, free: 82.77 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.06e-05/18.24, allocations: 14.31 kB / 6.348 GB, free: 82.77 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002565/18.25, allocations: 0.7177 MB / 6.349 GB, free: 82.71 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006163/18.25, allocations: 0.9981 MB / 6.35 GB, free: 82.71 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/18.26, allocations: 10.09 MB / 6.36 GB, free: 75.3 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007215/18.27, allocations: 491.7 kB / 6.36 GB, free: 75.27 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/18.27, allocations: 163.7 kB / 6.361 GB, free: 75.27 MB / 1.245 GB Warning: Iteration variables with default zero start attribute in equation system with 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 (381): * Single equations (assignments): 373 * 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 22,1 2,1 3,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002248/18.27, allocations: 197.3 kB / 6.361 GB, free: 75.15 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002/18.27, allocations: 423.9 kB / 6.361 GB, free: 74.93 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/18.29, allocations: 4.637 MB / 6.366 GB, free: 74.56 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.505e-05/18.29, allocations: 37.42 kB / 6.366 GB, free: 74.56 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.291e-05/18.29, allocations: 2.969 kB / 6.366 GB, free: 74.56 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0102/18.3, allocations: 3.653 MB / 6.369 GB, free: 74.25 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.03161/18.33, allocations: 9.267 MB / 6.378 GB, free: 73.5 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/18.33, allocations: 0 / 6.378 GB, free: 73.5 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005085/18.34, allocations: 0.8475 MB / 6.379 GB, free: 73.5 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001554/18.34, allocations: 386.2 kB / 6.379 GB, free: 73.46 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007621/18.34, allocations: 65.06 kB / 6.38 GB, free: 73.46 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006778/18.35, allocations: 8.912 MB / 6.388 GB, free: 65.66 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/18.35, allocations: 3.953 kB / 6.388 GB, free: 65.65 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0168/18.36, allocations: 6.456 MB / 6.395 GB, free: 64.82 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004886/18.37, allocations: 1.027 MB / 6.396 GB, free: 64.5 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003037/18.37, allocations: 10.38 kB / 6.396 GB, free: 64.5 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008206/18.38, allocations: 470.4 kB / 6.396 GB, free: 64.49 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/18.38, allocations: 223.2 kB / 6.396 GB, free: 64.48 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001075/18.38, allocations: 143.3 kB / 6.396 GB, free: 64.48 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.005255/18.39, allocations: 1.877 MB / 6.398 GB, free: 64.3 MB / 1.245 GB Notification: Performance of sort global known variables: time 8.21e-07/18.39, allocations: 0 / 6.398 GB, free: 64.3 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.0185/18.4, allocations: 2.8 MB / 6.401 GB, free: 64.18 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.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 (336): * Single equations (assignments): 324 * 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%) 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.01281/18.42, allocations: 7.48 MB / 6.408 GB, free: 60.84 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 {12, 11, 10:12, 11, 10, 9, 8, 7, 13} 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]