Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",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.001623/0.001623, allocations: 101.4 kB / 15.7 MB, free: 28 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.001427/0.001427, allocations: 200.6 kB / 16.64 MB, free: 6.43 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.546/1.546, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.736/1.736, 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.001723/0.001723, allocations: 72.14 kB / 0.6718 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2673, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003637/0.271, allocations: 1.523 MB / 0.7851 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001747/0.2728, allocations: 0.7926 MB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.231e-05/0.2729, allocations: 0 / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.755e-05/0.273, allocations: 7.875 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.2732, allocations: 11.88 kB / 0.7859 GB, free: 10.92 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.0007249/0.2739, allocations: 131.6 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.2741, allocations: 99.62 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.2742, allocations: 19.98 kB / 0.7862 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.2743, allocations: 35.86 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.161e-05/0.2744, allocations: 55.75 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.2745, allocations: 8 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.2747, allocations: 99.84 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.2747, allocations: 23.91 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.41e-05/0.2748, allocations: 43.77 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003082/0.2751, allocations: 159.8 kB / 0.7866 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.2751, allocations: 4 kB / 0.7866 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.864e-06/0.2752, allocations: 0 / 0.7866 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.2752, allocations: 4 kB / 0.7866 GB, free: 10.25 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008357/0.276, allocations: 492.2 kB / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.2761, allocations: 19.95 kB / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/0.2761, allocations: 34.75 kB / 0.7871 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.938e-05/0.2762, allocations: 8.844 kB / 0.7871 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.2763, allocations: 176.2 kB / 0.7873 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.2764, allocations: 8.359 kB / 0.7873 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.2764, allocations: 4.375 kB / 0.7873 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.2766, allocations: 93.7 kB / 0.7874 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2766, allocations: 0 / 0.7874 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.2767, allocations: 4 kB / 0.7874 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2767, allocations: 0 / 0.7874 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.2768, allocations: 47.97 kB / 0.7874 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006249/0.2775, allocations: 348.6 kB / 0.7877 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.2777, allocations: 78.67 kB / 0.7878 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.335e-05/0.2778, allocations: 40.84 kB / 0.7879 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.2779, allocations: 0 / 0.7879 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.2782, allocations: 103.4 kB / 0.788 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.763e-06/0.2782, allocations: 4 kB / 0.788 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.00045/0.2786, allocations: 169.5 kB / 0.7881 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.2787, allocations: 59.39 kB / 0.7882 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.2788, allocations: 137.1 kB / 0.7883 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.2788, allocations: 29.7 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.2789, allocations: 88.14 kB / 0.7884 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.2789, allocations: 31.62 kB / 0.7885 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-05/0.279, allocations: 41.7 kB / 0.7885 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.2791, allocations: 322.8 kB / 0.7888 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.473e-05/0.2792, allocations: 31.97 kB / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.2794, allocations: 65.08 kB / 0.7889 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.2796, allocations: 109.1 kB / 0.789 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2796, allocations: 3.938 kB / 0.789 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002937/0.2799, allocations: 137.4 kB / 0.7891 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.2799, allocations: 8 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2799, allocations: 96 / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.2799, allocations: 8 kB / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.2801, allocations: 23.92 kB / 0.7892 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.2801, allocations: 0 / 0.7892 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.2802, allocations: 19.83 kB / 0.7892 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.2802, allocations: 4 kB / 0.7892 GB, free: 7.266 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: 11 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001106/0.2803, allocations: 128.8 kB / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.2804, allocations: 7.906 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003757/0.2808, allocations: 169.9 kB / 0.7895 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.2808, allocations: 4 kB / 0.7895 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2808, allocations: 3.938 kB / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2808, allocations: 0 / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006512/0.2815, allocations: 446.2 kB / 0.7899 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2815, allocations: 0 / 0.7899 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.328e-05/0.2815, allocations: 11.98 kB / 0.7899 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.2816, allocations: 8 kB / 0.7899 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.2816, allocations: 4 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/0.2816, allocations: 7.922 kB / 0.79 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2816, allocations: 0 / 0.79 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.2819, allocations: 243.3 kB / 0.7902 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.768e-05/0.282, allocations: 85.02 kB / 0.7903 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.2821, allocations: 7.938 kB / 0.7903 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.2822, allocations: 15.98 kB / 0.7903 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.08e-05/0.2822, allocations: 11.98 kB / 0.7903 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.2823, allocations: 4 kB / 0.7903 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.731e-05/0.2823, allocations: 101.5 kB / 0.7904 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2823, allocations: 0 / 0.7904 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003551/0.2827, allocations: 43.98 kB / 0.7904 GB, free: 5.887 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: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0009549/0.2837, allocations: 0.8514 MB / 0.7913 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002667/0.2839, allocations: 91.89 kB / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.284, allocations: 0 / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.2841, allocations: 60.09 kB / 0.7914 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.2844, allocations: 19.98 kB / 0.7914 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.2865, allocations: 1.651 MB / 0.793 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.2868, allocations: 0.6963 MB / 0.7937 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.528e-05/0.2868, allocations: 12.44 kB / 0.7937 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.436e-05/0.2869, allocations: 27.42 kB / 0.7938 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2869, allocations: 0 / 0.7938 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.3107, allocations: 3.275 MB / 0.797 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.929/8.239, allocations: 8.359 kB / 0.797 GB, free: 15.17 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)