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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 104.2 kB / 16.36 MB, free: 6.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 188.7 kB / 17.29 MB, free: 5.875 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.422/1.422, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.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.825/1.825, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.001419/0.001419, allocations: 71.89 kB / 0.6729 GB, free: 5.785 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2656, allocations: 114.5 MB / 0.7848 GB, free: 3.121 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003082/0.2688, allocations: 1.527 MB / 0.7863 GB, free: 1.578 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2703, allocations: 0.7877 MB / 0.787 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.352e-05/0.2704, allocations: 4 kB / 0.787 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.81e-05/0.2705, allocations: 11.86 kB / 0.7871 GB, free: 0.7656 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.636e-05/0.2706, allocations: 11.86 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 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.0006042/0.2712, allocations: 127.6 kB / 0.7872 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001523/0.2714, allocations: 103.6 kB / 0.7873 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.2715, allocations: 12 kB / 0.7873 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.2716, allocations: 51.83 kB / 0.7873 GB, free: 476 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.728e-05/0.2717, allocations: 43.77 kB / 0.7874 GB, free: 432 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.2717, allocations: 8 kB / 0.7874 GB, free: 424 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2719, allocations: 95.91 kB / 0.7875 GB, free: 328 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.744e-05/0.272, allocations: 23.91 kB / 0.7875 GB, free: 304 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.311e-05/0.272, allocations: 35.86 kB / 0.7875 GB, free: 268 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.2723, allocations: 167.5 kB / 0.7877 GB, free: 100 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2723, allocations: 0 / 0.7877 GB, free: 100 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2723, allocations: 0 / 0.7877 GB, free: 100 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.2723, allocations: 0 / 0.7877 GB, free: 100 kB / 0.6544 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.4182/0.6905, allocations: 495.5 kB / 0.7882 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.6906, allocations: 11.16 kB / 0.7882 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.555e-05/0.6906, allocations: 7.5 kB / 0.7882 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.6908, allocations: 183.9 kB / 0.7884 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.6908, allocations: 6.531 kB / 0.7884 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.69e-05/0.6908, allocations: 8.062 kB / 0.7884 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.691, allocations: 79.22 kB / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.691, allocations: 3.281 kB / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.6911, allocations: 7 kB / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.6911, allocations: 0 / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.6912, allocations: 51.66 kB / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005146/0.6918, allocations: 333.7 kB / 0.7888 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.692, allocations: 86.53 kB / 0.7889 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.564e-05/0.6921, allocations: 42.3 kB / 0.789 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.6921, allocations: 5.25 kB / 0.789 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.6923, allocations: 95.44 kB / 0.7891 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.6923, allocations: 0 / 0.7891 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0004084/0.6927, allocations: 181 kB / 0.7892 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.6928, allocations: 54.03 kB / 0.7893 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.91e-05/0.6929, allocations: 143.5 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.6929, allocations: 29.17 kB / 0.7894 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.669e-05/0.693, allocations: 94.44 kB / 0.7895 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.693, allocations: 23.95 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.693, allocations: 31.7 kB / 0.7896 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.604e-05/0.6931, allocations: 330.4 kB / 0.7899 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.396e-05/0.6932, allocations: 32.28 kB / 0.7899 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.258e-05/0.6933, allocations: 71 kB / 0.79 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.6935, allocations: 115.8 kB / 0.7901 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.6935, allocations: 2.625 kB / 0.7901 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002341/0.6937, allocations: 133 kB / 0.7902 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.6937, allocations: 9.875 kB / 0.7902 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.6938, allocations: 5.531 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.6938, allocations: 2.656 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.6939, allocations: 19.47 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.6939, allocations: 2.719 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.694, allocations: 21.06 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.6941, allocations: 2.562 kB / 0.7903 GB, free: 47.25 MB / 0.6544 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 9.222e-05/0.6942, allocations: 131.8 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/0.6942, allocations: 10.62 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003363/0.6945, allocations: 153.8 kB / 0.7906 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.6945, allocations: 2.625 kB / 0.7906 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.6946, allocations: 1.375 kB / 0.7906 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.6946, allocations: 1.781 kB / 0.7906 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005298/0.6951, allocations: 457.6 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.6951, allocations: 0.5625 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.744e-05/0.6952, allocations: 11.05 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.6952, allocations: 1 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.6952, allocations: 8.969 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.6952, allocations: 2.188 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.6952, allocations: 3.938 kB / 0.7911 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.6955, allocations: 239.9 kB / 0.7913 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.6956, allocations: 85.17 kB / 0.7914 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.6956, allocations: 6.094 kB / 0.7914 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.6957, allocations: 14.8 kB / 0.7914 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.109e-05/0.6958, allocations: 10.69 kB / 0.7914 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.6958, allocations: 9.156 kB / 0.7914 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.179e-05/0.6959, allocations: 102.4 kB / 0.7915 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6959, allocations: 1.75 kB / 0.7915 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000329/0.6962, allocations: 44.88 kB / 0.7915 GB, free: 46.48 MB / 0.6544 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.0003439/0.6966, allocations: 163.4 kB / 0.7917 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.6968, allocations: 98.48 kB / 0.7918 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.6968, allocations: 0 / 0.7918 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.6969, allocations: 58.92 kB / 0.7918 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.6973, allocations: 19.45 kB / 0.7919 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004645/0.6977, allocations: 241.7 kB / 0.7921 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.6979, allocations: 0.7032 MB / 0.7928 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.961e-05/0.6979, allocations: 19.39 kB / 0.7928 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of SimCode: time 2.5e-07/0.6979, allocations: 0 / 0.7928 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of Templates: time 0.003683/0.7016, allocations: 1.934 MB / 0.7947 GB, free: 45.41 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (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 & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)