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.001017/0.001017, allocations: 102.5 kB / 15.98 MB, free: 6.355 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.001009/0.001009, allocations: 196.8 kB / 16.91 MB, free: 6.188 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.416/1.416, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.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.645/1.645, allocations: 292.3 MB / 0.5492 GB, free: 13.63 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.00132/0.00132, allocations: 73.66 kB / 0.6716 GB, free: 26.5 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2195, allocations: 114.5 MB / 0.7835 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002775/0.2223, allocations: 1.589 MB / 0.7851 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001368/0.2237, allocations: 0.7839 MB / 0.7858 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.084e-05/0.2238, allocations: 0 / 0.7858 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.629e-05/0.2238, allocations: 0 / 0.7858 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.651e-05/0.2239, allocations: 15.86 kB / 0.7858 GB, free: 11.48 MB / 0.6075 GB [/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.0005225/0.2245, allocations: 112.4 kB / 0.786 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.2246, allocations: 103.6 kB / 0.7861 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.686e-05/0.2247, allocations: 15.98 kB / 0.7861 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.2248, allocations: 39.91 kB / 0.7861 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.922e-05/0.2249, allocations: 47.77 kB / 0.7861 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.2249, allocations: 8 kB / 0.7862 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.2251, allocations: 103.8 kB / 0.7863 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.812e-05/0.2251, allocations: 19.92 kB / 0.7863 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.257e-05/0.2252, allocations: 43.78 kB / 0.7863 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001872/0.2254, allocations: 116 kB / 0.7864 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.2254, allocations: 4 kB / 0.7864 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2254, allocations: 0 / 0.7864 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.2254, allocations: 0 / 0.7864 GB, free: 10.88 MB / 0.6075 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.0007276/0.2261, allocations: 496.2 kB / 0.7869 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2262, allocations: 12.03 kB / 0.7869 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.141e-05/0.2262, allocations: 8.844 kB / 0.7869 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.2264, allocations: 180.2 kB / 0.7871 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.2264, allocations: 12.3 kB / 0.7871 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.2264, allocations: 4.375 kB / 0.7871 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.2266, allocations: 85.95 kB / 0.7872 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.2267, allocations: 4 kB / 0.7872 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.2267, allocations: 0 / 0.7872 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.2267, allocations: 0 / 0.7872 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.2268, allocations: 51.97 kB / 0.7872 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005675/0.2274, allocations: 332.6 kB / 0.7876 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/0.2276, allocations: 82.67 kB / 0.7876 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.622e-05/0.2277, allocations: 40.84 kB / 0.7877 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.2278, allocations: 4 kB / 0.7877 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.228, allocations: 95.38 kB / 0.7878 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.228, allocations: 7.938 kB / 0.7878 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.000421/0.2284, allocations: 177.5 kB / 0.788 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.2285, allocations: 59.39 kB / 0.788 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.2286, allocations: 130.1 kB / 0.7881 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.2286, allocations: 29.7 kB / 0.7882 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/0.2287, allocations: 96.05 kB / 0.7883 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.874e-05/0.2287, allocations: 27.64 kB / 0.7883 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.2288, allocations: 33.7 kB / 0.7883 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.2289, allocations: 322.8 kB / 0.7886 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.706e-05/0.229, allocations: 35.91 kB / 0.7887 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.522e-05/0.2291, allocations: 72.23 kB / 0.7887 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.2293, allocations: 109 kB / 0.7888 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2293, allocations: 0 / 0.7888 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002323/0.2295, allocations: 141.4 kB / 0.789 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2296, allocations: 7.938 kB / 0.789 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2296, allocations: 4 kB / 0.789 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.2296, allocations: 4.094 kB / 0.789 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.2297, allocations: 19.92 kB / 0.789 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.2297, allocations: 4 kB / 0.789 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.2298, allocations: 23.83 kB / 0.789 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.2299, allocations: 4 kB / 0.789 GB, free: 7.938 MB / 0.6075 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.703e-05/0.23, allocations: 120.8 kB / 0.7891 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.23, allocations: 15.84 kB / 0.7892 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003372/0.2303, allocations: 162.3 kB / 0.7893 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2304, allocations: 0 / 0.7893 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2304, allocations: 0 / 0.7893 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.2304, allocations: 0 / 0.7893 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005682/0.2309, allocations: 462.2 kB / 0.7898 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.231, allocations: 0 / 0.7898 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.08e-05/0.231, allocations: 11.98 kB / 0.7898 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.231, allocations: 4 kB / 0.7898 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.2311, allocations: 4 kB / 0.7898 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2311, allocations: 0 / 0.7898 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2311, allocations: 7.922 kB / 0.7898 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003027/0.2314, allocations: 235.4 kB / 0.79 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.2314, allocations: 89 kB / 0.7901 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.2315, allocations: 4 kB / 0.7901 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.2316, allocations: 11.98 kB / 0.7901 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/0.2317, allocations: 15.92 kB / 0.7901 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.2317, allocations: 4 kB / 0.7901 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.871e-05/0.2317, allocations: 99.27 kB / 0.7902 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2317, allocations: 0 / 0.7902 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003024/0.2321, allocations: 47.98 kB / 0.7903 GB, free: 6.562 MB / 0.6075 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.000328/0.2324, allocations: 168.5 kB / 0.7904 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002596/0.2327, allocations: 103.8 kB / 0.7905 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2327, allocations: 0 / 0.7905 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.2328, allocations: 56.41 kB / 0.7906 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.2331, allocations: 16.17 kB / 0.7906 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004734/0.2336, allocations: 281.3 kB / 0.7909 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.2339, allocations: 0.7002 MB / 0.7915 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.278e-05/0.2339, allocations: 19.42 kB / 0.7916 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2339, allocations: 0 / 0.7916 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of Templates: time 0.003653/0.2376, allocations: 1.933 MB / 0.7935 GB, free: 3.262 MB / 0.6075 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)