Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Utilities.IO.Python_3_8.Examples.SimpleRoom,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom",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.009385/0.009385, allocations: 98.3 kB / 15.73 MB, free: 5.977 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.002373/0.002373, allocations: 196.8 kB / 16.68 MB, free: 5.906 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.6/1.6, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.656/2.656, allocations: 437 MB / 0.7105 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 68.09 kB / 1.018 GB, free: 9.871 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8072/0.8091, allocations: 151.6 MB / 1.166 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003378/0.8125, allocations: 1.767 MB / 1.168 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002545/0.8151, allocations: 1.615 MB / 1.169 GB, free: 344 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.741e-05/0.8152, allocations: 4 kB / 1.169 GB, free: 340 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.8154, allocations: 27.78 kB / 1.169 GB, free: 312 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.8155, allocations: 15.81 kB / 1.169 GB, free: 296 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.8162, allocations: 243.2 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.8165, allocations: 235.6 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.8167, allocations: 57.89 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.8169, allocations: 87.69 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.817, allocations: 87.66 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.8171, allocations: 12 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003965/0.8175, allocations: 215.6 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.8176, allocations: 79.78 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.8177, allocations: 87.55 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.8182, allocations: 378.4 kB / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.8182, allocations: 0 / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.183e-06/0.8182, allocations: 0 / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.8183, allocations: 0 / 1.171 GB, free: 14.83 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00108/0.8193, allocations: 0.5841 MB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.8194, allocations: 8.922 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.932e-05/0.8195, allocations: 50.73 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.8195, allocations: 28.78 kB / 1.172 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.8198, allocations: 246.2 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.8199, allocations: 32.33 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.8199, allocations: 23.98 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004187/0.8203, allocations: 196.2 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.8204, allocations: 4 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.8204, allocations: 11.92 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.8204, allocations: 4 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002896/0.8207, allocations: 116.5 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.8222, allocations: 0.5898 MB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008738/0.823, allocations: 283.7 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.8232, allocations: 92.81 kB / 1.173 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.8233, allocations: 4 kB / 1.173 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003611/0.8236, allocations: 171.5 kB / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=26): time 2.134e-06/0.8236, allocations: 0 / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of matching and sorting (n=26): time 0.0007476/0.8244, allocations: 388.8 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.655e-05/0.8245, allocations: 71.38 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.8247, allocations: 179.4 kB / 1.174 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.8247, allocations: 45.69 kB / 1.174 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.086e-05/0.8248, allocations: 124.7 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.694e-05/0.8249, allocations: 79.42 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.825, allocations: 82.12 kB / 1.174 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.8252, allocations: 338.8 kB / 1.175 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.8254, allocations: 112.8 kB / 1.175 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.8258, allocations: 256.5 kB / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005031/0.8263, allocations: 360 kB / 1.175 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.8263, allocations: 7.938 kB / 1.175 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006826/0.827, allocations: 420.9 kB / 1.176 GB, free: 9.656 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.827, allocations: 4 kB / 1.176 GB, free: 9.652 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.827, allocations: 4 kB / 1.176 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.827, allocations: 8 kB / 1.176 GB, free: 9.641 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.8273, allocations: 64.31 kB / 1.176 GB, free: 9.578 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.8273, allocations: 12 kB / 1.176 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.8275, allocations: 39.77 kB / 1.176 GB, free: 9.527 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.8275, allocations: 16 kB / 1.176 GB, free: 9.512 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 34 (pyt.firstTrigger,$PRE.pyt.firstTrigger,pyt.yR[2],$PRE.pyt.yR[2],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[4],$PRE.pyt.uRIntPre[4],pyt.uRWri_temp[1],$PRE.pyt.uRWri_temp[1],pyt.uRWri[1],$PRE.pyt.uRWri[1],pyt.uRWri_temp[4],$PRE.pyt.uRWri_temp[4],pyt.uRWri[4],$PRE.pyt.uRWri[4],pyt.sampleTrigger,$whenCondition1,onOffCon.y,$PRE.onOffCon.y,pyt.uRWri_temp[3],$PRE.pyt.uRWri_temp[3],pyt.uRWri[3],$PRE.pyt.uRWri[3],pyt.yR[1],$PRE.pyt.yR[1],pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 50 * 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.0002019/0.8277, allocations: 188.2 kB / 1.176 GB, free: 9.32 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.8278, allocations: 19.86 kB / 1.176 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.353e-05/0.8278, allocations: 21.86 kB / 1.176 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.8279, allocations: 7.938 kB / 1.176 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.8279, allocations: 0 / 1.176 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.8279, allocations: 0 / 1.176 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.8289, allocations: 0.6821 MB / 1.177 GB, free: 8.527 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.8289, allocations: 0 / 1.177 GB, free: 8.527 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.8291, allocations: 19.98 kB / 1.177 GB, free: 8.508 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.8291, allocations: 0 / 1.177 GB, free: 8.508 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.8291, allocations: 11.98 kB / 1.177 GB, free: 8.496 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.8291, allocations: 4.188 kB / 1.177 GB, free: 8.492 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.8291, allocations: 4 kB / 1.177 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007858/0.8299, allocations: 0.5094 MB / 1.177 GB, free: 7.965 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.11e-05/0.83, allocations: 96.98 kB / 1.177 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.165e-05/0.8301, allocations: 23.98 kB / 1.177 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.8302, allocations: 15.98 kB / 1.177 GB, free: 7.812 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.8303, allocations: 19.97 kB / 1.177 GB, free: 7.793 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/0.8303, allocations: 15.98 kB / 1.177 GB, free: 7.777 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.000128/0.8305, allocations: 136.8 kB / 1.177 GB, free: 7.645 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8305, allocations: 0 / 1.177 GB, free: 7.645 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004999/0.831, allocations: 111.7 kB / 1.178 GB, free: 7.535 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pyt.uRInt[1],pyt.uRInt[2],pyt.uRInt[3],pyt.uRInt[4]) * Number of discrete variables: 18 (pyt.sampleTrigger,$whenCondition1,pyt.firstTrigger,pyt.yR[1],pyt.yR[2],pyt.uRIntPre[1],pyt.uRIntPre[2],pyt.uRIntPre[3],pyt.uRIntPre[4],pyt.uRWri[1],pyt.uRWri[2],pyt.uRWri[3],pyt.uRWri[4],pyt.uRWri_temp[1],pyt.uRWri_temp[2],pyt.uRWri_temp[3],pyt.uRWri_temp[4],onOffCon.y) * Number of discrete states: 5 (pyt.uR[1],pyt.uR[2],pyt.uR[3],pyt.uR[4],onOffCon.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.001898/0.8329, allocations: 1.272 MB / 1.179 GB, free: 6.309 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005367/0.8334, allocations: 283.5 kB / 1.179 GB, free: 6.035 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.8335, allocations: 4.062 kB / 1.179 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.8337, allocations: 103.9 kB / 1.179 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.834, allocations: 23.98 kB / 1.179 GB, free: 5.906 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.8377, allocations: 2.919 MB / 1.182 GB, free: 2.801 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.8382, allocations: 0.7402 MB / 1.183 GB, free: 2.035 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001344/0.8383, allocations: 54.44 kB / 1.183 GB, free: 1.984 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.97e-05/0.8384, allocations: 63.41 kB / 1.183 GB, free: 1.922 MB / 0.9044 GB Notification: Performance of SimCode: time 4.41e-07/0.8384, allocations: 3.938 kB / 1.183 GB, free: 1.918 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.8713, allocations: 5.752 MB / 1.189 GB, free: 12.2 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/9.367, allocations: 2.625 kB / 1.189 GB, free: 12.2 MB / 0.92 GB (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1)