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.007601/0.007601, allocations: 103.1 kB / 15.73 MB, free: 6.039 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.00153/0.00153, allocations: 192.6 kB / 16.67 MB, free: 5.973 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.563/1.563, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.632/1.632, allocations: 251.7 MB / 0.5094 GB, free: 3.094 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.001569/0.001569, allocations: 66.09 kB / 0.7257 GB, free: 9.07 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2764, allocations: 104.7 MB / 0.828 GB, free: 256 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002869/0.2793, allocations: 1.513 MB / 0.8295 GB, free: 14.72 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.2808, allocations: 0.8147 MB / 0.8303 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.558e-05/0.2808, allocations: 0 / 0.8303 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.598e-05/0.2809, allocations: 7.922 kB / 0.8303 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.887e-05/0.281, allocations: 15.8 kB / 0.8303 GB, free: 13.88 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.0006115/0.2816, allocations: 135.6 kB / 0.8304 GB, free: 13.74 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.2818, allocations: 87.77 kB / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.2819, allocations: 11.98 kB / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.654e-05/0.282, allocations: 39.8 kB / 0.8306 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.624e-05/0.2821, allocations: 43.81 kB / 0.8306 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.2821, allocations: 8 kB / 0.8306 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/0.2823, allocations: 99.84 kB / 0.8307 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.2823, allocations: 23.92 kB / 0.8307 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.731e-05/0.2824, allocations: 35.8 kB / 0.8308 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002567/0.2827, allocations: 151.6 kB / 0.8309 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2827, allocations: 0 / 0.8309 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2827, allocations: 0 / 0.8309 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.2827, allocations: 0 / 0.8309 GB, free: 13.25 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.0008502/0.2835, allocations: 470.5 kB / 0.8314 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2836, allocations: 16.03 kB / 0.8314 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.964e-05/0.2837, allocations: 12.83 kB / 0.8314 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.2838, allocations: 184.1 kB / 0.8316 GB, free: 12.48 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.91e-05/0.2839, allocations: 38.25 kB / 0.8316 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.2839, allocations: 8.312 kB / 0.8316 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.2842, allocations: 77.77 kB / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.2842, allocations: 0 / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.2842, allocations: 3.938 kB / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.2842, allocations: 4 kB / 0.8317 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.2844, allocations: 51.91 kB / 0.8317 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005551/0.285, allocations: 316.8 kB / 0.8321 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/0.2852, allocations: 66.55 kB / 0.8321 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.2854, allocations: 52.86 kB / 0.8322 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.2854, allocations: 4.156 kB / 0.8322 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003085/0.2857, allocations: 91.34 kB / 0.8323 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.2857, allocations: 0 / 0.8323 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.000541/0.2863, allocations: 173.5 kB / 0.8324 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.2863, allocations: 51.41 kB / 0.8325 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.2865, allocations: 138 kB / 0.8326 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.2865, allocations: 29.7 kB / 0.8326 GB, free: 11.28 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.839e-05/0.2866, allocations: 96.36 kB / 0.8327 GB, free: 11.18 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.2866, allocations: 23.66 kB / 0.8327 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.406e-05/0.2867, allocations: 29.7 kB / 0.8328 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.2868, allocations: 330.8 kB / 0.8331 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.2869, allocations: 31.97 kB / 0.8331 GB, free: 10.76 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.2871, allocations: 73.06 kB / 0.8332 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.2873, allocations: 105.1 kB / 0.8333 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2873, allocations: 0 / 0.8333 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002912/0.2876, allocations: 137.5 kB / 0.8334 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.2877, allocations: 8 kB / 0.8334 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2877, allocations: 0 / 0.8334 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2877, allocations: 4 kB / 0.8334 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.2878, allocations: 27.91 kB / 0.8335 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.455e-06/0.2879, allocations: 0 / 0.8335 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.288, allocations: 12.36 kB / 0.8335 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.288, allocations: 4 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.0001135/0.2881, allocations: 133.8 kB / 0.8336 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.2881, allocations: 7.906 kB / 0.8336 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.2882, allocations: 12.66 kB / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2882, allocations: 7.984 kB / 0.8336 GB, free: 10.19 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2882, allocations: 3.938 kB / 0.8336 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2882, allocations: 0 / 0.8336 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006022/0.2888, allocations: 430.2 kB / 0.834 GB, free: 9.707 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2888, allocations: 0 / 0.834 GB, free: 9.707 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.2889, allocations: 11.98 kB / 0.8341 GB, free: 9.695 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2889, allocations: 0 / 0.8341 GB, free: 9.695 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.2889, allocations: 11.98 kB / 0.8341 GB, free: 9.684 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.2889, allocations: 3.938 kB / 0.8341 GB, free: 9.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2889, allocations: 0 / 0.8341 GB, free: 9.68 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003394/0.2893, allocations: 223.3 kB / 0.8343 GB, free: 9.445 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.2893, allocations: 81.02 kB / 0.8344 GB, free: 9.348 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.2894, allocations: 11.98 kB / 0.8344 GB, free: 9.336 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.2895, allocations: 11.92 kB / 0.8344 GB, free: 9.324 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.613e-05/0.2896, allocations: 11.98 kB / 0.8344 GB, free: 9.312 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.2896, allocations: 8 kB / 0.8344 GB, free: 9.305 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.974e-05/0.2897, allocations: 106.2 kB / 0.8345 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2897, allocations: 0 / 0.8345 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003176/0.29, allocations: 47.92 kB / 0.8345 GB, free: 9.156 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.0003532/0.2904, allocations: 156.3 kB / 0.8347 GB, free: 9.008 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000306/0.2907, allocations: 88.08 kB / 0.8348 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2907, allocations: 4.062 kB / 0.8348 GB, free: 8.918 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.2908, allocations: 47.91 kB / 0.8348 GB, free: 8.871 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.2912, allocations: 15.98 kB / 0.8348 GB, free: 8.855 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.2916, allocations: 203.6 kB / 0.835 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.2919, allocations: 0.6963 MB / 0.8357 GB, free: 7.906 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.799e-05/0.292, allocations: 8.672 kB / 0.8357 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.676e-05/0.292, allocations: 19.42 kB / 0.8357 GB, free: 7.879 MB / 0.6544 GB Notification: Performance of SimCode: time 2.604e-06/0.292, allocations: 0 / 0.8357 GB, free: 7.879 MB / 0.6544 GB Notification: Performance of Templates: time 0.004762/0.2968, allocations: 1.82 MB / 0.8375 GB, free: 6.07 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)