Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 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.Love1998Light1,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",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.001673/0.001673, allocations: 109.4 kB / 15.69 MB, free: 128 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.002294/0.002294, allocations: 188.1 kB / 16.62 MB, free: 6.582 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.492/1.492, 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 8.1.4-maint.8.1.x/package.mo): time 1.779/1.779, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001472/0.001472, allocations: 69.78 kB / 0.6718 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2454, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.003437/0.2488, allocations: 1.519 MB / 0.7851 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001655/0.2505, allocations: 0.7926 MB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.788e-05/0.2506, allocations: 0 / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.012e-05/0.2507, allocations: 11.92 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.2508, allocations: 11.81 kB / 0.7859 GB, free: 10.89 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.0006948/0.2515, allocations: 131.6 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.2517, allocations: 83.69 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.684e-05/0.2518, allocations: 12 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.2519, allocations: 35.84 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.989e-05/0.252, allocations: 43.83 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.502e-05/0.252, allocations: 8 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.2522, allocations: 91.91 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.365e-05/0.2523, allocations: 27.86 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.426e-05/0.2523, allocations: 35.84 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.2526, allocations: 151.8 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2526, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2526, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.2526, allocations: 4 kB / 0.7865 GB, free: 10.28 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.000882/0.2535, allocations: 462.5 kB / 0.7869 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.2536, allocations: 12.03 kB / 0.7869 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.571e-05/0.2536, allocations: 38.75 kB / 0.787 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.581e-05/0.2537, allocations: 8.844 kB / 0.787 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.2539, allocations: 176.2 kB / 0.7872 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.2539, allocations: 4.375 kB / 0.7872 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.2539, allocations: 8.375 kB / 0.7872 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.2542, allocations: 73.72 kB / 0.7872 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2542, allocations: 0 / 0.7872 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.2542, allocations: 4 kB / 0.7872 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2542, allocations: 3.984 kB / 0.7873 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001418/0.2544, allocations: 43.97 kB / 0.7873 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000637/0.255, allocations: 320.7 kB / 0.7876 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.2552, allocations: 58.55 kB / 0.7877 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.777e-05/0.2553, allocations: 32.84 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.2553, allocations: 16.14 kB / 0.7877 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.2556, allocations: 95.33 kB / 0.7878 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.2556, allocations: 0 / 0.7878 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004017/0.256, allocations: 157.5 kB / 0.7879 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.2561, allocations: 55.41 kB / 0.788 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.2562, allocations: 131 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.2562, allocations: 33.7 kB / 0.7882 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.528e-05/0.2563, allocations: 88.38 kB / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.2563, allocations: 23.7 kB / 0.7883 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-05/0.2564, allocations: 33.7 kB / 0.7883 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2565, allocations: 318.8 kB / 0.7886 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.879e-05/0.2566, allocations: 27.97 kB / 0.7886 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.2567, allocations: 71.64 kB / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.2569, allocations: 105 kB / 0.7888 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2569, allocations: 4 kB / 0.7888 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002406/0.2572, allocations: 125.4 kB / 0.7889 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2572, allocations: 11.98 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2572, allocations: 0 / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2572, allocations: 4.375 kB / 0.7889 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.2573, allocations: 15.98 kB / 0.7889 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.587e-06/0.2573, allocations: 3.938 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2575, allocations: 15.94 kB / 0.789 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.2575, allocations: 16.05 kB / 0.789 GB, free: 7.457 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.0001063/0.2576, allocations: 124.8 kB / 0.7891 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.206e-05/0.2576, allocations: 7.906 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003274/0.258, allocations: 149.9 kB / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.258, allocations: 4 kB / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.258, allocations: 0 / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.258, allocations: 0 / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005801/0.2586, allocations: 434.3 kB / 0.7897 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2586, allocations: 0 / 0.7897 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.487e-05/0.2587, allocations: 11.94 kB / 0.7897 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2587, allocations: 0 / 0.7897 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.2587, allocations: 11.98 kB / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.2587, allocations: 3.938 kB / 0.7897 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2587, allocations: 3.938 kB / 0.7897 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003086/0.259, allocations: 223.4 kB / 0.7899 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.762e-05/0.2591, allocations: 89 kB / 0.79 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.2591, allocations: 4 kB / 0.79 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.2592, allocations: 11.92 kB / 0.79 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.2593, allocations: 11.98 kB / 0.79 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.2593, allocations: 8 kB / 0.79 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.93e-05/0.2594, allocations: 95.2 kB / 0.7901 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2594, allocations: 4 kB / 0.7901 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003479/0.2598, allocations: 40 kB / 0.7902 GB, free: 6.141 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.0009032/0.2607, allocations: 0.829 MB / 0.791 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002543/0.2609, allocations: 87.77 kB / 0.7911 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2609, allocations: 0 / 0.7911 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.2611, allocations: 47.97 kB / 0.7911 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.2614, allocations: 11.94 kB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.2632, allocations: 1.603 MB / 0.7927 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.2635, allocations: 0.6924 MB / 0.7934 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.352e-05/0.2636, allocations: 8.422 kB / 0.7934 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.129e-05/0.2637, allocations: 31.42 kB / 0.7934 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of SimCode: time 3.21e-07/0.2637, allocations: 0 / 0.7934 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02065/0.2843, allocations: 3.063 MB / 0.7964 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/7.826, allocations: 0 / 0.7964 GB, free: 15.75 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1)