Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,fileNamePrefix="Buildings_9_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.007204/0.007204, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.00163/0.00163, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.111/2.111, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.91 kB / 0.9504 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7188/0.72, allocations: 140.4 MB / 1.087 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.1767/0.8967, allocations: 161.1 MB / 1.245 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.03358/0.9304, allocations: 26.92 MB / 1.271 GB, free: 1.652 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00321/0.9336, allocations: 75.62 kB / 1.271 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002526/0.9362, allocations: 1.026 MB / 1.272 GB, free: 0.5469 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005267/0.9415, allocations: 1.736 MB / 1.274 GB, free: 14.81 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004225/0.9457, allocations: 1.76 MB / 1.276 GB, free: 13.05 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.005999/0.9517, allocations: 5.131 MB / 1.281 GB, free: 7.906 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005192/0.9569, allocations: 4.373 MB / 1.285 GB, free: 3.469 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003252/0.9602, allocations: 2.127 MB / 1.287 GB, free: 1.34 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003249/0.9635, allocations: 2.569 MB / 1.289 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.000836/0.9643, allocations: 484 kB / 1.29 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.9665, allocations: 1.089 MB / 1.291 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.9676, allocations: 1.227 MB / 1.292 GB, free: 11.97 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.00245/0.97, allocations: 2.154 MB / 1.294 GB, free: 9.805 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.006727/0.9768, allocations: 6.126 MB / 1.3 GB, free: 3.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.9768, allocations: 0 / 1.3 GB, free: 3.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9768, allocations: 0 / 1.3 GB, free: 3.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001193/0.9769, allocations: 0 / 1.3 GB, free: 3.66 MB / 1.029 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.01003/0.987, allocations: 4.758 MB / 1.305 GB, free: 14.81 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.987, allocations: 8.031 kB / 1.305 GB, free: 14.8 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006153/0.9877, allocations: 467.9 kB / 1.305 GB, free: 14.33 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0139/1.002, allocations: 2.8 MB / 1.308 GB, free: 11.52 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0052/1.007, allocations: 2.385 MB / 1.31 GB, free: 9.062 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002213/1.007, allocations: 250.7 kB / 1.311 GB, free: 8.816 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008137/1.008, allocations: 328 kB / 1.311 GB, free: 8.496 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/1.019, allocations: 5.331 MB / 1.316 GB, free: 3.09 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.185e-05/1.02, allocations: 11.84 kB / 1.316 GB, free: 3.078 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003936/1.02, allocations: 140 kB / 1.316 GB, free: 2.941 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.727e-05/1.02, allocations: 87.94 kB / 1.316 GB, free: 2.855 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/1.035, allocations: 6.456 MB / 1.323 GB, free: 12.39 MB / 1.061 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.02564/1.061, allocations: 14.88 MB / 1.337 GB, free: 12.99 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/1.072, allocations: 4.859 MB / 1.342 GB, free: 8.133 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005272/1.077, allocations: 2.58 MB / 1.345 GB, free: 5.547 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008801/1.078, allocations: 0.6658 MB / 1.345 GB, free: 4.75 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005686/1.083, allocations: 2.714 MB / 1.348 GB, free: 1.996 MB / 1.076 GB Notification: Performance of pre-optimization done (n=291): time 5.34e-06/1.084, allocations: 0 / 1.348 GB, free: 1.996 MB / 1.076 GB Notification: Performance of matching and sorting (n=291): time 0.01939/1.103, allocations: 8.001 MB / 1.356 GB, free: 9.875 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.103, allocations: 214.2 kB / 1.356 GB, free: 9.621 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003271/1.106, allocations: 2.512 MB / 1.358 GB, free: 7.086 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0005042/1.107, allocations: 85.69 kB / 1.358 GB, free: 6.996 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.00114/1.108, allocations: 1.404 MB / 1.36 GB, free: 5.578 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.00103/1.109, allocations: 0.9512 MB / 1.361 GB, free: 4.613 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009221/1.11, allocations: 0.5049 MB / 1.361 GB, free: 4.102 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 8.193e-05/1.11, allocations: 301.1 kB / 1.361 GB, free: 3.805 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004812/1.115, allocations: 2.085 MB / 1.363 GB, free: 1.715 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005137/1.12, allocations: 2.419 MB / 1.366 GB, free: 15.21 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009869/1.13, allocations: 4.411 MB / 1.37 GB, free: 10.71 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/1.13, allocations: 0 / 1.37 GB, free: 10.71 MB / 1.107 GB Notification: Performance of matching and sorting (n=328) (initialization): time 0.01199/1.142, allocations: 5.197 MB / 1.375 GB, free: 5.469 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/1.142, allocations: 4 kB / 1.375 GB, free: 5.465 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/1.142, allocations: 7.984 kB / 1.375 GB, free: 5.457 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008231/1.143, allocations: 357.3 kB / 1.376 GB, free: 5.105 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003926/1.147, allocations: 0.8151 MB / 1.376 GB, free: 4.289 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005098/1.152, allocations: 4.207 MB / 1.38 GB, free: 15.94 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003763/1.156, allocations: 0.5634 MB / 1.381 GB, free: 15.38 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003563/1.156, allocations: 107.9 kB / 1.381 GB, free: 15.27 MB / 1.123 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 ($PRE.intGai.nextTimeEvent,$whenCondition1,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 (298): * Single equations (assignments): 297 * 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.001829/1.158, allocations: 0.9852 MB / 1.382 GB, free: 14.27 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00068/1.159, allocations: 284.4 kB / 1.382 GB, free: 13.99 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/1.172, allocations: 5.898 MB / 1.388 GB, free: 8.035 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/1.172, allocations: 32 kB / 1.388 GB, free: 8.004 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/1.172, allocations: 4 kB / 1.388 GB, free: 8 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.603e-05/1.172, allocations: 19.94 kB / 1.388 GB, free: 7.98 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005055/1.177, allocations: 3.863 MB / 1.392 GB, free: 4.055 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/1.177, allocations: 4 kB / 1.392 GB, free: 4.051 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003838/1.181, allocations: 0.7527 MB / 1.393 GB, free: 3.297 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/1.182, allocations: 378.2 kB / 1.393 GB, free: 2.918 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003348/1.182, allocations: 83.92 kB / 1.393 GB, free: 2.836 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006326/1.189, allocations: 6.291 MB / 1.399 GB, free: 12.24 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.189, allocations: 0 / 1.399 GB, free: 12.24 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01856/1.207, allocations: 8.405 MB / 1.407 GB, free: 3.75 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002078/1.209, allocations: 0.8676 MB / 1.408 GB, free: 2.859 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005404/1.21, allocations: 71.83 kB / 1.408 GB, free: 2.789 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003173/1.213, allocations: 423.4 kB / 1.409 GB, free: 2.375 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004898/1.214, allocations: 214.1 kB / 1.409 GB, free: 2.164 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002625/1.214, allocations: 107.9 kB / 1.409 GB, free: 2.059 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.002371/1.216, allocations: 1.838 MB / 1.411 GB, free: 216 kB / 1.139 GB Notification: Performance of sort global known variables: time 2.31e-07/1.216, allocations: 0 / 1.411 GB, free: 216 kB / 1.139 GB Notification: Performance of remove unused functions: time 0.002815/1.219, allocations: 1.067 MB / 1.412 GB, free: 15.14 MB / 1.154 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.02006/1.239, allocations: 9.923 MB / 1.422 GB, free: 5.461 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.01139/1.251, allocations: 5.097 MB / 1.427 GB, free: 328 kB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/1.251, allocations: 0 / 1.427 GB, free: 328 kB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.005958/1.257, allocations: 2.931 MB / 1.429 GB, free: 13.36 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003108/1.26, allocations: 0.6914 MB / 1.43 GB, free: 12.71 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05843/1.318, allocations: 30.51 MB / 1.46 GB, free: 13.88 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002105/1.32, allocations: 2.53 MB / 1.462 GB, free: 11.32 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.003783/1.324, allocations: 1.152 MB / 1.464 GB, free: 10.17 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002334/1.326, allocations: 1.518 MB / 1.465 GB, free: 8.648 MB / 1.201 GB Notification: Performance of SimCode: time 7.42e-07/1.326, allocations: 0 / 1.465 GB, free: 8.648 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1661/1.493, allocations: 74.22 MB / 1.538 GB, free: 14.92 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.21/18.7, allocations: 14.53 kB / 1.538 GB, free: 14.91 MB / 1.279 GB (rm -f Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements_res.mat --tempDir=temp_Buildings_9_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_ThermalZones_ReducedOrder_Examples_SimpleRoomTwoElements.fmu > Buildings_9_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)