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.001282/0.001282, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.502/2.502, allocations: 437.1 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 64.14 kB / 0.8693 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5924/0.5937, allocations: 151.6 MB / 1.017 GB, free: 2.559 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003186/0.5969, allocations: 1.77 MB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002303/0.5992, allocations: 1.604 MB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.191e-05/0.5993, allocations: 4 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.5995, allocations: 19.8 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001232/0.5997, allocations: 27.78 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007517/0.6004, allocations: 235.2 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002852/0.6007, allocations: 239.5 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.6009, allocations: 64.08 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.6011, allocations: 91.73 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.6013, allocations: 83.67 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.6013, allocations: 12 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004238/0.6018, allocations: 199.6 kB / 1.022 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.6019, allocations: 75.8 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.602, allocations: 91.52 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000457/0.6025, allocations: 375 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.6025, allocations: 0 / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6025, allocations: 0 / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.6025, allocations: 0 / 1.022 GB, free: 13.67 MB / 0.7794 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.001003/0.6035, allocations: 0.5613 MB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.6036, allocations: 12.03 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.321e-05/0.6036, allocations: 62.66 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.6037, allocations: 28.66 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.604, allocations: 239.9 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.6041, allocations: 20.45 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.429e-05/0.6041, allocations: 27.98 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/0.6045, allocations: 196.2 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.6045, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.6045, allocations: 8 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.6045, allocations: 4 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.6048, allocations: 128.1 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.606, allocations: 0.5859 MB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008228/0.6069, allocations: 282.4 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.607, allocations: 92.8 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.6071, allocations: 4 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003428/0.6074, allocations: 168.8 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.6074, allocations: 4 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26): time 0.0007136/0.6081, allocations: 380.9 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.6082, allocations: 67.41 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.6084, allocations: 182.2 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.6084, allocations: 41.7 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.17e-05/0.6085, allocations: 120.7 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.456e-05/0.6086, allocations: 82.98 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.6087, allocations: 78.14 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6089, allocations: 346.7 kB / 1.026 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.6091, allocations: 112.8 kB / 1.026 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.6094, allocations: 248.6 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.6099, allocations: 371.8 kB / 1.026 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.6099, allocations: 7.938 kB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007083/0.6106, allocations: 408.8 kB / 1.027 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.6106, allocations: 4 kB / 1.027 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.6106, allocations: 4 kB / 1.027 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001039/0.6107, allocations: 11.98 kB / 1.027 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.6109, allocations: 55.92 kB / 1.027 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.611, allocations: 15.92 kB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.6111, allocations: 48.14 kB / 1.027 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.6112, allocations: 16 kB / 1.027 GB, free: 8.375 MB / 0.7794 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.0001741/0.6114, allocations: 176.2 kB / 1.027 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.6114, allocations: 23.72 kB / 1.027 GB, free: 8.168 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.673e-05/0.6115, allocations: 29.84 kB / 1.027 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.6115, allocations: 7.938 kB / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.6115, allocations: 0 / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6115, allocations: 0 / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009737/0.6125, allocations: 0.6738 MB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.6125, allocations: 0 / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.6126, allocations: 19.92 kB / 1.028 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.6126, allocations: 0 / 1.028 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.6126, allocations: 15.98 kB / 1.028 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.6126, allocations: 4 kB / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6126, allocations: 0 / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006853/0.6133, allocations: 0.5053 MB / 1.028 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.988e-05/0.6134, allocations: 96.95 kB / 1.028 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.6135, allocations: 20.03 kB / 1.029 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.6136, allocations: 28.06 kB / 1.029 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.6137, allocations: 19.92 kB / 1.029 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.6137, allocations: 11.98 kB / 1.029 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.718e-05/0.6138, allocations: 140.2 kB / 1.029 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6138, allocations: 0 / 1.029 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004576/0.6143, allocations: 107.9 kB / 1.029 GB, free: 6.414 MB / 0.7794 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.001663/0.616, allocations: 1.273 MB / 1.03 GB, free: 5.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000576/0.6166, allocations: 320.4 kB / 1.03 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.6166, allocations: 0 / 1.03 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.6168, allocations: 114.1 kB / 1.03 GB, free: 4.758 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.6171, allocations: 25.69 kB / 1.03 GB, free: 4.734 MB / 0.7794 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.6207, allocations: 2.897 MB / 1.033 GB, free: 1.648 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004373/0.6211, allocations: 0.7479 MB / 1.034 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001486/0.6213, allocations: 50.25 kB / 1.034 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.6214, allocations: 67.41 kB / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of SimCode: time 1.132e-06/0.6214, allocations: 0 / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5361/1.157, allocations: 5.653 MB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.345/8.503, allocations: 5.781 kB / 1.04 GB, free: 11.16 MB / 0.795 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)