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.001635/0.001635, allocations: 113.8 kB / 16.37 MB, free: 6.012 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.001655/0.001655, allocations: 187.1 kB / 17.31 MB, free: 5.613 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.531/1.531, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.79/1.79, allocations: 292.3 MB / 0.5496 GB, free: 17.59 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.002761/0.002761, allocations: 71.25 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2593, allocations: 114.6 MB / 0.7848 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003017/0.2624, allocations: 1.553 MB / 0.7863 GB, free: 1.605 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.2639, allocations: 0.7993 MB / 0.7871 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.999e-05/0.264, allocations: 0 / 0.7871 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.471e-05/0.2641, allocations: 3.938 kB / 0.7871 GB, free: 0.793 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.2642, allocations: 35.72 kB / 0.7871 GB, free: 0.7578 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.0006097/0.2648, allocations: 127.5 kB / 0.7872 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.2649, allocations: 95.75 kB / 0.7873 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.2651, allocations: 11.94 kB / 0.7874 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.2652, allocations: 55.77 kB / 0.7874 GB, free: 484 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.052e-05/0.2653, allocations: 43.77 kB / 0.7874 GB, free: 440 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.2653, allocations: 12 kB / 0.7875 GB, free: 428 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.2655, allocations: 99.84 kB / 0.7876 GB, free: 328 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.463e-05/0.2655, allocations: 23.91 kB / 0.7876 GB, free: 304 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.16e-05/0.2656, allocations: 39.8 kB / 0.7876 GB, free: 264 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.2659, allocations: 163.5 kB / 0.7878 GB, free: 100 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2659, allocations: 0 / 0.7878 GB, free: 100 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2659, allocations: 0 / 0.7878 GB, free: 100 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.2659, allocations: 0 / 0.7878 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.4293/0.6952, allocations: 0.4943 MB / 0.7883 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.6953, allocations: 10.83 kB / 0.7883 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.624e-05/0.6954, allocations: 11.25 kB / 0.7883 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.6955, allocations: 182.8 kB / 0.7884 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.6955, allocations: 9.078 kB / 0.7885 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.6955, allocations: 6.5 kB / 0.7885 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.6957, allocations: 84.36 kB / 0.7885 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.6958, allocations: 0 / 0.7885 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.6958, allocations: 7.078 kB / 0.7885 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.6958, allocations: 0 / 0.7885 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.6959, allocations: 48.16 kB / 0.7886 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.6965, allocations: 342.5 kB / 0.7889 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.6967, allocations: 80.78 kB / 0.789 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.768e-05/0.6968, allocations: 37.75 kB / 0.789 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.6968, allocations: 1.375 kB / 0.789 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.697, allocations: 100.7 kB / 0.7891 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.697, allocations: 2.375 kB / 0.7891 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003955/0.6974, allocations: 175.8 kB / 0.7893 GB, free: 48.08 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.6975, allocations: 57.34 kB / 0.7894 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.691e-05/0.6976, allocations: 143.6 kB / 0.7895 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.6976, allocations: 34.95 kB / 0.7895 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.915e-05/0.6976, allocations: 93.83 kB / 0.7896 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.6977, allocations: 32.2 kB / 0.7896 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.6977, allocations: 37.28 kB / 0.7897 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.6978, allocations: 322.6 kB / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.151e-05/0.6979, allocations: 28.81 kB / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.489e-05/0.698, allocations: 68.78 kB / 0.7901 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.6981, allocations: 111.7 kB / 0.7902 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.6981, allocations: 2.688 kB / 0.7902 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002166/0.6983, allocations: 139.4 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.6984, allocations: 5.969 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.6984, allocations: 3.75 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.6984, allocations: 3.031 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.6985, allocations: 20.41 kB / 0.7904 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.6985, allocations: 2.719 kB / 0.7904 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.401e-05/0.6986, allocations: 11.72 kB / 0.7904 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.6987, allocations: 9.938 kB / 0.7904 GB, free: 47.32 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 7.208e-05/0.6987, allocations: 128.2 kB / 0.7905 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.928e-05/0.6988, allocations: 9.438 kB / 0.7905 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003251/0.6991, allocations: 172.8 kB / 0.7907 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.6991, allocations: 2.625 kB / 0.7907 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.6991, allocations: 0.625 kB / 0.7907 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.6991, allocations: 3.141 kB / 0.7907 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005288/0.6997, allocations: 459.1 kB / 0.7911 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.6997, allocations: 0.875 kB / 0.7911 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.077e-05/0.6998, allocations: 15.86 kB / 0.7911 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.6998, allocations: 1.281 kB / 0.7911 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.6998, allocations: 10.06 kB / 0.7911 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6998, allocations: 1.875 kB / 0.7911 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6998, allocations: 1.812 kB / 0.7912 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000283/0.7001, allocations: 256.1 kB / 0.7914 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.906e-05/0.7001, allocations: 88.12 kB / 0.7915 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.7002, allocations: 4.719 kB / 0.7915 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.7003, allocations: 8.109 kB / 0.7915 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.7003, allocations: 15.77 kB / 0.7915 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.7004, allocations: 9.828 kB / 0.7915 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.182e-05/0.7004, allocations: 108.2 kB / 0.7916 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7004, allocations: 0 / 0.7916 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003498/0.7008, allocations: 51.92 kB / 0.7917 GB, free: 46.55 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.0003358/0.7011, allocations: 161.1 kB / 0.7918 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002566/0.7014, allocations: 102.1 kB / 0.7919 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7014, allocations: 0 / 0.7919 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.7015, allocations: 58.11 kB / 0.792 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.7019, allocations: 21.59 kB / 0.792 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004797/0.7023, allocations: 259.5 kB / 0.7922 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.7025, allocations: 0.7003 MB / 0.7929 GB, free: 45.6 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.7026, allocations: 14 kB / 0.7929 GB, free: 45.6 MB / 0.6544 GB Notification: Performance of SimCode: time 9.52e-07/0.7026, allocations: 0 / 0.7929 GB, free: 45.6 MB / 0.6544 GB Notification: Performance of Templates: time 0.003874/0.7065, allocations: 1.991 MB / 0.7949 GB, free: 45.47 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)