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.007614/0.007614, allocations: 102.9 kB / 15.74 MB, free: 6.496 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.001702/0.001703, allocations: 197.7 kB / 16.68 MB, free: 6.375 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.663/2.663, allocations: 437 MB / 0.7105 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 63.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3419, allocations: 151.6 MB / 1.166 GB, free: 7.34 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003753/0.3458, allocations: 1.775 MB / 1.168 GB, free: 5.543 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002616/0.3484, allocations: 1.608 MB / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.3486, allocations: 3.938 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.3488, allocations: 23.8 kB / 1.169 GB, free: 3.898 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.349, allocations: 23.78 kB / 1.169 GB, free: 3.875 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008179/0.3498, allocations: 231.3 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003442/0.3502, allocations: 243.5 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.3504, allocations: 62.17 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.3506, allocations: 95.67 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.3508, allocations: 79.67 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.3508, allocations: 12 kB / 1.17 GB, free: 3.16 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004389/0.3513, allocations: 211.7 kB / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.3514, allocations: 75.86 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.3515, allocations: 103.4 kB / 1.171 GB, free: 2.777 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005609/0.3521, allocations: 386.6 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3521, allocations: 0 / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3521, allocations: 0 / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.384e-05/0.3521, allocations: 0 / 1.171 GB, free: 2.398 MB / 0.92 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.001049/0.3532, allocations: 0.5724 MB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3532, allocations: 8.031 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.24e-05/0.3533, allocations: 54.72 kB / 1.172 GB, free: 1.703 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.376e-05/0.3534, allocations: 24.8 kB / 1.172 GB, free: 1.68 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.3536, allocations: 242 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.3537, allocations: 24.44 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.3537, allocations: 28 kB / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003615/0.3541, allocations: 200.2 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3541, allocations: 0 / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.3542, allocations: 4 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.3542, allocations: 7.984 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.3544, allocations: 124.5 kB / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3557, allocations: 0.586 MB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008411/0.3566, allocations: 290.3 kB / 1.173 GB, free: 96 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.3568, allocations: 92.81 kB / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.3568, allocations: 4.047 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003388/0.3572, allocations: 163.5 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=26): time 1.773e-06/0.3572, allocations: 0 / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of matching and sorting (n=26): time 0.0006912/0.3579, allocations: 399.4 kB / 1.174 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.3579, allocations: 67.39 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.3581, allocations: 178.3 kB / 1.174 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.3582, allocations: 45.69 kB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.712e-05/0.3582, allocations: 124.7 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.973e-05/0.3583, allocations: 79.41 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.625e-05/0.3584, allocations: 78.12 kB / 1.174 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3586, allocations: 342.8 kB / 1.175 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.3588, allocations: 112.8 kB / 1.175 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.359, allocations: 252.6 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004385/0.3595, allocations: 367.8 kB / 1.175 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3595, allocations: 3.938 kB / 1.175 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006028/0.3601, allocations: 417 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3601, allocations: 8 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3602, allocations: 4 kB / 1.176 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.3602, allocations: 4 kB / 1.176 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.3604, allocations: 63.91 kB / 1.176 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.3604, allocations: 7.938 kB / 1.176 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.3606, allocations: 48.14 kB / 1.176 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.3606, allocations: 16 kB / 1.176 GB, free: 13.09 MB / 0.9356 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.000189/0.3608, allocations: 180.2 kB / 1.176 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.3609, allocations: 23.84 kB / 1.176 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.111e-05/0.361, allocations: 25.81 kB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.361, allocations: 4 kB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.361, allocations: 0 / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.361, allocations: 0 / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009838/0.362, allocations: 0.6726 MB / 1.177 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.362, allocations: 0 / 1.177 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.3621, allocations: 20.11 kB / 1.177 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3621, allocations: 4 kB / 1.177 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.3621, allocations: 19.92 kB / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3622, allocations: 4 kB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3622, allocations: 0 / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007178/0.3629, allocations: 0.5128 MB / 1.177 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-05/0.363, allocations: 93.02 kB / 1.177 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.498e-05/0.363, allocations: 16.03 kB / 1.177 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.3632, allocations: 23.97 kB / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.507e-05/0.3632, allocations: 11.98 kB / 1.177 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.3633, allocations: 19.98 kB / 1.177 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001011/0.3634, allocations: 140.1 kB / 1.177 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3634, allocations: 0 / 1.177 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004661/0.3639, allocations: 107.7 kB / 1.178 GB, free: 11.12 MB / 0.9356 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.001572/0.3654, allocations: 1.287 MB / 1.179 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004977/0.366, allocations: 267.6 kB / 1.179 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.366, allocations: 0.9375 kB / 1.179 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.3662, allocations: 105.9 kB / 1.179 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.3665, allocations: 30.03 kB / 1.179 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003412/0.3699, allocations: 2.923 MB / 1.182 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.3703, allocations: 0.7518 MB / 1.183 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.000136/0.3704, allocations: 50.25 kB / 1.183 GB, free: 5.555 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.3705, allocations: 63.41 kB / 1.183 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of SimCode: time 5.41e-07/0.3705, allocations: 0 / 1.183 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.3985, allocations: 5.75 MB / 1.189 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.517, allocations: 8.953 kB / 1.189 GB, free: 15.79 MB / 0.9512 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)