Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001182/0.001182, 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.001448/0.001448, allocations: 192.7 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.714/2.714, allocations: 469.4 MB / 0.742 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 60.89 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2808, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003247/0.2841, allocations: 1.818 MB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002286/0.2864, allocations: 1.604 MB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2866, allocations: 7.938 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.2868, allocations: 23.8 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.2869, allocations: 19.78 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008392/0.2878, allocations: 235.2 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.2881, allocations: 247.5 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.2883, allocations: 65.8 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.2885, allocations: 95.69 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2887, allocations: 83.66 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.2887, allocations: 12 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004755/0.2892, allocations: 195.7 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.2894, allocations: 83.8 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2895, allocations: 91.52 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005961/0.2901, allocations: 379 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2901, allocations: 4 kB / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2901, allocations: 0 / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.046e-05/0.2901, allocations: 0 / 1.068 GB, free: 9.578 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.0009274/0.2911, allocations: 0.5531 MB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2911, allocations: 8.031 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.834e-05/0.2912, allocations: 58.72 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.823e-05/0.2912, allocations: 24.75 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.2916, allocations: 264.7 kB / 1.069 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.2916, allocations: 16.12 kB / 1.069 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.155e-05/0.2917, allocations: 27.98 kB / 1.069 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003562/0.292, allocations: 205.3 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.2921, allocations: 0 / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.2921, allocations: 8 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.2921, allocations: 4 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002456/0.2923, allocations: 119.7 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.2936, allocations: 0.5859 MB / 1.07 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.294, allocations: 202.5 kB / 1.07 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.2941, allocations: 108.8 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.2942, allocations: 7.984 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000334/0.2945, allocations: 172.4 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.2945, allocations: 0 / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.0006867/0.2952, allocations: 387.9 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.2953, allocations: 75.31 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.2954, allocations: 187 kB / 1.071 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.2955, allocations: 49.69 kB / 1.071 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.2956, allocations: 128.9 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.2956, allocations: 75.02 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.601e-05/0.2958, allocations: 82.12 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2959, allocations: 338.8 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.2961, allocations: 116.8 kB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.2964, allocations: 253.5 kB / 1.072 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004685/0.2968, allocations: 367.9 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2968, allocations: 0 / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006325/0.2975, allocations: 424.7 kB / 1.073 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2975, allocations: 4 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.2975, allocations: 8 kB / 1.073 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.2975, allocations: 4.656 kB / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.2978, allocations: 75.84 kB / 1.073 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.2978, allocations: 4 kB / 1.073 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.2979, allocations: 35.69 kB / 1.073 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.298, allocations: 16 kB / 1.073 GB, free: 4.309 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.0001675/0.2981, allocations: 192.2 kB / 1.073 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.574e-05/0.2982, allocations: 15.81 kB / 1.073 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.51e-05/0.2982, allocations: 22.56 kB / 1.073 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2982, allocations: 7.984 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2982, allocations: 0 / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2982, allocations: 0 / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009513/0.2992, allocations: 0.6995 MB / 1.074 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2992, allocations: 0 / 1.074 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.2993, allocations: 15.98 kB / 1.074 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.2994, allocations: 8 kB / 1.074 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.2994, allocations: 11.98 kB / 1.074 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.2994, allocations: 0 / 1.074 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2994, allocations: 0 / 1.074 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000688/0.3001, allocations: 0.5107 MB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.792e-05/0.3001, allocations: 96.77 kB / 1.075 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.686e-05/0.3002, allocations: 16.03 kB / 1.075 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.3003, allocations: 19.98 kB / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.3004, allocations: 19.97 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.788e-05/0.3004, allocations: 19.86 kB / 1.075 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.245e-05/0.3005, allocations: 124.3 kB / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3005, allocations: 0 / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004397/0.301, allocations: 104 kB / 1.075 GB, free: 2.34 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.001474/0.3025, allocations: 1.299 MB / 1.076 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005471/0.303, allocations: 319.6 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.303, allocations: 0.9375 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.3032, allocations: 103.9 kB / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.3035, allocations: 34.27 kB / 1.077 GB, free: 0.6328 MB / 0.8262 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.003192/0.3067, allocations: 2.94 MB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.3071, allocations: 0.748 MB / 1.08 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001407/0.3072, allocations: 54.25 kB / 1.08 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.619e-05/0.3073, allocations: 63.41 kB / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of SimCode: time 3.4e-07/0.3073, allocations: 0 / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5647/0.872, allocations: 5.761 MB / 1.086 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.316/8.188, allocations: 2.344 kB / 1.086 GB, free: 6.918 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1)