Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 100.4 kB / 16.29 MB, free: 6 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.001693/0.001693, allocations: 184.5 kB / 17.22 MB, free: 5.617 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.553/1.553, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.945/1.945, allocations: 292.3 MB / 0.5495 GB, free: 17.39 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.001751/0.001752, allocations: 67.89 kB / 0.6722 GB, free: 6.512 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2928, allocations: 114.6 MB / 0.7841 GB, free: 3.84 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.003076/0.2959, allocations: 1.515 MB / 0.7856 GB, free: 2.309 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2974, allocations: 0.7916 MB / 0.7863 GB, free: 1.508 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.233e-05/0.2974, allocations: 0 / 0.7863 GB, free: 1.508 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.224e-05/0.2975, allocations: 7.875 kB / 0.7863 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.527e-05/0.2976, allocations: 15.86 kB / 0.7864 GB, free: 1.484 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.0006343/0.2983, allocations: 131.6 kB / 0.7865 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.2984, allocations: 91.62 kB / 0.7866 GB, free: 1.266 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2985, allocations: 19.94 kB / 0.7866 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.2986, allocations: 35.91 kB / 0.7866 GB, free: 1.211 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.802e-05/0.2987, allocations: 43.77 kB / 0.7867 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.2988, allocations: 8 kB / 0.7867 GB, free: 1.16 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.299, allocations: 95.84 kB / 0.7868 GB, free: 1.066 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.172e-05/0.299, allocations: 19.97 kB / 0.7868 GB, free: 1.047 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.131e-05/0.2991, allocations: 39.8 kB / 0.7868 GB, free: 1.008 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.2994, allocations: 155.8 kB / 0.787 GB, free: 0.8555 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2994, allocations: 0 / 0.787 GB, free: 0.8555 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.475e-06/0.2994, allocations: 0 / 0.787 GB, free: 0.8555 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2994, allocations: 4 kB / 0.787 GB, free: 0.8516 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000839/0.3002, allocations: 474.5 kB / 0.7874 GB, free: 336 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3003, allocations: 8.031 kB / 0.7874 GB, free: 328 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.968e-05/0.3004, allocations: 12.84 kB / 0.7874 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.3005, allocations: 180.2 kB / 0.7876 GB, free: 96 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.034e-05/0.3006, allocations: 34.27 kB / 0.7876 GB, free: 56 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.3006, allocations: 8.375 kB / 0.7877 GB, free: 48 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5091/0.8098, allocations: 79.19 kB / 0.7877 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.8098, allocations: 0 / 0.7877 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.8099, allocations: 1.594 kB / 0.7877 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.8099, allocations: 0.9375 kB / 0.7877 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.8102, allocations: 48.42 kB / 0.7878 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007131/0.8109, allocations: 324 kB / 0.7881 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.8111, allocations: 72.45 kB / 0.7882 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.85e-05/0.8112, allocations: 43.05 kB / 0.7882 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.8113, allocations: 0 / 0.7882 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003337/0.8116, allocations: 96.84 kB / 0.7883 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.724e-06/0.8116, allocations: 0.75 kB / 0.7883 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0004553/0.8121, allocations: 170.8 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.8121, allocations: 58 kB / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.56e-05/0.8122, allocations: 130.2 kB / 0.7886 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.8123, allocations: 27.7 kB / 0.7887 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.434e-05/0.8123, allocations: 102 kB / 0.7888 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.8124, allocations: 21.67 kB / 0.7888 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.448e-05/0.8124, allocations: 37.27 kB / 0.7888 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.94e-05/0.8125, allocations: 321.9 kB / 0.7891 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.577e-05/0.8126, allocations: 29.36 kB / 0.7891 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.8127, allocations: 76.45 kB / 0.7892 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.8129, allocations: 111.5 kB / 0.7893 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.8129, allocations: 0 / 0.7893 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002481/0.8132, allocations: 134.9 kB / 0.7895 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.8132, allocations: 5.75 kB / 0.7895 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.8132, allocations: 1.812 kB / 0.7895 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.8133, allocations: 5.594 kB / 0.7895 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.8134, allocations: 22.66 kB / 0.7895 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.8134, allocations: 2.906 kB / 0.7895 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.8135, allocations: 20.58 kB / 0.7895 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.8135, allocations: 5.844 kB / 0.7895 GB, free: 47.79 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.746e-05/0.8136, allocations: 126.8 kB / 0.7896 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.8136, allocations: 10.28 kB / 0.7896 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.817e-05/0.8137, allocations: 10.47 kB / 0.7897 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.8137, allocations: 0 / 0.7897 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.8137, allocations: 3.172 kB / 0.7897 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.8137, allocations: 6.562 kB / 0.7897 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005075/0.8142, allocations: 431.6 kB / 0.7901 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.8142, allocations: 0 / 0.7901 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.518e-05/0.8143, allocations: 9.109 kB / 0.7901 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.8143, allocations: 4.469 kB / 0.7901 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.8143, allocations: 8.75 kB / 0.7901 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.8143, allocations: 2.594 kB / 0.7901 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8143, allocations: 1.156 kB / 0.7901 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002823/0.8146, allocations: 227.2 kB / 0.7903 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.137e-05/0.8147, allocations: 84.27 kB / 0.7904 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.8147, allocations: 8.688 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.8148, allocations: 17.22 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.8149, allocations: 6.922 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.8149, allocations: 3.797 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.719e-05/0.815, allocations: 104.6 kB / 0.7905 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.815, allocations: 0.9375 kB / 0.7905 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003134/0.8153, allocations: 44.94 kB / 0.7906 GB, free: 47.06 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0003294/0.8156, allocations: 160.9 kB / 0.7907 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002727/0.8159, allocations: 92.56 kB / 0.7908 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.8159, allocations: 0 / 0.7908 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.816, allocations: 50.55 kB / 0.7909 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.8164, allocations: 23.94 kB / 0.7909 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000474/0.8168, allocations: 199.2 kB / 0.7911 GB, free: 46.85 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.817, allocations: 0.6949 MB / 0.7918 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.564e-05/0.8171, allocations: 11.27 kB / 0.7918 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.555e-05/0.8171, allocations: 18.97 kB / 0.7918 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of SimCode: time 2e-07/0.8171, allocations: 0 / 0.7918 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of Templates: time 0.00453/0.8216, allocations: 1.801 MB / 0.7935 GB, free: 46.07 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)