Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001347/0.001347, allocations: 108 kB / 15.61 MB, free: 152 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.00139/0.00139, allocations: 196 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.822/2.822, allocations: 469.8 MB / 0.7424 GB, free: 7.477 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 70 kB / 0.9087 GB, free: 34.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2731, allocations: 159.2 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003247/0.2763, allocations: 1.81 MB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002363/0.2787, allocations: 1.604 MB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.027e-05/0.2788, allocations: 7.938 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.279, allocations: 19.8 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.2791, allocations: 27.78 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006049/0.2797, allocations: 236.2 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.28, allocations: 251.5 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.2802, allocations: 57.81 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.2803, allocations: 91.69 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.2805, allocations: 87.66 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.2805, allocations: 12 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003759/0.2809, allocations: 199.7 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.281, allocations: 79.78 kB / 1.068 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.2812, allocations: 95.47 kB / 1.069 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.2816, allocations: 379 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2816, allocations: 4 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.213e-06/0.2816, allocations: 0 / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.2817, allocations: 0 / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008367/0.2825, allocations: 0.5532 MB / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.2825, allocations: 8.031 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.904e-05/0.2826, allocations: 54.72 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.734e-05/0.2827, allocations: 20.75 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.283, allocations: 256.7 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.016e-05/0.283, allocations: 28.06 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.2831, allocations: 27.98 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.2835, allocations: 205.3 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.2835, allocations: 4 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.2835, allocations: 8 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.2835, allocations: 4 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.2838, allocations: 123.6 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.285, allocations: 0.5782 MB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.2854, allocations: 206.5 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.2856, allocations: 104.8 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.2856, allocations: 4 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003117/0.2859, allocations: 173.5 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 1.753e-06/0.2859, allocations: 0 / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.0007133/0.2866, allocations: 389.3 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.2867, allocations: 75.39 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.2869, allocations: 187 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.055e-05/0.2869, allocations: 49.69 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.021e-05/0.287, allocations: 120.9 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.648e-05/0.2871, allocations: 82.98 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.2872, allocations: 82.12 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2874, allocations: 334.8 kB / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.2876, allocations: 116.8 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.2879, allocations: 265.4 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005037/0.2884, allocations: 371.9 kB / 1.073 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2885, allocations: 0 / 1.073 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006637/0.2891, allocations: 413.2 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.2892, allocations: 13.55 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.2892, allocations: 7.984 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.2892, allocations: 8 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.2894, allocations: 63.84 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.2894, allocations: 8 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.2896, allocations: 31.69 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.2896, allocations: 16 kB / 1.074 GB, free: 4.016 MB / 0.8262 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,pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[2],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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.0001935/0.2898, allocations: 192.3 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.2898, allocations: 19.81 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.202e-05/0.2899, allocations: 18.56 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2899, allocations: 4 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.2899, allocations: 0 / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2899, allocations: 3.984 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.2909, allocations: 0.6952 MB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.291, allocations: 3.938 kB / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.2911, allocations: 19.98 kB / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2911, allocations: 0 / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.2911, allocations: 11.98 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2911, allocations: 4.188 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2911, allocations: 0 / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007473/0.2919, allocations: 0.5185 MB / 1.075 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.313e-05/0.292, allocations: 96.77 kB / 1.075 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.103e-05/0.292, allocations: 16.03 kB / 1.075 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.2921, allocations: 15.92 kB / 1.075 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.2922, allocations: 19.97 kB / 1.075 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.2922, allocations: 19.92 kB / 1.075 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001019/0.2923, allocations: 124.3 kB / 1.075 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.2924, allocations: 4 kB / 1.075 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000437/0.2928, allocations: 108 kB / 1.076 GB, free: 2.031 MB / 0.8262 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 (26): * Single equations (assignments): 12 * 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.001728/0.2945, allocations: 1.294 MB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005677/0.2951, allocations: 327.5 kB / 1.077 GB, free: 464 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2951, allocations: 0 / 1.077 GB, free: 464 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.2953, allocations: 109.8 kB / 1.077 GB, free: 356 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.2956, allocations: 27.56 kB / 1.077 GB, free: 332 kB / 0.8262 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.003452/0.2991, allocations: 2.932 MB / 1.08 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.2995, allocations: 0.7519 MB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000135/0.2996, allocations: 54.19 kB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.332e-05/0.2997, allocations: 67.41 kB / 1.081 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of SimCode: time 2.91e-07/0.2997, allocations: 0 / 1.081 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9742/1.274, allocations: 5.751 MB / 1.087 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.467/9.741, allocations: 11.27 kB / 1.087 GB, free: 6.602 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_11_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.fmu > Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1)