Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001143/0.001143, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001181/0.001181, allocations: 190.7 kB / 16.25 MB, free: 6.629 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.41/1.41, allocations: 205.1 MB / 222.1 MB, free: 4.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.506/1.506, allocations: 251.7 MB / 0.5089 GB, free: 3.332 MB / 414.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.001279/0.001279, allocations: 72.36 kB / 0.6217 GB, free: 1.879 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5947/0.596, allocations: 104.7 MB / 0.724 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002771/0.5988, allocations: 1.608 MB / 0.7256 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.6003, allocations: 0.8184 MB / 0.7264 GB, free: 10.66 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.409e-05/0.6003, allocations: 0 / 0.7264 GB, free: 10.66 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.562e-05/0.6004, allocations: 3.938 kB / 0.7264 GB, free: 10.65 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.6005, allocations: 11.88 kB / 0.7264 GB, free: 10.64 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.00061/0.6011, allocations: 119.8 kB / 0.7265 GB, free: 10.52 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000131/0.6013, allocations: 103.6 kB / 0.7266 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.6014, allocations: 8 kB / 0.7266 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.6015, allocations: 39.91 kB / 0.7266 GB, free: 10.38 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.27e-05/0.6016, allocations: 51.75 kB / 0.7267 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.6016, allocations: 8 kB / 0.7267 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.6018, allocations: 103.8 kB / 0.7268 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.26e-05/0.6019, allocations: 19.92 kB / 0.7268 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.929e-05/0.602, allocations: 47.77 kB / 0.7268 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.6022, allocations: 157.6 kB / 0.727 GB, free: 9.996 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.6022, allocations: 0 / 0.727 GB, free: 9.996 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.813e-06/0.6022, allocations: 0 / 0.727 GB, free: 9.996 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.6023, allocations: 0 / 0.727 GB, free: 9.996 MB / 0.545 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.0008516/0.6031, allocations: 0.5001 MB / 0.7275 GB, free: 9.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.942e-05/0.6032, allocations: 16.03 kB / 0.7275 GB, free: 9.414 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.824e-05/0.6033, allocations: 8.844 kB / 0.7275 GB, free: 9.406 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.6035, allocations: 196 kB / 0.7277 GB, free: 9.176 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.6035, allocations: 384 / 0.7277 GB, free: 9.176 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.6036, allocations: 16.31 kB / 0.7277 GB, free: 9.16 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.6038, allocations: 81.95 kB / 0.7278 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.6039, allocations: 0 / 0.7278 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.6039, allocations: 0 / 0.7278 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.6039, allocations: 0 / 0.7278 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.6041, allocations: 59.89 kB / 0.7278 GB, free: 9.016 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006179/0.6047, allocations: 328.8 kB / 0.7282 GB, free: 8.645 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.6049, allocations: 86.69 kB / 0.7282 GB, free: 8.551 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.884e-05/0.605, allocations: 40.84 kB / 0.7283 GB, free: 8.508 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.605, allocations: 0 / 0.7283 GB, free: 8.508 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.6052, allocations: 95.27 kB / 0.7284 GB, free: 8.402 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.6053, allocations: 0 / 0.7284 GB, free: 8.402 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004334/0.6057, allocations: 181.8 kB / 0.7285 GB, free: 8.219 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.6058, allocations: 55.34 kB / 0.7286 GB, free: 8.152 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.6059, allocations: 148.2 kB / 0.7287 GB, free: 8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.6059, allocations: 29.7 kB / 0.7288 GB, free: 7.965 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.606, allocations: 100 kB / 0.7289 GB, free: 7.863 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.39e-05/0.606, allocations: 27.64 kB / 0.7289 GB, free: 7.836 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.642e-05/0.6061, allocations: 37.69 kB / 0.7289 GB, free: 7.793 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.6062, allocations: 322.8 kB / 0.7292 GB, free: 7.469 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.683e-05/0.6063, allocations: 31.97 kB / 0.7293 GB, free: 7.438 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.6064, allocations: 65.14 kB / 0.7293 GB, free: 7.355 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.6066, allocations: 109 kB / 0.7294 GB, free: 7.23 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.6066, allocations: 4 kB / 0.7294 GB, free: 7.227 MB / 0.545 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002349/0.6068, allocations: 133.4 kB / 0.7296 GB, free: 7.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.6069, allocations: 8 kB / 0.7296 GB, free: 7.082 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.6069, allocations: 0 / 0.7296 GB, free: 7.082 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.6069, allocations: 7.984 kB / 0.7296 GB, free: 7.074 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.607, allocations: 19.92 kB / 0.7296 GB, free: 7.055 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.607, allocations: 0 / 0.7296 GB, free: 7.055 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.949e-05/0.6071, allocations: 19.94 kB / 0.7296 GB, free: 7.035 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.6072, allocations: 11.98 kB / 0.7296 GB, free: 7.023 MB / 0.545 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 0.0001051/0.6073, allocations: 125.7 kB / 0.7297 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.21e-05/0.6073, allocations: 11.91 kB / 0.7298 GB, free: 6.879 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.6077, allocations: 168.9 kB / 0.7299 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.6077, allocations: 0 / 0.7299 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.6077, allocations: 0 / 0.7299 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.6077, allocations: 4 kB / 0.7299 GB, free: 6.707 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007156/0.6084, allocations: 466.2 kB / 0.7304 GB, free: 6.195 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.6084, allocations: 3.938 kB / 0.7304 GB, free: 6.191 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-05/0.6085, allocations: 15.98 kB / 0.7304 GB, free: 6.176 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.6085, allocations: 0 / 0.7304 GB, free: 6.176 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.6086, allocations: 3.984 kB / 0.7304 GB, free: 6.172 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.6086, allocations: 4 kB / 0.7304 GB, free: 6.168 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.6086, allocations: 7.875 kB / 0.7304 GB, free: 6.16 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003417/0.6089, allocations: 247.4 kB / 0.7306 GB, free: 5.902 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.395e-05/0.609, allocations: 92.86 kB / 0.7307 GB, free: 5.793 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.609, allocations: 4 kB / 0.7307 GB, free: 5.789 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.6092, allocations: 11.98 kB / 0.7307 GB, free: 5.777 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.6092, allocations: 11.92 kB / 0.7308 GB, free: 5.766 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.6092, allocations: 4 kB / 0.7308 GB, free: 5.762 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.107e-05/0.6093, allocations: 111.2 kB / 0.7309 GB, free: 5.652 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6093, allocations: 4 kB / 0.7309 GB, free: 5.648 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003342/0.6097, allocations: 44 kB / 0.7309 GB, free: 5.605 MB / 0.545 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.0003769/0.6101, allocations: 158 kB / 0.7311 GB, free: 5.457 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002636/0.6103, allocations: 107.9 kB / 0.7312 GB, free: 5.352 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.6104, allocations: 3.938 kB / 0.7312 GB, free: 5.348 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.6105, allocations: 51.92 kB / 0.7312 GB, free: 5.297 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.6108, allocations: 26.92 kB / 0.7312 GB, free: 5.273 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004892/0.6113, allocations: 269 kB / 0.7315 GB, free: 4.988 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.6116, allocations: 0.7002 MB / 0.7322 GB, free: 4.262 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.079e-05/0.6116, allocations: 16.55 kB / 0.7322 GB, free: 4.242 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.174e-05/0.6117, allocations: 15.44 kB / 0.7322 GB, free: 4.227 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.6117, allocations: 0 / 0.7322 GB, free: 4.227 MB / 0.545 GB Notification: Performance of Templates: time 0.005215/0.6169, allocations: 1.937 MB / 0.7341 GB, free: 2.297 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)