Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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.Nicol2001HeatingEU,fileNamePrefix="Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,fileNamePrefix="Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",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.001208/0.001208, 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.001312/0.001312, 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.537/1.537, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.789/1.789, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001438/0.001438, allocations: 66.14 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2686, allocations: 114.6 MB / 0.7836 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU): time 0.004089/0.2727, allocations: 1.484 MB / 0.7851 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001816/0.2746, allocations: 0.7653 MB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.781e-05/0.2747, allocations: 4 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.508e-05/0.2747, allocations: 3.938 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.87e-05/0.2748, allocations: 11.86 kB / 0.7858 GB, free: 11 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.0007043/0.2755, allocations: 127.6 kB / 0.786 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.2757, allocations: 75.77 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2758, allocations: 19.97 kB / 0.7861 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.161e-05/0.2759, allocations: 31.86 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.036e-05/0.276, allocations: 35.89 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.276, allocations: 8 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.2762, allocations: 95.84 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.375e-05/0.2763, allocations: 23.86 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.278e-05/0.2763, allocations: 35.84 kB / 0.7863 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.2766, allocations: 135.9 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.2766, allocations: 3.984 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.657e-06/0.2767, allocations: 0 / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.2767, allocations: 0 / 0.7864 GB, free: 10.42 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.0008285/0.2775, allocations: 420.9 kB / 0.7868 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.2776, allocations: 8.031 kB / 0.7868 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.227e-05/0.2776, allocations: 38.73 kB / 0.7869 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.2777, allocations: 4.844 kB / 0.7869 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.2778, allocations: 184.2 kB / 0.787 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.2779, allocations: 8.375 kB / 0.787 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.2779, allocations: 4.375 kB / 0.787 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.2781, allocations: 69.78 kB / 0.7871 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.2781, allocations: 0 / 0.7871 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.2781, allocations: 4 kB / 0.7871 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.2781, allocations: 0 / 0.7871 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.2782, allocations: 35.97 kB / 0.7872 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000593/0.2789, allocations: 320.6 kB / 0.7875 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.279, allocations: 50.56 kB / 0.7875 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.625e-05/0.2791, allocations: 36.97 kB / 0.7875 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.2791, allocations: 0 / 0.7875 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002209/0.2793, allocations: 75.45 kB / 0.7876 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.2794, allocations: 0 / 0.7876 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004049/0.2798, allocations: 141.6 kB / 0.7878 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.2798, allocations: 55.41 kB / 0.7878 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.2799, allocations: 121.7 kB / 0.7879 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.28, allocations: 33.7 kB / 0.788 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.565e-05/0.28, allocations: 92.08 kB / 0.788 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.2801, allocations: 19.8 kB / 0.7881 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/0.2801, allocations: 21.72 kB / 0.7881 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.2802, allocations: 326.8 kB / 0.7884 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.723e-05/0.2803, allocations: 27.92 kB / 0.7884 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.892e-05/0.2804, allocations: 50.55 kB / 0.7885 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.2806, allocations: 74.48 kB / 0.7885 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2806, allocations: 4 kB / 0.7885 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000223/0.2808, allocations: 109.5 kB / 0.7886 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2808, allocations: 8 kB / 0.7887 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2808, allocations: 4.062 kB / 0.7887 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2809, allocations: 3.984 kB / 0.7887 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.974e-05/0.281, allocations: 11.94 kB / 0.7887 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.281, allocations: 7.938 kB / 0.7887 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.383e-05/0.281, allocations: 11.97 kB / 0.7887 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.2811, allocations: 4 kB / 0.7887 GB, free: 7.824 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 8.815e-05/0.2812, allocations: 121.7 kB / 0.7888 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.761e-05/0.2812, allocations: 11.91 kB / 0.7888 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.774e-05/0.2812, allocations: 8.375 kB / 0.7888 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.2812, allocations: 7.984 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2812, allocations: 0 / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2812, allocations: 0 / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004331/0.2817, allocations: 386.8 kB / 0.7892 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.2817, allocations: 0 / 0.7892 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.852e-05/0.2817, allocations: 4 kB / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2817, allocations: 0 / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.2818, allocations: 0 / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2818, allocations: 7.938 kB / 0.7892 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.2818, allocations: 3.984 kB / 0.7892 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.2821, allocations: 215.4 kB / 0.7894 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/0.2821, allocations: 81.02 kB / 0.7895 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.2822, allocations: 0 / 0.7895 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.467e-05/0.2822, allocations: 15.86 kB / 0.7895 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.2823, allocations: 8 kB / 0.7895 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.2823, allocations: 3.984 kB / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.104e-05/0.2824, allocations: 95.94 kB / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2824, allocations: 0 / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003195/0.2827, allocations: 39.98 kB / 0.7897 GB, free: 6.734 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.0007716/0.2835, allocations: 0.7968 MB / 0.7904 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000238/0.2837, allocations: 71.89 kB / 0.7905 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2838, allocations: 0 / 0.7905 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.747e-05/0.2839, allocations: 39.91 kB / 0.7905 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.2841, allocations: 12.06 kB / 0.7906 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.2857, allocations: 1.479 MB / 0.792 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.2859, allocations: 0.6924 MB / 0.7927 GB, free: 3.512 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.774e-05/0.286, allocations: 7.938 kB / 0.7927 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.681e-05/0.286, allocations: 23.42 kB / 0.7927 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.286, allocations: 0 / 0.7927 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.3052, allocations: 2.633 MB / 0.7953 GB, free: 1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/7.84, allocations: 18.2 kB / 0.7953 GB, free: 0.9883 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; mkfifo Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe >> ../files/Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.fmu > Buildings_8_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe 2>&1)