Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 197.1 kB / 16.64 MB, free: 6.445 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.556/1.556, allocations: 205.1 MB / 222.5 MB, free: 4.582 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.769/1.769, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001664/0.001664, allocations: 71.31 kB / 0.6718 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.246, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.003386/0.2494, allocations: 1.519 MB / 0.7851 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2509, allocations: 0.7926 MB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.166e-05/0.2509, allocations: 0 / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.251, allocations: 3.938 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.795e-05/0.2511, allocations: 27.78 kB / 0.7859 GB, free: 10.91 MB / 0.6075 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 8.1.4-maint.8.1.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 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.0007033/0.2518, allocations: 127.6 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.252, allocations: 83.72 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.2521, allocations: 7.984 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.2522, allocations: 39.84 kB / 0.7862 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.295e-05/0.2523, allocations: 43.83 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.2524, allocations: 12 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.2526, allocations: 91.91 kB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.285e-05/0.2526, allocations: 15.92 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.061e-05/0.2527, allocations: 39.78 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.253, allocations: 151.8 kB / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.253, allocations: 0 / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.294e-06/0.253, allocations: 0 / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.253, allocations: 0 / 0.7865 GB, free: 10.3 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0009485/0.254, allocations: 470.5 kB / 0.787 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.254, allocations: 8.031 kB / 0.787 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.154e-05/0.2541, allocations: 38.75 kB / 0.787 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.025e-05/0.2541, allocations: 12.83 kB / 0.787 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.2543, allocations: 171.7 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.2544, allocations: 384 / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.2544, allocations: 16.25 kB / 0.7872 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.2546, allocations: 73.77 kB / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2546, allocations: 0 / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.2547, allocations: 8 kB / 0.7873 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.2547, allocations: 7.984 kB / 0.7873 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.2548, allocations: 39.91 kB / 0.7873 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006302/0.2555, allocations: 328.6 kB / 0.7876 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.2556, allocations: 58.55 kB / 0.7877 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.176e-05/0.2557, allocations: 40.84 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.2558, allocations: 0 / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000281/0.2561, allocations: 95.38 kB / 0.7878 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.2561, allocations: 0 / 0.7878 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004474/0.2565, allocations: 157.5 kB / 0.788 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.2566, allocations: 51.41 kB / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.2567, allocations: 137.7 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.2568, allocations: 25.7 kB / 0.7882 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.104e-05/0.2568, allocations: 96.36 kB / 0.7883 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.81e-05/0.2569, allocations: 19.72 kB / 0.7883 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.09e-05/0.2569, allocations: 29.7 kB / 0.7883 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2571, allocations: 326.8 kB / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.647e-05/0.2572, allocations: 23.98 kB / 0.7886 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.2573, allocations: 69.12 kB / 0.7887 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.2575, allocations: 105 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.2575, allocations: 4 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002463/0.2578, allocations: 125.4 kB / 0.7889 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.2578, allocations: 8 kB / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.2578, allocations: 0 / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2578, allocations: 0 / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.258, allocations: 19.98 kB / 0.789 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.258, allocations: 4 kB / 0.789 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2581, allocations: 16.05 kB / 0.789 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.2581, allocations: 4 kB / 0.789 GB, free: 7.488 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,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.0001157/0.2582, allocations: 129.7 kB / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.301e-05/0.2583, allocations: 12.27 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003257/0.2586, allocations: 149.9 kB / 0.7893 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2586, allocations: 0 / 0.7893 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.2586, allocations: 0 / 0.7893 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2586, allocations: 15.88 kB / 0.7893 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005635/0.2592, allocations: 426.4 kB / 0.7897 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2592, allocations: 0 / 0.7897 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.743e-05/0.2593, allocations: 15.92 kB / 0.7897 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.2593, allocations: 96 / 0.7897 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.2593, allocations: 7.984 kB / 0.7897 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2593, allocations: 3.938 kB / 0.7897 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2593, allocations: 0 / 0.7897 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003121/0.2596, allocations: 231.4 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.102e-05/0.2597, allocations: 81.02 kB / 0.79 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.2597, allocations: 8 kB / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.2599, allocations: 11.92 kB / 0.79 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.2599, allocations: 7.984 kB / 0.79 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.2599, allocations: 11.94 kB / 0.79 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.357e-05/0.26, allocations: 102.6 kB / 0.7901 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.26, allocations: 0 / 0.7901 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003601/0.2604, allocations: 43.98 kB / 0.7902 GB, free: 6.152 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 (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.0008119/0.2612, allocations: 0.8166 MB / 0.791 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002462/0.2615, allocations: 87.83 kB / 0.7911 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2615, allocations: 0 / 0.7911 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.2616, allocations: 47.86 kB / 0.7911 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.2619, allocations: 22.98 kB / 0.7911 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.2636, allocations: 1.596 MB / 0.7927 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.2639, allocations: 0.6963 MB / 0.7934 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.345e-05/0.264, allocations: 8.438 kB / 0.7934 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.326e-05/0.2641, allocations: 27.42 kB / 0.7934 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.2641, allocations: 7.938 kB / 0.7934 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.2875, allocations: 3.061 MB / 0.7964 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.646/7.934, allocations: 6.25 kB / 0.7964 GB, free: 15.75 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1)