Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fluid.CHPs.BaseClasses.Validation.CoolDown,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown",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.001167/0.001167, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001615/0.001615, allocations: 194.8 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.288/1.288, allocations: 205.1 MB / 222 MB, free: 4.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.48/1.48, allocations: 292.3 MB / 0.5484 GB, free: 13.67 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 70.25 kB / 0.6709 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1699, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.003825/0.1738, allocations: 2.89 MB / 0.7856 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001953/0.1757, allocations: 1.6 MB / 0.7872 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.1759, allocations: 11.94 kB / 0.7872 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0007343/0.1766, allocations: 287.5 kB / 0.7875 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002931/0.1769, allocations: 159.3 kB / 0.7876 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000543/0.1775, allocations: 310.3 kB / 0.7879 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000615/0.1781, allocations: 0.6832 MB / 0.7886 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004416/0.1785, allocations: 437.6 kB / 0.789 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.1788, allocations: 243 kB / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003417/0.1791, allocations: 270.6 kB / 0.7895 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.287e-05/0.1792, allocations: 40 kB / 0.7895 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.1793, allocations: 87.95 kB / 0.7896 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.1795, allocations: 179.3 kB / 0.7898 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.1798, allocations: 302 kB / 0.7901 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005741/0.1804, allocations: 0.7006 MB / 0.7908 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1804, allocations: 8 kB / 0.7908 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.91e-07/0.1804, allocations: 0 / 0.7908 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.1804, allocations: 0 / 0.7908 GB, free: 5.711 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00117/0.1816, allocations: 1.021 MB / 0.7918 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.1816, allocations: 12.03 kB / 0.7918 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.79e-05/0.1817, allocations: 90.7 kB / 0.7919 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.1818, allocations: 87.91 kB / 0.7919 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000509/0.1823, allocations: 484.8 kB / 0.7924 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.1824, allocations: 49.67 kB / 0.7924 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.139e-05/0.1825, allocations: 55.94 kB / 0.7925 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008093/0.1833, allocations: 0.613 MB / 0.7931 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1833, allocations: 0 / 0.7931 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.978e-05/0.1834, allocations: 24 kB / 0.7931 GB, free: 3.113 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1834, allocations: 15.94 kB / 0.7931 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005759/0.1839, allocations: 387.5 kB / 0.7935 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.186, allocations: 2.564 MB / 0.796 GB, free: 40 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.1866, allocations: 282.8 kB / 0.7963 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.1868, allocations: 140.7 kB / 0.7964 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.1868, allocations: 7.984 kB / 0.7964 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003305/0.1872, allocations: 205.9 kB / 0.7966 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/0.1872, allocations: 0 / 0.7966 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39): time 0.000758/0.1879, allocations: 469.4 kB / 0.7971 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.188, allocations: 89.11 kB / 0.7972 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005857/0.1886, allocations: 0.6286 MB / 0.7978 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.1886, allocations: 41.7 kB / 0.7978 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/0.1889, allocations: 364.3 kB / 0.7982 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.281e-05/0.189, allocations: 102.8 kB / 0.7983 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.1891, allocations: 142.2 kB / 0.7984 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1893, allocations: 378.8 kB / 0.7987 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.1895, allocations: 133.2 kB / 0.7989 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003434/0.1899, allocations: 338.9 kB / 0.7992 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/0.1904, allocations: 413 kB / 0.7996 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1904, allocations: 0 / 0.7996 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0007208/0.1911, allocations: 0.519 MB / 0.8001 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1911, allocations: 11.94 kB / 0.8001 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1911, allocations: 16 kB / 0.8001 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1912, allocations: 8 kB / 0.8001 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.1914, allocations: 75.77 kB / 0.8002 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1914, allocations: 8 kB / 0.8002 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.1916, allocations: 59.42 kB / 0.8003 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.1917, allocations: 35.94 kB / 0.8003 GB, free: 11.39 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 54 ($PRE.transition2.enableFire,$PRE.transition1.enableFire,$PRE.transition4.enableFire,$PRE.transition3.enableFire,$PRE.transition5.enableFire,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition5.condition,stateGraphRoot.resume,stateGraphRoot.suspend,transition5.enableFire,timer.entryTime,$PRE.timer.entryTime,timer.passed,$PRE.timer.passed,transition3.enableFire,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,transition4.enableFire,transition1.enableFire,transition2.enableFire,stateGraphRoot.activeSteps,norm.oldActive,$PRE.norm.oldActive,norm.newActive,$PRE.norm.newActive,norm.outPort[2].available,norm.inPort[2].occupied,norm.localActive,$PRE.norm.localActive,norm.active,cooDow.active,cooDow.oldActive,$PRE.cooDow.oldActive,cooDow.newActive,$PRE.cooDow.newActive,cooDow.outPort[2].available,cooDow.inPort[2].occupied,cooDow.localActive,$PRE.cooDow.localActive,and1.y,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,actMod,$whenCondition4,$whenCondition3,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002563/0.1919, allocations: 262.8 kB / 0.8006 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.868e-05/0.192, allocations: 67.19 kB / 0.8006 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006444/0.1926, allocations: 403.3 kB / 0.801 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1926, allocations: 7.938 kB / 0.801 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.1927, allocations: 0 / 0.801 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.1927, allocations: 0 / 0.801 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001304/0.194, allocations: 1.059 MB / 0.802 GB, free: 9.523 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.194, allocations: 3.984 kB / 0.802 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.501e-05/0.1941, allocations: 27.92 kB / 0.8021 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1941, allocations: 0 / 0.8021 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.1941, allocations: 8 kB / 0.8021 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1941, allocations: 4 kB / 0.8021 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1941, allocations: 0 / 0.8021 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005798/0.1947, allocations: 487.2 kB / 0.8026 GB, free: 8.988 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.052e-05/0.1948, allocations: 132.2 kB / 0.8027 GB, free: 8.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.044e-05/0.1949, allocations: 15.98 kB / 0.8027 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.195, allocations: 12 kB / 0.8027 GB, free: 8.812 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-05/0.1951, allocations: 43.94 kB / 0.8027 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.1952, allocations: 16 kB / 0.8028 GB, free: 8.754 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004138/0.1956, allocations: 415 kB / 0.8032 GB, free: 8.355 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1956, allocations: 0 / 0.8032 GB, free: 8.355 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004195/0.196, allocations: 131.6 kB / 0.8033 GB, free: 8.227 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 37 (off.active,norm.active,cooDow.active,cooDow.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition1,actMod,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,and1.y,cooDow.inPort[2].occupied,cooDow.outPort[2].available,cooDow.newActive,cooDow.oldActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,norm.newActive,norm.oldActive,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,off.localActive,off.newActive,off.oldActive,transition3.enableFire,timer.passed,timer.entryTime) * Number of discrete states: 6 (runSig.combiTimeTable.nextTimeEvent,cooDow.newActive,timer.entryTime,norm.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001645/0.1977, allocations: 1.359 MB / 0.8046 GB, free: 7.008 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005761/0.1983, allocations: 382.6 kB / 0.805 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1983, allocations: 0 / 0.805 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.1985, allocations: 179.8 kB / 0.8051 GB, free: 6.457 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.199, allocations: 98.64 kB / 0.8052 GB, free: 6.367 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00545/0.2045, allocations: 5.167 MB / 0.8103 GB, free: 0.957 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005348/0.205, allocations: 0.9416 MB / 0.8112 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002155/0.2053, allocations: 76.33 kB / 0.8113 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.2056, allocations: 251.3 kB / 0.8115 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of SimCode: time 2.81e-07/0.2056, allocations: 0 / 0.8115 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6486/0.8541, allocations: 11.07 MB / 0.8223 GB, free: 4.777 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000283/0.8545, allocations: 248.2 kB / 0.8226 GB, free: 4.516 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.931, allocations: 0 / 0.8226 GB, free: 4.516 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.fmu > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1)