Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 104.9 kB / 16.27 MB, free: 5.871 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.001905/0.001905, allocations: 188.3 kB / 17.2 MB, free: 5.512 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.603/1.603, allocations: 205.1 MB / 223.1 MB, free: 12.28 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.82/1.82, allocations: 292.3 MB / 0.5495 GB, free: 17.5 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.001676/0.001677, allocations: 63.91 kB / 0.6721 GB, free: 6.609 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2806, allocations: 114.6 MB / 0.784 GB, free: 3.941 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003712/0.2844, allocations: 1.539 MB / 0.7855 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001785/0.2862, allocations: 0.8071 MB / 0.7863 GB, free: 1.566 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.349e-05/0.2863, allocations: 0 / 0.7863 GB, free: 1.566 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.947e-05/0.2864, allocations: 7.875 kB / 0.7863 GB, free: 1.559 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.2866, allocations: 23.78 kB / 0.7863 GB, free: 1.535 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.0008441/0.2874, allocations: 135.5 kB / 0.7865 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.2876, allocations: 103.6 kB / 0.7866 GB, free: 1.301 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.2878, allocations: 8 kB / 0.7866 GB, free: 1.293 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.2879, allocations: 47.83 kB / 0.7866 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.2881, allocations: 47.77 kB / 0.7867 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.2881, allocations: 8 kB / 0.7867 GB, free: 1.191 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002725/0.2884, allocations: 99.84 kB / 0.7868 GB, free: 1.094 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.263e-05/0.2884, allocations: 23.97 kB / 0.7868 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.079e-05/0.2885, allocations: 43.73 kB / 0.7868 GB, free: 1.027 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.2889, allocations: 163.8 kB / 0.787 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2889, allocations: 0 / 0.787 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2889, allocations: 0 / 0.787 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.2889, allocations: 0 / 0.787 GB, free: 0.8672 MB / 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.0009494/0.2898, allocations: 0.5039 MB / 0.7875 GB, free: 304 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.2899, allocations: 8.031 kB / 0.7875 GB, free: 296 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.147e-05/0.29, allocations: 16.84 kB / 0.7875 GB, free: 280 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.2902, allocations: 180.2 kB / 0.7877 GB, free: 60 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.2902, allocations: 8.359 kB / 0.7877 GB, free: 52 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.2902, allocations: 4.375 kB / 0.7877 GB, free: 48 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5245/0.8147, allocations: 78.16 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.8148, allocations: 3.219 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.8148, allocations: 2.438 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.8148, allocations: 1.375 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.8151, allocations: 50.06 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.8158, allocations: 339.2 kB / 0.7881 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.8161, allocations: 77 kB / 0.7882 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.456e-05/0.8162, allocations: 35.75 kB / 0.7883 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.8162, allocations: 7.828 kB / 0.7883 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002971/0.8165, allocations: 104.5 kB / 0.7884 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 3.016e-06/0.8165, allocations: 0 / 0.7884 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0004506/0.817, allocations: 175.2 kB / 0.7885 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.817, allocations: 54.34 kB / 0.7886 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.8172, allocations: 147 kB / 0.7887 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.8172, allocations: 29.23 kB / 0.7887 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.513e-05/0.8172, allocations: 99.08 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.8173, allocations: 24.62 kB / 0.7889 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.159e-05/0.8173, allocations: 36.44 kB / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.751e-05/0.8174, allocations: 327.9 kB / 0.7892 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.707e-05/0.8175, allocations: 29.28 kB / 0.7892 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.088e-05/0.8176, allocations: 75.22 kB / 0.7893 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.8178, allocations: 106.9 kB / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.8178, allocations: 0 / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002415/0.818, allocations: 137.6 kB / 0.7895 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.8181, allocations: 5.688 kB / 0.7896 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.8181, allocations: 2.719 kB / 0.7896 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.8181, allocations: 3.312 kB / 0.7896 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.8182, allocations: 21.94 kB / 0.7896 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.8182, allocations: 4.5 kB / 0.7896 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.8183, allocations: 23 kB / 0.7896 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.8184, allocations: 2.625 kB / 0.7896 GB, free: 47.69 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 8.387e-05/0.8185, allocations: 128 kB / 0.7897 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.8185, allocations: 11.34 kB / 0.7897 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003418/0.8188, allocations: 178.5 kB / 0.7899 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.8189, allocations: 1.812 kB / 0.7899 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.8189, allocations: 0 / 0.7899 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.8189, allocations: 3.938 kB / 0.7899 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005364/0.8194, allocations: 457.4 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.8194, allocations: 3.828 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.101e-05/0.8195, allocations: 16.64 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.8195, allocations: 2.625 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.8196, allocations: 3.938 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.8196, allocations: 7.344 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.8196, allocations: 0 / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.8199, allocations: 246.8 kB / 0.7906 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.082e-05/0.8199, allocations: 93.28 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.8199, allocations: 8.219 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.8201, allocations: 12.38 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.8201, allocations: 10.17 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.8202, allocations: 4.453 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.833e-05/0.8202, allocations: 110 kB / 0.7908 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.61e-07/0.8202, allocations: 2.625 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003372/0.8206, allocations: 43.84 kB / 0.7909 GB, free: 46.93 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 (14): * Single equations (assignments): 11 * 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.0003869/0.821, allocations: 170.7 kB / 0.7911 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000273/0.8213, allocations: 99.97 kB / 0.7912 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.8213, allocations: 0 / 0.7912 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.8214, allocations: 57.5 kB / 0.7912 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.8217, allocations: 20.38 kB / 0.7912 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004893/0.8222, allocations: 261.4 kB / 0.7915 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.8224, allocations: 0.7054 MB / 0.7922 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.8224, allocations: 16.05 kB / 0.7922 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of SimCode: time 3.11e-07/0.8225, allocations: 0 / 0.7922 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of Templates: time 0.004277/0.8267, allocations: 1.997 MB / 0.7941 GB, free: 45.84 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)