Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 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.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.006085/0.006085, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.001441/0.001441, allocations: 190 kB / 16.67 MB, free: 5.977 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.594/1.594, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.6/1.6, allocations: 251.7 MB / 0.5094 GB, free: 3.078 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.001709/0.00171, allocations: 63.91 kB / 0.7257 GB, free: 9.078 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2348, allocations: 104.7 MB / 0.828 GB, free: 268 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002976/0.2378, allocations: 1.521 MB / 0.8295 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.2394, allocations: 0.7992 MB / 0.8303 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.302e-05/0.2395, allocations: 0 / 0.8303 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.484e-05/0.2396, allocations: 15.86 kB / 0.8303 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.2397, allocations: 15.88 kB / 0.8303 GB, free: 13.89 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 7.0.3-maint.7.0.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 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.0007129/0.2404, allocations: 131.5 kB / 0.8304 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001462/0.2406, allocations: 87.75 kB / 0.8305 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.2407, allocations: 15.98 kB / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.2408, allocations: 43.86 kB / 0.8306 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.067e-05/0.2409, allocations: 43.81 kB / 0.8306 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.2409, allocations: 8 kB / 0.8306 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.2412, allocations: 95.84 kB / 0.8307 GB, free: 13.47 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.524e-05/0.2412, allocations: 19.92 kB / 0.8307 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.409e-05/0.2413, allocations: 39.8 kB / 0.8308 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.2416, allocations: 151.5 kB / 0.8309 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2416, allocations: 4 kB / 0.8309 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.824e-06/0.2416, allocations: 0 / 0.8309 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.2416, allocations: 0 / 0.8309 GB, free: 13.26 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.0008565/0.2425, allocations: 470.5 kB / 0.8314 GB, free: 12.74 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2425, allocations: 8.031 kB / 0.8314 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.2426, allocations: 16.83 kB / 0.8314 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.2428, allocations: 184.1 kB / 0.8316 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.288e-05/0.2429, allocations: 34.25 kB / 0.8316 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.2429, allocations: 12.31 kB / 0.8316 GB, free: 12.45 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.2431, allocations: 85.7 kB / 0.8317 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.2431, allocations: 0 / 0.8317 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.2432, allocations: 4 kB / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.2432, allocations: 0 / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.2434, allocations: 43.97 kB / 0.8317 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006061/0.244, allocations: 320.8 kB / 0.832 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.2442, allocations: 74.56 kB / 0.8321 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.2444, allocations: 40.83 kB / 0.8322 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.2444, allocations: 0 / 0.8322 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.2447, allocations: 95.36 kB / 0.8323 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 2.294e-06/0.2447, allocations: 0 / 0.8323 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0005167/0.2452, allocations: 169.4 kB / 0.8324 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.2453, allocations: 63.5 kB / 0.8325 GB, free: 11.47 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.2454, allocations: 133.1 kB / 0.8326 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2454, allocations: 29.7 kB / 0.8326 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/0.2455, allocations: 104.3 kB / 0.8327 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.2455, allocations: 23.66 kB / 0.8327 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.597e-05/0.2456, allocations: 33.7 kB / 0.8328 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.2457, allocations: 322.8 kB / 0.8331 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2458, allocations: 31.97 kB / 0.8331 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.246, allocations: 77.12 kB / 0.8332 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.2462, allocations: 97.06 kB / 0.8333 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2462, allocations: 4 kB / 0.8333 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003096/0.2465, allocations: 133.4 kB / 0.8334 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.2466, allocations: 6.812 kB / 0.8334 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.2466, allocations: 4 kB / 0.8334 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.2466, allocations: 0 / 0.8334 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.2467, allocations: 27.91 kB / 0.8335 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.2467, allocations: 4 kB / 0.8335 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.2469, allocations: 16.11 kB / 0.8335 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.2469, allocations: 7.984 kB / 0.8335 GB, free: 10.36 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 0.0001003/0.247, allocations: 129.7 kB / 0.8336 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.188e-05/0.247, allocations: 7.906 kB / 0.8336 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.2471, allocations: 12.72 kB / 0.8336 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.2471, allocations: 3.984 kB / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2471, allocations: 3.938 kB / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2471, allocations: 4 kB / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006301/0.2477, allocations: 426.3 kB / 0.834 GB, free: 9.723 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2477, allocations: 0 / 0.834 GB, free: 9.723 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.433e-05/0.2478, allocations: 8.453 kB / 0.8341 GB, free: 9.715 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2478, allocations: 4 kB / 0.8341 GB, free: 9.711 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.2479, allocations: 7.984 kB / 0.8341 GB, free: 9.703 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.2479, allocations: 7.938 kB / 0.8341 GB, free: 9.695 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2479, allocations: 4 kB / 0.8341 GB, free: 9.691 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.2482, allocations: 223.3 kB / 0.8343 GB, free: 9.457 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.2483, allocations: 89.02 kB / 0.8344 GB, free: 9.352 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.2483, allocations: 3.984 kB / 0.8344 GB, free: 9.348 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.2484, allocations: 15.92 kB / 0.8344 GB, free: 9.332 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/0.2485, allocations: 16.06 kB / 0.8344 GB, free: 9.316 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.2485, allocations: 8 kB / 0.8344 GB, free: 9.309 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.555e-05/0.2486, allocations: 99.27 kB / 0.8345 GB, free: 9.211 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2486, allocations: 3.938 kB / 0.8345 GB, free: 9.207 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003214/0.2489, allocations: 47.92 kB / 0.8346 GB, free: 9.16 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.0003663/0.2493, allocations: 151.5 kB / 0.8347 GB, free: 9.016 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003104/0.2496, allocations: 87.89 kB / 0.8348 GB, free: 8.93 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2497, allocations: 96 / 0.8348 GB, free: 8.93 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.2498, allocations: 51.84 kB / 0.8348 GB, free: 8.879 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.2501, allocations: 14.33 kB / 0.8348 GB, free: 8.867 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005373/0.2507, allocations: 211.8 kB / 0.8351 GB, free: 8.633 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.251, allocations: 0.6962 MB / 0.8357 GB, free: 7.91 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.469e-05/0.251, allocations: 8.672 kB / 0.8357 GB, free: 7.902 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.2511, allocations: 19.42 kB / 0.8358 GB, free: 7.883 MB / 0.6544 GB Notification: Performance of SimCode: time 1.714e-06/0.2511, allocations: 0 / 0.8358 GB, free: 7.883 MB / 0.6544 GB Notification: Performance of Templates: time 0.004991/0.2561, allocations: 1.822 MB / 0.8375 GB, free: 6.074 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)