Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut",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.001231/0.001231, 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.001195/0.001195, allocations: 196 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.1 MB / 222.4 MB, free: 4.371 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.782/1.782, allocations: 292.3 MB / 0.5489 GB, free: 12.78 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 71.97 kB / 0.6716 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2376, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut): time 0.002823/0.2404, allocations: 1.488 MB / 0.7849 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001282/0.2417, allocations: 0.7653 MB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.161e-05/0.2418, allocations: 0 / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.2418, allocations: 7.875 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.926e-05/0.2419, allocations: 19.84 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:499:7-563:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:2:1-32:29:writable] Warning: Pure function 'Buildings.Occupants.BaseClasses.binaryVariableGeneration' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0005912/0.2425, allocations: 119.6 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2426, allocations: 71.83 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.2428, allocations: 11.98 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.426e-05/0.2428, allocations: 35.8 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.173e-05/0.2429, allocations: 31.91 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.2429, allocations: 4 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.2431, allocations: 91.91 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.113e-05/0.2432, allocations: 23.84 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.916e-05/0.2432, allocations: 35.86 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.2435, allocations: 131.9 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2435, allocations: 0 / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2435, allocations: 0 / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.2435, allocations: 0 / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006466/0.2441, allocations: 446.7 kB / 0.7867 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.2442, allocations: 8.031 kB / 0.7867 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.371e-05/0.2443, allocations: 30.75 kB / 0.7867 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.199e-05/0.2443, allocations: 12.84 kB / 0.7867 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.2445, allocations: 184.2 kB / 0.7869 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.2446, allocations: 4.375 kB / 0.7869 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.2446, allocations: 4.375 kB / 0.7869 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.2448, allocations: 73.72 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2448, allocations: 0 / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.2448, allocations: 4 kB / 0.787 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2449, allocations: 0 / 0.787 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.245, allocations: 35.97 kB / 0.787 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.2456, allocations: 304.7 kB / 0.7873 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.2457, allocations: 46.5 kB / 0.7873 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.742e-05/0.2458, allocations: 36.97 kB / 0.7874 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.2459, allocations: 4 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.2461, allocations: 79.38 kB / 0.7874 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.2461, allocations: 0 / 0.7874 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004264/0.2466, allocations: 133.6 kB / 0.7876 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.2466, allocations: 59.39 kB / 0.7876 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.2467, allocations: 129.7 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.2468, allocations: 29.7 kB / 0.7878 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.497e-05/0.2468, allocations: 92.12 kB / 0.7879 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.2469, allocations: 11.81 kB / 0.7879 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-05/0.2469, allocations: 29.7 kB / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2471, allocations: 326.7 kB / 0.7882 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.147e-05/0.2471, allocations: 19.98 kB / 0.7882 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.596e-05/0.2472, allocations: 69.5 kB / 0.7883 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.2474, allocations: 85.08 kB / 0.7884 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2474, allocations: 0 / 0.7884 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002348/0.2477, allocations: 117.4 kB / 0.7885 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.2477, allocations: 4 kB / 0.7885 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.2477, allocations: 7.984 kB / 0.7885 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.2477, allocations: 3.938 kB / 0.7885 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.941e-05/0.2479, allocations: 12 kB / 0.7885 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.2479, allocations: 4.156 kB / 0.7885 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.179e-05/0.2479, allocations: 7.984 kB / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.536e-05/0.248, allocations: 4 kB / 0.7885 GB, free: 7.871 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (bli.curSeed,$PRE.bli.curSeed,bli.blindState,$PRE.bli.blindState,bli.pDown,$PRE.bli.pDown,occ.y,bli.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001242/0.2481, allocations: 132.3 kB / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.2481, allocations: 7.906 kB / 0.7887 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.989e-05/0.2482, allocations: 8.422 kB / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2482, allocations: 3.984 kB / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.2482, allocations: 3.984 kB / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2482, allocations: 4 kB / 0.7887 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005384/0.2487, allocations: 378.5 kB / 0.7891 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2488, allocations: 0 / 0.7891 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.294e-05/0.2488, allocations: 11.94 kB / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2488, allocations: 0 / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.2488, allocations: 3.984 kB / 0.7891 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.2488, allocations: 7.938 kB / 0.7891 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2489, allocations: 0 / 0.7891 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.2492, allocations: 203.4 kB / 0.7893 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.189e-05/0.2492, allocations: 81.02 kB / 0.7894 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2492, allocations: 7.984 kB / 0.7894 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.69e-05/0.2493, allocations: 7.938 kB / 0.7894 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.2494, allocations: 7.984 kB / 0.7894 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.2494, allocations: 4 kB / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.91e-05/0.2495, allocations: 99.42 kB / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2495, allocations: 0 / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003371/0.2498, allocations: 39.94 kB / 0.7895 GB, free: 6.781 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pDown,bli.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008857/0.2507, allocations: 0.8064 MB / 0.7903 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002498/0.251, allocations: 71.89 kB / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.251, allocations: 0 / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.2511, allocations: 35.92 kB / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.2514, allocations: 14.59 kB / 0.7904 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.2532, allocations: 1.504 MB / 0.7919 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.2534, allocations: 0.6916 MB / 0.7926 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.593e-05/0.2535, allocations: 11.98 kB / 0.7926 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.348e-05/0.2535, allocations: 19.44 kB / 0.7926 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of SimCode: time 2.91e-07/0.2535, allocations: 0 / 0.7926 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.2741, allocations: 2.584 MB / 0.7951 GB, free: 1.008 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.818/8.092, allocations: 13.44 kB / 0.7951 GB, free: 1 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.fmu > Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe 2>&1)