Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",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.001121/0.00112, allocations: 109.4 kB / 15.69 MB, free: 128 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.00112/0.001121, allocations: 188 kB / 16.62 MB, free: 6.582 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.579/1.579, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.854/1.854, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001503/0.001504, allocations: 72.16 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2502, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002723/0.253, allocations: 1.484 MB / 0.7851 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00153/0.2545, allocations: 0.7692 MB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.692e-05/0.2546, allocations: 0 / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.737e-05/0.2547, allocations: 3.938 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.099e-05/0.2548, allocations: 15.86 kB / 0.7858 GB, free: 10.98 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.0008001/0.2556, allocations: 119.6 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.2557, allocations: 79.75 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.2559, allocations: 12 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.256, allocations: 39.84 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.213e-05/0.2561, allocations: 35.89 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.2561, allocations: 7.938 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002559/0.2564, allocations: 99.84 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.959e-05/0.2565, allocations: 19.92 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.39e-05/0.2565, allocations: 27.86 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003401/0.2569, allocations: 135.9 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.2569, allocations: 4 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2569, allocations: 4 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.2569, allocations: 0 / 0.7864 GB, free: 10.41 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.0008204/0.2577, allocations: 424.9 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.2578, allocations: 8.031 kB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.795e-05/0.2578, allocations: 30.75 kB / 0.7868 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.2579, allocations: 12.83 kB / 0.7869 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.258, allocations: 180.2 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.258, allocations: 8.375 kB / 0.787 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.2581, allocations: 8.375 kB / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.2583, allocations: 73.77 kB / 0.7871 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2583, allocations: 0 / 0.7871 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.2583, allocations: 0 / 0.7871 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.2583, allocations: 7.984 kB / 0.7871 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.2585, allocations: 35.97 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005799/0.259, allocations: 320.6 kB / 0.7875 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.2592, allocations: 50.55 kB / 0.7875 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.702e-05/0.2593, allocations: 32.97 kB / 0.7875 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.2593, allocations: 4 kB / 0.7875 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.2595, allocations: 79.44 kB / 0.7876 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.2595, allocations: 0 / 0.7876 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000398/0.2599, allocations: 137.6 kB / 0.7878 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.26, allocations: 51.41 kB / 0.7878 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.391e-05/0.2601, allocations: 125.7 kB / 0.7879 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.2601, allocations: 29.7 kB / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.2602, allocations: 92.08 kB / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.2602, allocations: 19.8 kB / 0.7881 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.746e-05/0.2603, allocations: 25.72 kB / 0.7881 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2604, allocations: 322.8 kB / 0.7884 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.498e-05/0.2605, allocations: 27.98 kB / 0.7884 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.129e-05/0.2606, allocations: 50.48 kB / 0.7885 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.2608, allocations: 78.48 kB / 0.7885 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2608, allocations: 0 / 0.7885 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002371/0.261, allocations: 113.5 kB / 0.7887 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.261, allocations: 8 kB / 0.7887 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.261, allocations: 0 / 0.7887 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.2611, allocations: 3.938 kB / 0.7887 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.957e-05/0.2612, allocations: 11.98 kB / 0.7887 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2612, allocations: 12 kB / 0.7887 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.2613, allocations: 7.984 kB / 0.7887 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.2613, allocations: 0 / 0.7887 GB, free: 7.805 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (hea.occ,hea.curSeed,$PRE.hea.curSeed,hea.p,$PRE.hea.p,hea.on,$PRE.hea.on,hea.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.0001074/0.2614, allocations: 129.7 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.2614, allocations: 3.906 kB / 0.7888 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.2615, allocations: 12.38 kB / 0.7888 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2615, allocations: 0 / 0.7888 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2615, allocations: 0 / 0.7888 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2615, allocations: 7.984 kB / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.262, allocations: 382.4 kB / 0.7892 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.262, allocations: 0 / 0.7892 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.003e-05/0.262, allocations: 4 kB / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.262, allocations: 0 / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.2621, allocations: 4 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.2621, allocations: 3.938 kB / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2621, allocations: 0 / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002879/0.2624, allocations: 211.9 kB / 0.7894 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.133e-05/0.2624, allocations: 85.02 kB / 0.7895 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.2625, allocations: 0 / 0.7895 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.635e-05/0.2626, allocations: 15.86 kB / 0.7895 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.2626, allocations: 7.938 kB / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.2626, allocations: 7.984 kB / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.774e-05/0.2627, allocations: 87.94 kB / 0.7896 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2627, allocations: 8 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003212/0.263, allocations: 39.98 kB / 0.7897 GB, free: 6.715 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 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.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.0007921/0.2638, allocations: 0.8091 MB / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002704/0.2641, allocations: 67.91 kB / 0.7905 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2641, allocations: 0 / 0.7905 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.2642, allocations: 35.92 kB / 0.7905 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.2645, allocations: 11.92 kB / 0.7906 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.2661, allocations: 1.486 MB / 0.792 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.2664, allocations: 0.6885 MB / 0.7927 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.863e-05/0.2665, allocations: 8 kB / 0.7927 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/0.2665, allocations: 23.42 kB / 0.7927 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of SimCode: time 1.873e-06/0.2665, allocations: 0 / 0.7927 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.2851, allocations: 2.642 MB / 0.7953 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.539/7.824, allocations: 2.625 kB / 0.7953 GB, free: 0.9688 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1)