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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001053/0.001053, allocations: 180.8 kB / 487.4 MB, free: 5.035 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.518/1.518, allocations: 221.5 MB / 0.7824 GB, free: 0.9062 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.001015/0.001016, allocations: 91.91 kB / 0.9219 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.858e-05/1.852e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2873, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.353/7.64, allocations: 2.344 GB / 3.55 GB, free: 413.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003701/7.641, allocations: 86.7 kB / 3.55 GB, free: 413.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.56/18.2, allocations: 2.694 GB / 6.244 GB, free: 15.91 MB / 1.26 GB Notification: Performance of FrontEnd: time 2.856e-06/18.2, allocations: 0 / 6.244 GB, free: 15.91 MB / 1.26 GB Notification: Performance of Transformations before backend: time 0.001069/18.2, allocations: 135.8 kB / 6.244 GB, free: 15.78 MB / 1.26 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.0239/18.23, allocations: 5.595 MB / 6.249 GB, free: 10.11 MB / 1.26 GB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/18.23, allocations: 8.031 kB / 6.249 GB, free: 10.1 MB / 1.26 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0248/18.25, allocations: 3.333 MB / 6.252 GB, free: 6.754 MB / 1.26 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02059/18.27, allocations: 5.146 MB / 6.257 GB, free: 1.551 MB / 1.26 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000403/18.27, allocations: 128 kB / 6.258 GB, free: 1.426 MB / 1.26 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002496/18.28, allocations: 244 kB / 6.258 GB, free: 1.188 MB / 1.26 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 1.168/19.44, allocations: 4.525 MB / 6.262 GB, free: 114.9 MB / 1.26 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01612/19.46, allocations: 4.251 MB / 6.266 GB, free: 114.6 MB / 1.26 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001176/19.46, allocations: 6.281 kB / 6.266 GB, free: 114.6 MB / 1.26 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006136/19.46, allocations: 2.75 kB / 6.266 GB, free: 114.6 MB / 1.26 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002294/19.46, allocations: 158.8 kB / 6.266 GB, free: 114.5 MB / 1.26 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.04979/19.51, allocations: 20.28 MB / 6.286 GB, free: 107.6 MB / 1.26 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005847/19.52, allocations: 3.717 MB / 6.29 GB, free: 106.7 MB / 1.26 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002772/19.52, allocations: 1.696 MB / 6.292 GB, free: 106.7 MB / 1.26 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01656/19.54, allocations: 7.432 MB / 6.299 GB, free: 104.7 MB / 1.26 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003386/19.54, allocations: 1.905 MB / 6.301 GB, free: 104.6 MB / 1.26 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003325/19.54, allocations: 190.4 kB / 6.301 GB, free: 104.5 MB / 1.26 GB Notification: Performance of pre-optimization done (n=304): time 9.338e-06/19.54, allocations: 0 / 6.301 GB, free: 104.5 MB / 1.26 GB Notification: Performance of matching and sorting (n=304): time 0.01155/19.56, allocations: 3.81 MB / 6.305 GB, free: 104.2 MB / 1.26 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/19.56, allocations: 289.1 kB / 6.305 GB, free: 103.8 MB / 1.26 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005875/19.56, allocations: 2.592 MB / 6.307 GB, free: 103.6 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.001069/19.56, allocations: 30.7 kB / 6.307 GB, free: 103.5 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.002494/19.57, allocations: 2.097 MB / 6.309 GB, free: 103 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.001674/19.57, allocations: 0.9813 MB / 6.31 GB, free: 102.5 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/19.57, allocations: 0 / 6.31 GB, free: 102.5 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.000213/19.57, allocations: 431.8 kB / 6.311 GB, free: 102.2 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00242/19.57, allocations: 1.36 MB / 6.312 GB, free: 102.2 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002707/19.57, allocations: 2.038 MB / 6.314 GB, free: 101.5 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004199/19.58, allocations: 1.714 MB / 6.316 GB, free: 101.4 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-05/19.58, allocations: 4.219 kB / 6.316 GB, free: 101.4 MB / 1.26 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01256/19.59, allocations: 4.335 MB / 6.32 GB, free: 101 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.001481/19.59, allocations: 5.65 MB / 6.326 GB, free: 95.17 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.873e-05/19.59, allocations: 12.38 kB / 6.326 GB, free: 95.17 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/19.59, allocations: 0.5029 MB / 6.326 GB, free: 95.13 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007115/19.6, allocations: 1.024 MB / 6.327 GB, free: 95.13 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005973/19.61, allocations: 6.849 MB / 6.334 GB, free: 89.2 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008268/19.61, allocations: 0.5213 MB / 6.334 GB, free: 89.19 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/19.62, allocations: 162 kB / 6.334 GB, free: 89.19 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/19.62, allocations: 5.906 kB / 6.334 GB, free: 89.19 MB / 1.26 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01156/19.63, allocations: 3.92 MB / 6.338 GB, free: 88.96 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.532e-05/19.63, allocations: 15.48 kB / 6.338 GB, free: 88.96 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002067/19.63, allocations: 0.5033 MB / 6.339 GB, free: 88.93 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006316/19.64, allocations: 1.006 MB / 6.34 GB, free: 88.93 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006656/19.64, allocations: 7.082 MB / 6.347 GB, free: 82.84 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007984/19.65, allocations: 0.4912 MB / 6.347 GB, free: 82.82 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/19.65, allocations: 157.8 kB / 6.347 GB, free: 82.82 MB / 1.26 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.001526/19.65, allocations: 203.7 kB / 6.348 GB, free: 82.71 MB / 1.26 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01037/19.66, allocations: 3.63 MB / 6.351 GB, free: 82.33 MB / 1.26 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001873/19.67, allocations: 419.6 kB / 6.351 GB, free: 82.12 MB / 1.26 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/19.68, allocations: 4.38 MB / 6.356 GB, free: 81.76 MB / 1.26 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.194e-05/19.68, allocations: 33.7 kB / 6.356 GB, free: 81.76 MB / 1.26 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/19.68, allocations: 0 / 6.356 GB, free: 81.76 MB / 1.26 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008705/19.69, allocations: 3.427 MB / 6.359 GB, free: 81.46 MB / 1.26 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.02177/19.71, allocations: 8.806 MB / 6.368 GB, free: 80.76 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/19.71, allocations: 4.469 kB / 6.368 GB, free: 80.76 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004429/19.71, allocations: 0.7721 MB / 6.368 GB, free: 80.76 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/19.72, allocations: 365.5 kB / 6.369 GB, free: 80.71 MB / 1.26 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004511/19.72, allocations: 58.33 kB / 6.369 GB, free: 80.71 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00645/19.72, allocations: 8.874 MB / 6.378 GB, free: 72.91 MB / 1.26 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/19.72, allocations: 0.75 kB / 6.378 GB, free: 72.91 MB / 1.26 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/19.74, allocations: 6.016 MB / 6.383 GB, free: 72.08 MB / 1.26 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00341/19.74, allocations: 1.003 MB / 6.384 GB, free: 71.77 MB / 1.26 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001315/19.74, allocations: 6.5 kB / 6.384 GB, free: 71.77 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005875/19.75, allocations: 436.2 kB / 6.385 GB, free: 71.76 MB / 1.26 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004684/19.75, allocations: 213.7 kB / 6.385 GB, free: 71.75 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004418/19.75, allocations: 134.7 kB / 6.385 GB, free: 71.75 MB / 1.26 GB Notification: Performance of sorting global known variables: time 0.004601/19.75, allocations: 1.928 MB / 6.387 GB, free: 71.57 MB / 1.26 GB Notification: Performance of sort global known variables: time 2.1e-07/19.75, allocations: 0 / 6.387 GB, free: 71.57 MB / 1.26 GB Notification: Performance of remove unused functions: time 0.02221/19.77, allocations: 3.155 MB / 6.39 GB, free: 71.39 MB / 1.26 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.02631/19.8, allocations: 14.13 MB / 6.404 GB, free: 66.71 MB / 1.26 GB Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins1/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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1369:5-1369:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/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]