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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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: "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001831/0.001831, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.594/2.594, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.708/4.708, allocations: 409.2 MB / 0.6838 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006388/0.0006392, allocations: 8 kB / 0.8375 GB, free: 6.555 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.422/1.423, allocations: 146.8 MB / 0.9809 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.2533/1.676, allocations: 136.2 MB / 1.114 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.04896/1.725, allocations: 22.92 MB / 1.136 GB, free: 6.707 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004987/1.73, allocations: 63.62 kB / 1.136 GB, free: 6.645 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.004535/1.735, allocations: 0.9684 MB / 1.137 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01296/1.748, allocations: 2.199 MB / 1.139 GB, free: 3.473 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.009629/1.758, allocations: 1.7 MB / 1.141 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01103/1.769, allocations: 3.058 MB / 1.144 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007959/1.777, allocations: 3.033 MB / 1.147 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005241/1.782, allocations: 1.389 MB / 1.148 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004904/1.787, allocations: 1.723 MB / 1.15 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001489/1.789, allocations: 116 kB / 1.15 GB, free: 8.418 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004335/1.793, allocations: 0.5892 MB / 1.151 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.002084/1.795, allocations: 0.7393 MB / 1.151 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002254/1.797, allocations: 0.6753 MB / 1.152 GB, free: 6.402 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01218/1.81, allocations: 4.602 MB / 1.157 GB, free: 1.789 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 1.095e-05/1.81, allocations: 0 / 1.157 GB, free: 1.789 MB / 0.9044 GB Notification: Performance of FrontEnd: time 5.771e-06/1.81, allocations: 0 / 1.157 GB, free: 1.789 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004429/1.81, allocations: 0 / 1.157 GB, free: 1.789 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 851 * Number of variables: 851 Notification: Performance of Generate backend data structure: time 0.02/1.83, allocations: 4.08 MB / 1.161 GB, free: 13.62 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 7.403e-05/1.83, allocations: 12.02 kB / 1.161 GB, free: 13.61 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002591/1.833, allocations: 471.8 kB / 1.161 GB, free: 13.14 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02048/1.854, allocations: 2.905 MB / 1.164 GB, free: 10.23 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008958/1.863, allocations: 2.25 MB / 1.166 GB, free: 7.902 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004311/1.863, allocations: 250.7 kB / 1.166 GB, free: 7.656 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002102/1.865, allocations: 328 kB / 1.167 GB, free: 7.336 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02372/1.889, allocations: 5.323 MB / 1.172 GB, free: 1.938 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/1.889, allocations: 4 kB / 1.172 GB, free: 1.934 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001051/1.89, allocations: 136 kB / 1.172 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/1.89, allocations: 80 kB / 1.172 GB, free: 1.723 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02808/1.918, allocations: 6.538 MB / 1.178 GB, free: 11.17 MB / 0.9356 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.05401/1.972, allocations: 15.04 MB / 1.193 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01947/1.992, allocations: 4.921 MB / 1.198 GB, free: 6.691 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00163/1.994, allocations: 0.6776 MB / 1.199 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.011/2.005, allocations: 2.687 MB / 1.201 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=291): time 1.044e-05/2.005, allocations: 4 kB / 1.201 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of matching and sorting (n=291): time 0.03533/2.04, allocations: 7.984 MB / 1.209 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002174/2.04, allocations: 218.2 kB / 1.209 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006503/2.047, allocations: 2.512 MB / 1.212 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.001629/2.049, allocations: 89.64 kB / 1.212 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.002602/2.051, allocations: 1.412 MB / 1.213 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.002957/2.054, allocations: 0.9472 MB / 1.214 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004803/2.055, allocations: 52 kB / 1.214 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0004077/2.055, allocations: 407.2 kB / 1.215 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00779/2.063, allocations: 2.081 MB / 1.217 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009128/2.072, allocations: 2.399 MB / 1.219 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009331/2.082, allocations: 2.208 MB / 1.221 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.257e-05/2.082, allocations: 0 / 1.221 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of matching and sorting (n=328) (initialization): time 0.02436/2.106, allocations: 5.193 MB / 1.226 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.742e-05/2.106, allocations: 5.719 kB / 1.226 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.425e-05/2.106, allocations: 4 kB / 1.226 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/2.108, allocations: 352.8 kB / 1.226 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007254/2.115, allocations: 0.8541 MB / 1.227 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008901/2.124, allocations: 4.012 MB / 1.231 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006753/2.131, allocations: 0.596 MB / 1.232 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/2.132, allocations: 107.9 kB / 1.232 GB, free: 3.219 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,$PRE.intGai.nextTimeEvent,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,$PRE.HDifTil[1].incAng.decAng.tNext,HDifTil[1].incAng.decAng.tNext,$PRE.HDifTil[2].incAng.decAng.tNext,HDifTil[2].incAng.decAng.tNext,$PRE.HDirTil[1].incAng.decAng.tNext,HDirTil[1].incAng.decAng.tNext,$PRE.HDirTil[2].incAng.decAng.tNext,HDirTil[2].incAng.decAng.tNext,intGai.nextTimeEvent,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (298): * Single equations (assignments): 297 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005044/2.137, allocations: 0.9851 MB / 1.233 GB, free: 2.223 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001999/2.139, allocations: 284.6 kB / 1.233 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02699/2.166, allocations: 5.925 MB / 1.239 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.55e-05/2.166, allocations: 28 kB / 1.239 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.023e-05/2.166, allocations: 4 kB / 1.239 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001148/2.167, allocations: 23.94 kB / 1.239 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/2.179, allocations: 3.862 MB / 1.243 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.209e-05/2.179, allocations: 0 / 1.243 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006819/2.186, allocations: 0.7917 MB / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001967/2.188, allocations: 383.2 kB / 1.244 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001296/2.189, allocations: 91.86 kB / 1.244 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/2.199, allocations: 5.906 MB / 1.25 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/2.199, allocations: 0 / 1.25 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.215/3.414, allocations: 8.402 MB / 1.258 GB, free: 257.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00612/3.42, allocations: 0.907 MB / 1.259 GB, free: 256.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002291/3.423, allocations: 64.11 kB / 1.259 GB, free: 256.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007981/3.431, allocations: 464.3 kB / 1.259 GB, free: 256.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001663/3.432, allocations: 211.8 kB / 1.26 GB, free: 256.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009428/3.433, allocations: 114.7 kB / 1.26 GB, free: 256.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.006534/3.44, allocations: 1.833 MB / 1.261 GB, free: 256.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.41e-07/3.44, allocations: 0 / 1.261 GB, free: 256.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.007121/3.447, allocations: 1.08 MB / 1.263 GB, free: 256 MB / 0.9981 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 25,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.03095/3.478, allocations: 9.913 MB / 1.272 GB, free: 252.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02091/3.499, allocations: 5.076 MB / 1.277 GB, free: 250.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/3.499, allocations: 4.703 kB / 1.277 GB, free: 250.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01061/3.51, allocations: 2.919 MB / 1.28 GB, free: 247.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006735/3.517, allocations: 0.5853 MB / 1.281 GB, free: 246.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09486/3.611, allocations: 29 MB / 1.309 GB, free: 216.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003874/3.615, allocations: 2.6 MB / 1.311 GB, free: 213.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.01104/3.626, allocations: 1.163 MB / 1.313 GB, free: 212.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005797/3.632, allocations: 1.518 MB / 1.314 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of SimCode: time 2.003e-06/3.632, allocations: 0 / 1.314 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2256/3.858, allocations: 73.57 MB / 1.386 GB, free: 138.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002655/3.858, allocations: 282.2 kB / 1.386 GB, free: 137.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.993/10.85, allocations: 0 / 1.386 GB, free: 137.8 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements_res.mat --tempDir=temp_Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements.fmu > Buildings_latest_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1) Environment - environmentSimulation: