Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="mat",numberOfIntervals=17520,variableFilter="time|thermalZoneTwoElements.TAir",fileNamePrefix="Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="mat",numberOfIntervals=17520,variableFilter="time|thermalZoneTwoElements.TAir",fileNamePrefix="Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001622/0.001621, allocations: 105.6 kB / 16.41 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.494/2.494, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 63.91 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8174/0.8189, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.1736/0.9925, allocations: 162.6 MB / 1.367 GB, free: 10.37 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.03321/1.026, allocations: 27.13 MB / 1.394 GB, free: 15.15 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00328/1.029, allocations: 75.62 kB / 1.394 GB, free: 15.07 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.002843/1.032, allocations: 1.084 MB / 1.395 GB, free: 13.98 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.005746/1.038, allocations: 1.892 MB / 1.397 GB, free: 12.09 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.004608/1.042, allocations: 1.779 MB / 1.398 GB, free: 10.32 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.006887/1.049, allocations: 5.55 MB / 1.404 GB, free: 4.754 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005292/1.055, allocations: 4.344 MB / 1.408 GB, free: 340 kB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004025/1.059, allocations: 2.221 MB / 1.41 GB, free: 14.1 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003875/1.063, allocations: 2.628 MB / 1.413 GB, free: 11.46 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.001194/1.064, allocations: 484 kB / 1.413 GB, free: 10.99 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00261/1.066, allocations: 1.089 MB / 1.414 GB, free: 9.906 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.001261/1.068, allocations: 1.231 MB / 1.416 GB, free: 8.672 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.002919/1.071, allocations: 2.232 MB / 1.418 GB, free: 6.43 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.007804/1.079, allocations: 6.264 MB / 1.424 GB, free: 152 kB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/1.079, allocations: 0 / 1.424 GB, free: 152 kB / 1.139 GB Notification: Performance of FrontEnd: time 3.146e-06/1.079, allocations: 7.984 kB / 1.424 GB, free: 144 kB / 1.139 GB Notification: Performance of Transformations before backend: time 0.0001823/1.079, allocations: 0 / 1.424 GB, free: 144 kB / 1.139 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.01175/1.091, allocations: 4.809 MB / 1.429 GB, free: 11.25 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/1.091, allocations: 12.03 kB / 1.429 GB, free: 11.23 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01371/1.104, allocations: 2.788 MB / 1.431 GB, free: 8.438 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004693/1.109, allocations: 2.397 MB / 1.434 GB, free: 5.965 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002085/1.109, allocations: 258.7 kB / 1.434 GB, free: 5.711 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007936/1.11, allocations: 324 kB / 1.434 GB, free: 5.395 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/1.123, allocations: 5.327 MB / 1.439 GB, free: 15.99 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-05/1.123, allocations: 11.94 kB / 1.439 GB, free: 15.98 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004055/1.124, allocations: 143.9 kB / 1.44 GB, free: 15.84 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.278e-05/1.124, allocations: 83.94 kB / 1.44 GB, free: 15.76 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01587/1.14, allocations: 6.464 MB / 1.446 GB, free: 9.281 MB / 1.17 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.03045/1.17, allocations: 15.67 MB / 1.461 GB, free: 8.906 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01188/1.182, allocations: 4.879 MB / 1.466 GB, free: 4.027 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006066/1.188, allocations: 2.576 MB / 1.468 GB, free: 1.441 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001072/1.189, allocations: 0.6736 MB / 1.469 GB, free: 0.6367 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006739/1.196, allocations: 2.714 MB / 1.472 GB, free: 13.88 MB / 1.201 GB Notification: Performance of pre-optimization done (n=291): time 6.852e-06/1.196, allocations: 3.938 kB / 1.472 GB, free: 13.88 MB / 1.201 GB Notification: Performance of matching and sorting (n=291): time 0.02353/1.22, allocations: 8.009 MB / 1.48 GB, free: 5.754 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/1.22, allocations: 218.2 kB / 1.48 GB, free: 5.496 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004365/1.224, allocations: 2.52 MB / 1.482 GB, free: 2.953 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 0.000835/1.225, allocations: 85.69 kB / 1.482 GB, free: 2.863 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.00149/1.226, allocations: 1.393 MB / 1.484 GB, free: 1.453 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.001648/1.228, allocations: 0.9472 MB / 1.485 GB, free: 0.4922 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002295/1.23, allocations: 0.5209 MB / 1.485 GB, free: 15.96 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001053/1.231, allocations: 301.1 kB / 1.485 GB, free: 15.66 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005478/1.236, allocations: 2.109 MB / 1.488 GB, free: 13.55 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005911/1.242, allocations: 2.424 MB / 1.49 GB, free: 11.05 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/1.254, allocations: 4.447 MB / 1.494 GB, free: 6.523 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/1.254, allocations: 0 / 1.494 GB, free: 6.523 MB / 1.217 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01522/1.269, allocations: 5.261 MB / 1.499 GB, free: 1.215 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/1.269, allocations: 10.03 kB / 1.499 GB, free: 1.207 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/1.269, allocations: 7.938 kB / 1.499 GB, free: 1.199 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000944/1.27, allocations: 341.3 kB / 1.5 GB, free: 0.8633 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004542/1.274, allocations: 0.8229 MB / 1.501 GB, free: 40 kB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005722/1.28, allocations: 4.215 MB / 1.505 GB, free: 11.69 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004436/1.285, allocations: 0.5635 MB / 1.505 GB, free: 11.12 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007945/1.285, allocations: 127.8 kB / 1.505 GB, free: 11 MB / 1.232 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.intGai.nextTimeEvent,$whenCondition1,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,intGai.nextTimeEventScaled,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEvent,HDirTil[2].incAng.decAng.tNext,$PRE.HDirTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,$PRE.HDirTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,$PRE.HDifTil[2].incAng.decAng.tNext,HDifTil[1].incAng.decAng.tNext,$PRE.HDifTil[1].incAng.decAng.tNext,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,28,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003031/1.289, allocations: 0.9813 MB / 1.506 GB, free: 10 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/1.29, allocations: 288.4 kB / 1.507 GB, free: 9.719 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01582/1.306, allocations: 5.899 MB / 1.512 GB, free: 3.762 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.197e-05/1.306, allocations: 36 kB / 1.512 GB, free: 3.727 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/1.306, allocations: 7.938 kB / 1.512 GB, free: 3.719 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.102e-05/1.306, allocations: 11.95 kB / 1.512 GB, free: 3.707 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007174/1.313, allocations: 3.851 MB / 1.516 GB, free: 15.8 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.904e-05/1.313, allocations: 0 / 1.516 GB, free: 15.8 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004268/1.317, allocations: 0.7565 MB / 1.517 GB, free: 15.04 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/1.319, allocations: 386.5 kB / 1.517 GB, free: 14.66 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000694/1.319, allocations: 83.92 kB / 1.517 GB, free: 14.57 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006726/1.326, allocations: 6.303 MB / 1.523 GB, free: 7.965 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/1.326, allocations: 0 / 1.523 GB, free: 7.965 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02116/1.347, allocations: 8.421 MB / 1.532 GB, free: 15.46 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/1.35, allocations: 0.8637 MB / 1.533 GB, free: 14.57 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001277/1.351, allocations: 71.84 kB / 1.533 GB, free: 14.5 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003974/1.355, allocations: 421.3 kB / 1.533 GB, free: 14.09 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008076/1.356, allocations: 214.1 kB / 1.533 GB, free: 13.88 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006058/1.356, allocations: 107.9 kB / 1.533 GB, free: 13.77 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.003422/1.36, allocations: 1.838 MB / 1.535 GB, free: 11.93 MB / 1.264 GB Notification: Performance of sort global known variables: time 5.11e-07/1.36, allocations: 0 / 1.535 GB, free: 11.93 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.004173/1.364, allocations: 1.122 MB / 1.536 GB, free: 10.8 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (thermalZoneTwoElements.volAir.dynBal.U,thermalZoneTwoElements.volAir.dynBal.m,thermalZoneTwoElements.extWallRC.thermCapExt[1].T,thermalZoneTwoElements.intWallRC.thermCapInt[1].T) * Number of discrete variables: 21 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDifTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,HDirTil[2].incAng.decAng.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 11 (intGai.nextTimeEventScaled,intGai.nextTimeEvent,HDirTil[2].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,HDifTil[1].incAng.decAng.tNext,weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,25,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003115/1.367, allocations: 1.056 MB / 1.537 GB, free: 10.08 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.01332/1.381, allocations: 5.133 MB / 1.542 GB, free: 4.91 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.381, allocations: 0 / 1.542 GB, free: 4.91 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.007686/1.388, allocations: 2.922 MB / 1.545 GB, free: 1.957 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005112/1.394, allocations: 0.7319 MB / 1.546 GB, free: 1.262 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01885/1.412, allocations: 8.239 MB / 1.554 GB, free: 8.977 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003074/1.416, allocations: 2.45 MB / 1.556 GB, free: 6.496 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002541/1.418, allocations: 331.1 kB / 1.557 GB, free: 6.172 MB / 1.279 GB Notification: Performance of SimCode: time 1.112e-06/1.418, allocations: 0 / 1.557 GB, free: 6.172 MB / 1.279 GB Notification: Performance of Templates: time 0.7081/2.126, allocations: 88.42 MB / 1.643 GB, free: 277.4 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.makefile (rm -f Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & ./Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches