Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.001531/0.001531, 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.001756/0.001756, allocations: 193.6 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.519/1.519, 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.735/1.735, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001466/0.001466, allocations: 74.38 kB / 0.6716 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2771, allocations: 114.6 MB / 0.7835 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.003397/0.2805, allocations: 1.492 MB / 0.7849 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.2821, allocations: 0.777 MB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.598e-05/0.2822, allocations: 0 / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.561e-05/0.2822, allocations: 3.938 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.678e-05/0.2823, allocations: 7.875 kB / 0.7857 GB, free: 11.06 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.0006747/0.283, allocations: 123.6 kB / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.2831, allocations: 67.83 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.2832, allocations: 15.98 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.81e-05/0.2833, allocations: 39.8 kB / 0.7859 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.263e-05/0.2834, allocations: 43.88 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.2835, allocations: 8 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002347/0.2837, allocations: 87.91 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.937e-05/0.2837, allocations: 19.92 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.642e-05/0.2838, allocations: 31.86 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002923/0.2841, allocations: 143.8 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.2841, allocations: 7.938 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.734e-06/0.2842, allocations: 0 / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.2842, allocations: 0 / 0.7863 GB, free: 10.48 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.0008338/0.285, allocations: 413 kB / 0.7867 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.801e-05/0.2851, allocations: 16.02 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.941e-05/0.2851, allocations: 34.75 kB / 0.7867 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.456e-05/0.2852, allocations: 8.844 kB / 0.7867 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.2854, allocations: 180.2 kB / 0.7869 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.2854, allocations: 4.375 kB / 0.7869 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.2854, allocations: 12.36 kB / 0.7869 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.2857, allocations: 73.72 kB / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2857, allocations: 0 / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.2857, allocations: 0 / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2858, allocations: 4 kB / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001465/0.2859, allocations: 35.97 kB / 0.787 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007614/0.2867, allocations: 320.7 kB / 0.7873 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001589/0.2869, allocations: 50.5 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.882e-05/0.287, allocations: 32.97 kB / 0.7874 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/0.287, allocations: 4 kB / 0.7874 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002982/0.2873, allocations: 79.36 kB / 0.7875 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.764e-06/0.2873, allocations: 4 kB / 0.7875 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004871/0.2878, allocations: 133.6 kB / 0.7876 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/0.2879, allocations: 59.34 kB / 0.7877 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.2881, allocations: 125.7 kB / 0.7878 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.2881, allocations: 25.7 kB / 0.7878 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.2882, allocations: 96.06 kB / 0.7879 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.2882, allocations: 19.88 kB / 0.7879 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.675e-05/0.2883, allocations: 33.7 kB / 0.788 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002186/0.2885, allocations: 318.8 kB / 0.7883 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.2886, allocations: 27.97 kB / 0.7883 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.2888, allocations: 46.5 kB / 0.7883 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001976/0.289, allocations: 78.48 kB / 0.7884 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.289, allocations: 0 / 0.7884 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002863/0.2893, allocations: 113.5 kB / 0.7885 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.2893, allocations: 8 kB / 0.7885 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.2893, allocations: 0 / 0.7885 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.2894, allocations: 0 / 0.7885 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2895, allocations: 11.98 kB / 0.7885 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.2895, allocations: 4 kB / 0.7885 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.785e-05/0.2896, allocations: 12.06 kB / 0.7885 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.2896, allocations: 0 / 0.7885 GB, free: 7.887 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 (win.occ,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.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.0001363/0.2897, allocations: 125.7 kB / 0.7887 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.2897, allocations: 11.83 kB / 0.7887 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.2898, allocations: 12.38 kB / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2898, allocations: 0 / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2898, allocations: 0 / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2898, allocations: 0 / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005053/0.2903, allocations: 386.4 kB / 0.7891 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2903, allocations: 0 / 0.7891 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.928e-05/0.2904, allocations: 7.938 kB / 0.7891 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2904, allocations: 0 / 0.7891 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.2904, allocations: 11.98 kB / 0.7891 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.2904, allocations: 3.938 kB / 0.7891 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2904, allocations: 0 / 0.7891 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003047/0.2907, allocations: 203.4 kB / 0.7893 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.778e-05/0.2908, allocations: 89 kB / 0.7894 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.2909, allocations: 0 / 0.7894 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-05/0.291, allocations: 11.94 kB / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.051e-05/0.291, allocations: 7.984 kB / 0.7894 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.291, allocations: 0 / 0.7894 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.489e-05/0.2911, allocations: 91.27 kB / 0.7895 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.746e-06/0.2911, allocations: 8 kB / 0.7895 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003255/0.2914, allocations: 39.94 kB / 0.7895 GB, free: 6.797 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 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.p,win.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.0009021/0.2923, allocations: 0.811 MB / 0.7903 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000259/0.2926, allocations: 75.89 kB / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2926, allocations: 0 / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.73e-05/0.2927, allocations: 31.98 kB / 0.7904 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.293, allocations: 11.94 kB / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.295, allocations: 1.49 MB / 0.7919 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.2953, allocations: 0.6924 MB / 0.7926 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.651e-05/0.2954, allocations: 4 kB / 0.7926 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.086e-05/0.2954, allocations: 23.42 kB / 0.7926 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of SimCode: time 8.11e-07/0.2955, allocations: 0 / 0.7926 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.3185, allocations: 2.595 MB / 0.7951 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.406, allocations: 8.281 kB / 0.7951 GB, free: 1.059 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_8_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1)