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.001133/0.001133, 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.0012/0.0012, allocations: 189.6 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.431/1.431, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.776/1.776, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.00163/0.00163, allocations: 71.73 kB / 0.6718 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2652, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002845/0.2681, allocations: 1.511 MB / 0.7851 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2694, allocations: 0.7926 MB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.2695, allocations: 0 / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.599e-05/0.2695, allocations: 3.938 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.77e-05/0.2696, allocations: 23.78 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.0005764/0.2702, allocations: 131.5 kB / 0.786 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.2704, allocations: 83.72 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2705, allocations: 15.98 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.2706, allocations: 39.84 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.137e-05/0.2707, allocations: 39.83 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.917e-05/0.2707, allocations: 8 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001926/0.2709, allocations: 95.91 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.2709, allocations: 19.91 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.356e-05/0.271, allocations: 31.86 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002669/0.2712, allocations: 155.8 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2713, allocations: 0 / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2713, allocations: 0 / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.2713, allocations: 0 / 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.0007262/0.272, allocations: 466.5 kB / 0.7869 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2721, allocations: 8.031 kB / 0.7869 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.2721, allocations: 42.73 kB / 0.787 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.015e-05/0.2721, allocations: 12.83 kB / 0.787 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.2724, allocations: 172.3 kB / 0.7872 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.2724, allocations: 8.375 kB / 0.7872 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.2724, allocations: 4.375 kB / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.2726, allocations: 85.7 kB / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2726, allocations: 0 / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.2726, allocations: 0 / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2726, allocations: 0 / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.2728, allocations: 43.97 kB / 0.7873 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005259/0.2733, allocations: 324.6 kB / 0.7876 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.2735, allocations: 58.56 kB / 0.7877 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.133e-05/0.2736, allocations: 36.84 kB / 0.7877 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.2736, allocations: 3.984 kB / 0.7877 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.2738, allocations: 99.33 kB / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.2738, allocations: 3.938 kB / 0.7878 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004328/0.2743, allocations: 157.5 kB / 0.7879 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.2743, allocations: 51.41 kB / 0.788 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.2745, allocations: 136.6 kB / 0.7881 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.2745, allocations: 25.7 kB / 0.7882 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.2746, allocations: 96.36 kB / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.2746, allocations: 23.86 kB / 0.7883 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-05/0.2747, allocations: 29.7 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.2748, allocations: 330.8 kB / 0.7886 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.161e-05/0.2749, allocations: 27.98 kB / 0.7886 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.435e-05/0.275, allocations: 65.12 kB / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.2752, allocations: 105 kB / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2752, allocations: 0 / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002279/0.2754, allocations: 125.4 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.2754, allocations: 8 kB / 0.7889 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.2754, allocations: 0 / 0.7889 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2755, allocations: 8.125 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.2756, allocations: 11.98 kB / 0.7889 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.2756, allocations: 4 kB / 0.7889 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.882e-05/0.2757, allocations: 15.92 kB / 0.789 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.2757, allocations: 4 kB / 0.789 GB, free: 7.461 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 8.898e-05/0.2758, allocations: 132.5 kB / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.2758, allocations: 11.98 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003169/0.2761, allocations: 153.9 kB / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.2762, allocations: 4 kB / 0.7893 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2762, allocations: 0 / 0.7893 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.2762, allocations: 0 / 0.7893 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005658/0.2768, allocations: 426.2 kB / 0.7897 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2768, allocations: 384 / 0.7897 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.955e-05/0.2768, allocations: 15.92 kB / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2769, allocations: 0 / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.2769, allocations: 4 kB / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.2769, allocations: 11.88 kB / 0.7897 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.2769, allocations: 4 kB / 0.7897 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.2772, allocations: 227.3 kB / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.2773, allocations: 85.02 kB / 0.79 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.2773, allocations: 4 kB / 0.79 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.2774, allocations: 15.92 kB / 0.79 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.2775, allocations: 11.98 kB / 0.79 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.2775, allocations: 7.984 kB / 0.79 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.944e-05/0.2776, allocations: 95.27 kB / 0.7901 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2776, allocations: 0 / 0.7901 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003268/0.2779, allocations: 44 kB / 0.7902 GB, free: 6.129 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.0008564/0.2788, allocations: 0.8163 MB / 0.791 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002356/0.279, allocations: 79.89 kB / 0.791 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.279, allocations: 3.938 kB / 0.791 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.2791, allocations: 52.17 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.0002958/0.2794, allocations: 26.67 kB / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.2811, allocations: 1.602 MB / 0.7927 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.2814, allocations: 0.6924 MB / 0.7934 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.18e-05/0.2814, allocations: 12.61 kB / 0.7934 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.427e-05/0.2815, allocations: 27.42 kB / 0.7934 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of SimCode: time 4.51e-07/0.2815, allocations: 0 / 0.7934 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.3015, allocations: 3.06 MB / 0.7964 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/7.852, allocations: 7.766 kB / 0.7964 GB, free: 15.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1)