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.001077/0.001078, allocations: 111.3 kB / 16.38 MB, free: 6.484 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.001125/0.001125, allocations: 190.7 kB / 17.32 MB, free: 5.82 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.281/1.281, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.743/1.743, allocations: 292.3 MB / 0.5496 GB, free: 17.38 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.002247/0.002247, allocations: 74.78 kB / 0.6729 GB, free: 5.863 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2036, allocations: 114.6 MB / 0.7848 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.00247/0.2061, allocations: 1.531 MB / 0.7863 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2073, allocations: 0.7915 MB / 0.7871 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.074e-05/0.2073, allocations: 0 / 0.7871 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.772e-05/0.2074, allocations: 3.938 kB / 0.7871 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.96e-05/0.2075, allocations: 23.78 kB / 0.7871 GB, free: 0.8164 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.0005335/0.208, allocations: 131.6 kB / 0.7872 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001253/0.2082, allocations: 99.69 kB / 0.7873 GB, free: 0.5898 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 8.604e-05/0.2082, allocations: 8 kB / 0.7873 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.164e-05/0.2083, allocations: 51.77 kB / 0.7874 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.967e-05/0.2084, allocations: 43.83 kB / 0.7874 GB, free: 500 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.2085, allocations: 11.98 kB / 0.7874 GB, free: 488 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.2086, allocations: 95.86 kB / 0.7875 GB, free: 392 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.2087, allocations: 27.91 kB / 0.7875 GB, free: 364 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.157e-05/0.2087, allocations: 39.8 kB / 0.7876 GB, free: 324 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.209, allocations: 159.6 kB / 0.7877 GB, free: 164 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.209, allocations: 0 / 0.7877 GB, free: 164 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.102e-06/0.209, allocations: 0 / 0.7877 GB, free: 164 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.209, allocations: 0 / 0.7877 GB, free: 164 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.3184/0.5274, allocations: 491.8 kB / 0.7882 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.5274, allocations: 13.19 kB / 0.7882 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.282e-05/0.5275, allocations: 8.344 kB / 0.7882 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.49e-05/0.5276, allocations: 183.1 kB / 0.7884 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.5276, allocations: 3 kB / 0.7884 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.5276, allocations: 10.86 kB / 0.7884 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.5278, allocations: 85.39 kB / 0.7885 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.5278, allocations: 0 / 0.7885 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.5278, allocations: 7.875 kB / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.5279, allocations: 0 / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.528, allocations: 51.25 kB / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004539/0.5285, allocations: 327.4 kB / 0.7889 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.5287, allocations: 92.45 kB / 0.7889 GB, free: 48.19 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.181e-05/0.5288, allocations: 40.83 kB / 0.789 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.5288, allocations: 2.625 kB / 0.789 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.529, allocations: 98.36 kB / 0.7891 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.529, allocations: 0 / 0.7891 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003733/0.5294, allocations: 178.8 kB / 0.7892 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.003e-05/0.5294, allocations: 61.44 kB / 0.7893 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.136e-05/0.5295, allocations: 137.3 kB / 0.7894 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.5295, allocations: 33.08 kB / 0.7895 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.788e-05/0.5296, allocations: 91.89 kB / 0.7896 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.5296, allocations: 21.77 kB / 0.7896 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.349e-05/0.5296, allocations: 32.03 kB / 0.7896 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 3.667e-05/0.5297, allocations: 322.5 kB / 0.7899 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.421e-05/0.5298, allocations: 32.05 kB / 0.7899 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.058e-05/0.5298, allocations: 77.27 kB / 0.79 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.53, allocations: 102.8 kB / 0.7901 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.53, allocations: 4.469 kB / 0.7901 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002583/0.5303, allocations: 142.6 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.5303, allocations: 6.031 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.5303, allocations: 0 / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.5303, allocations: 2.625 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.5305, allocations: 20.05 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.5305, allocations: 4.125 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.5307, allocations: 20.59 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.5307, allocations: 8.562 kB / 0.7903 GB, free: 47.34 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 6.243e-05/0.5307, allocations: 125.9 kB / 0.7904 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.959e-05/0.5308, allocations: 9.656 kB / 0.7904 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003064/0.5311, allocations: 160.8 kB / 0.7906 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.5311, allocations: 3.234 kB / 0.7906 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5311, allocations: 0.5 kB / 0.7906 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.164e-05/0.5311, allocations: 88.2 kB / 0.7907 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.5312, allocations: 5.438 kB / 0.7907 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/0.5313, allocations: 14.11 kB / 0.7907 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.5313, allocations: 12.38 kB / 0.7907 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002959/0.5316, allocations: 232.4 kB / 0.7909 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002614/0.5319, allocations: 321.1 kB / 0.7912 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001092/0.532, allocations: 53.98 kB / 0.7913 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.851e-05/0.5321, allocations: 99.75 kB / 0.7914 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of Backend: time 3.7e-07/0.5321, allocations: 0.625 kB / 0.7914 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0006105/0.5327, allocations: 195.6 kB / 0.7916 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of SimCode: time 0.0003836/0.5331, allocations: 0.641 MB / 0.7922 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of Templates: time 0.004087/0.5372, allocations: 1.903 MB / 0.7941 GB, free: 45.95 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)