Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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.Love1998Light1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007498/0.007498, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001254/0.001255, allocations: 195.7 kB / 16.68 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.576/1.576, 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.559/1.559, allocations: 251.7 MB / 0.5094 GB, free: 3.023 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.001956/0.001956, allocations: 75.88 kB / 0.7258 GB, free: 9 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2839, allocations: 104.7 MB / 0.828 GB, free: 188 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.003026/0.2869, allocations: 1.497 MB / 0.8295 GB, free: 14.67 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.2884, allocations: 0.8109 MB / 0.8303 GB, free: 13.85 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-05/0.2885, allocations: 3.938 kB / 0.8303 GB, free: 13.85 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.512e-05/0.2885, allocations: 7.875 kB / 0.8303 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.375e-05/0.2886, allocations: 11.86 kB / 0.8303 GB, free: 13.83 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.0005571/0.2892, allocations: 131.6 kB / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.2893, allocations: 79.77 kB / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.677e-05/0.2894, allocations: 15.98 kB / 0.8305 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.739e-05/0.2895, allocations: 43.78 kB / 0.8306 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.752e-05/0.2896, allocations: 39.83 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.2896, allocations: 4 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.2898, allocations: 99.84 kB / 0.8307 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.79e-05/0.2898, allocations: 15.98 kB / 0.8307 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.421e-05/0.2899, allocations: 43.78 kB / 0.8308 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.2901, allocations: 143.6 kB / 0.8309 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2902, allocations: 0 / 0.8309 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2902, allocations: 0 / 0.8309 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.378e-06/0.2902, allocations: 0 / 0.8309 GB, free: 13.22 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.0007386/0.2909, allocations: 470.5 kB / 0.8313 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.291, allocations: 8.031 kB / 0.8313 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.291, allocations: 12.84 kB / 0.8314 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.2912, allocations: 180.2 kB / 0.8315 GB, free: 12.47 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.2912, allocations: 8.375 kB / 0.8315 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.2912, allocations: 4.375 kB / 0.8315 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.2914, allocations: 77.95 kB / 0.8316 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.2914, allocations: 0 / 0.8316 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.2914, allocations: 0 / 0.8316 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2914, allocations: 0 / 0.8316 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.2916, allocations: 47.91 kB / 0.8317 GB, free: 12.33 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005115/0.2921, allocations: 324.7 kB / 0.832 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.2922, allocations: 62.48 kB / 0.832 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.163e-05/0.2923, allocations: 36.84 kB / 0.8321 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.2924, allocations: 0 / 0.8321 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.2926, allocations: 99.39 kB / 0.8322 GB, free: 11.74 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.2926, allocations: 0 / 0.8322 GB, free: 11.74 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0003664/0.293, allocations: 157.5 kB / 0.8323 GB, free: 11.58 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.293, allocations: 55.41 kB / 0.8324 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.062e-05/0.2931, allocations: 125.8 kB / 0.8325 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.2932, allocations: 25.7 kB / 0.8325 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.564e-05/0.2932, allocations: 96.38 kB / 0.8326 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.591e-05/0.2932, allocations: 27.64 kB / 0.8326 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.2933, allocations: 33.7 kB / 0.8327 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2934, allocations: 318.8 kB / 0.833 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.891e-05/0.2935, allocations: 31.97 kB / 0.833 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.2936, allocations: 69.08 kB / 0.8331 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.2938, allocations: 101.1 kB / 0.8332 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2938, allocations: 0 / 0.8332 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002203/0.294, allocations: 129.4 kB / 0.8333 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.294, allocations: 11.98 kB / 0.8333 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.294, allocations: 0 / 0.8333 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.2941, allocations: 4 kB / 0.8333 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.2942, allocations: 19.86 kB / 0.8333 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.2942, allocations: 4 kB / 0.8333 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.831e-05/0.2943, allocations: 11.91 kB / 0.8333 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.2943, allocations: 11.98 kB / 0.8333 GB, free: 10.44 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.0001146/0.2944, allocations: 121.9 kB / 0.8335 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.2945, allocations: 7.906 kB / 0.8335 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003682/0.2948, allocations: 145.9 kB / 0.8336 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2948, allocations: 4.375 kB / 0.8336 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2949, allocations: 0 / 0.8336 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.2949, allocations: 4.078 kB / 0.8336 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006149/0.2955, allocations: 438.4 kB / 0.834 GB, free: 9.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2955, allocations: 7.938 kB / 0.834 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.589e-05/0.2956, allocations: 8 kB / 0.834 GB, free: 9.645 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2956, allocations: 0 / 0.834 GB, free: 9.645 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.2956, allocations: 3.984 kB / 0.834 GB, free: 9.641 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2956, allocations: 4 kB / 0.8341 GB, free: 9.637 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.2956, allocations: 3.938 kB / 0.8341 GB, free: 9.633 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.2959, allocations: 227.3 kB / 0.8343 GB, free: 9.395 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.944e-05/0.296, allocations: 93 kB / 0.8344 GB, free: 9.285 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.296, allocations: 3.938 kB / 0.8344 GB, free: 9.281 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.2961, allocations: 7.984 kB / 0.8344 GB, free: 9.273 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.2962, allocations: 15.92 kB / 0.8344 GB, free: 9.258 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.2962, allocations: 4 kB / 0.8344 GB, free: 9.254 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.871e-05/0.2963, allocations: 97.64 kB / 0.8345 GB, free: 9.16 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2963, allocations: 0 / 0.8345 GB, free: 9.16 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003017/0.2966, allocations: 44 kB / 0.8345 GB, free: 9.117 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 (12): * Single equations (assignments): 9 * 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.0003588/0.2969, allocations: 156.3 kB / 0.8347 GB, free: 8.973 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003221/0.2973, allocations: 83.89 kB / 0.8348 GB, free: 8.891 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.2973, allocations: 4 kB / 0.8348 GB, free: 8.887 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.2974, allocations: 56.09 kB / 0.8348 GB, free: 8.832 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.2977, allocations: 15.92 kB / 0.8348 GB, free: 8.816 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004457/0.2982, allocations: 207.6 kB / 0.835 GB, free: 8.586 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.2985, allocations: 0.6924 MB / 0.8357 GB, free: 7.867 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.386e-05/0.2985, allocations: 12.42 kB / 0.8357 GB, free: 7.855 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.2986, allocations: 15.44 kB / 0.8357 GB, free: 7.84 MB / 0.6544 GB Notification: Performance of SimCode: time 1.483e-06/0.2986, allocations: 0 / 0.8357 GB, free: 7.84 MB / 0.6544 GB Notification: Performance of Templates: time 0.004595/0.3032, allocations: 1.81 MB / 0.8375 GB, free: 6.035 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1)