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.001564/0.001564, allocations: 108 kB / 15.61 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.001714/0.001714, allocations: 197.8 kB / 16.53 MB, free: 6.668 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.754/1.754, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.765/1.765, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001521/0.001521, allocations: 65.09 kB / 0.6716 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2362, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002879/0.2391, allocations: 1.484 MB / 0.7849 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.2406, allocations: 0.7731 MB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.437e-05/0.2407, allocations: 0 / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.678e-05/0.2408, allocations: 3.938 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.135e-05/0.2408, allocations: 15.86 kB / 0.7857 GB, free: 11.09 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.0006406/0.2415, allocations: 115.6 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.2416, allocations: 79.77 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.2417, allocations: 15.98 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.653e-05/0.2418, allocations: 43.78 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.452e-05/0.2419, allocations: 35.89 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.2419, allocations: 8 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.2422, allocations: 95.84 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.878e-05/0.2422, allocations: 19.92 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.772e-05/0.2422, allocations: 27.86 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.2425, allocations: 135.9 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2425, allocations: 0 / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.896e-06/0.2425, allocations: 4 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.2425, allocations: 4 kB / 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.0008195/0.2434, allocations: 417 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.2434, allocations: 12.03 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.199e-05/0.2435, allocations: 30.75 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.557e-05/0.2435, allocations: 12.78 kB / 0.7867 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.2437, allocations: 184.1 kB / 0.7869 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.2438, allocations: 8.375 kB / 0.7869 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.2438, allocations: 4.375 kB / 0.7869 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.244, allocations: 69.78 kB / 0.7869 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.2441, allocations: 0 / 0.7869 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.2441, allocations: 4 kB / 0.787 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.2441, allocations: 4 kB / 0.787 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.2442, allocations: 35.97 kB / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006865/0.2449, allocations: 316.6 kB / 0.7873 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.2451, allocations: 50.56 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.94e-05/0.2452, allocations: 36.95 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.2452, allocations: 4 kB / 0.7874 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002765/0.2455, allocations: 87.38 kB / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2455, allocations: 0 / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004149/0.2459, allocations: 133.6 kB / 0.7876 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.246, allocations: 51.41 kB / 0.7876 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.2461, allocations: 129.7 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.2461, allocations: 29.7 kB / 0.7878 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.2462, allocations: 92.08 kB / 0.7879 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.2462, allocations: 15.81 kB / 0.7879 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.2463, allocations: 29.7 kB / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.2464, allocations: 322.8 kB / 0.7882 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.361e-05/0.2465, allocations: 27.98 kB / 0.7883 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.381e-05/0.2466, allocations: 46.5 kB / 0.7883 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.2468, allocations: 82.47 kB / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2468, allocations: 0 / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002382/0.2471, allocations: 117.8 kB / 0.7885 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.2471, allocations: 4 kB / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2471, allocations: 7.938 kB / 0.7885 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.2471, allocations: 0 / 0.7885 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.2472, allocations: 15.92 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.2473, allocations: 4.062 kB / 0.7885 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.2473, allocations: 4 kB / 0.7885 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.2473, allocations: 4 kB / 0.7885 GB, free: 7.914 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.000127/0.2475, allocations: 130.6 kB / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.2475, allocations: 7.906 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.2475, allocations: 8.375 kB / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.2475, allocations: 3.984 kB / 0.7887 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/0.2476, allocations: 0 / 0.7887 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.2476, allocations: 4 kB / 0.7887 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005508/0.2481, allocations: 382.4 kB / 0.789 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2482, allocations: 0 / 0.789 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.196e-05/0.2482, allocations: 7.984 kB / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2482, allocations: 0 / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.2482, allocations: 4 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.2482, allocations: 3.938 kB / 0.7891 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2482, allocations: 0 / 0.7891 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.2485, allocations: 215.3 kB / 0.7893 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.685e-05/0.2486, allocations: 85.02 kB / 0.7893 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.2486, allocations: 0 / 0.7893 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.642e-05/0.2487, allocations: 7.938 kB / 0.7894 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.2488, allocations: 7.984 kB / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.2488, allocations: 0 / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.163e-05/0.2489, allocations: 99.27 kB / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.983e-06/0.2489, allocations: 0 / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003129/0.2492, allocations: 43.92 kB / 0.7895 GB, free: 6.824 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.0007827/0.25, allocations: 0.8053 MB / 0.7903 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002398/0.2502, allocations: 71.95 kB / 0.7904 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2502, allocations: 0 / 0.7904 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.427e-05/0.2503, allocations: 36.39 kB / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.2506, allocations: 11.92 kB / 0.7904 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.2525, allocations: 1.497 MB / 0.7919 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.2529, allocations: 0.6924 MB / 0.7925 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.893e-05/0.253, allocations: 0 / 0.7925 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.333e-05/0.253, allocations: 23.42 kB / 0.7926 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.253, allocations: 0 / 0.7926 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.2712, allocations: 2.609 MB / 0.7951 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/7.922, allocations: 16.88 kB / 0.7951 GB, free: 1.074 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)