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.001533/0.001533, allocations: 108 kB / 15.61 MB, free: 152 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.001306/0.001306, allocations: 196.6 kB / 16.53 MB, free: 6.699 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.433/1.433, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.783/1.783, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.00145/0.00145, allocations: 68.2 kB / 0.6716 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2682, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.003439/0.2717, allocations: 1.504 MB / 0.7849 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00144/0.2732, allocations: 0.8004 MB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.451e-05/0.2732, allocations: 7.938 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.638e-05/0.2733, allocations: 3.938 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.074e-05/0.2734, allocations: 15.84 kB / 0.7857 GB, free: 11.05 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.0006099/0.274, allocations: 131.5 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.2741, allocations: 79.72 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.2743, allocations: 19.98 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.689e-05/0.2744, allocations: 35.91 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.137e-05/0.2744, allocations: 39.83 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.2745, allocations: 4 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.2747, allocations: 99.84 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.32e-05/0.2747, allocations: 23.91 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.502e-05/0.2748, allocations: 31.86 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.275, allocations: 151.8 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.275, allocations: 4 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.332e-06/0.275, allocations: 0 / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.2751, allocations: 0 / 0.7863 GB, free: 10.44 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.0007741/0.2758, allocations: 462.5 kB / 0.7868 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2759, allocations: 12.03 kB / 0.7868 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.2759, allocations: 34.69 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.276, allocations: 12.84 kB / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.2761, allocations: 176.3 kB / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.2761, allocations: 4.375 kB / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.2762, allocations: 4.375 kB / 0.787 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.2764, allocations: 77.77 kB / 0.7871 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.2764, allocations: 3.938 kB / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.2764, allocations: 0 / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.2764, allocations: 0 / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.2765, allocations: 43.97 kB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.2771, allocations: 324.6 kB / 0.7874 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.2773, allocations: 74.56 kB / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.965e-05/0.2773, allocations: 32.84 kB / 0.7875 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.2774, allocations: 0 / 0.7875 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.2776, allocations: 95.36 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.2776, allocations: 0 / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.000414/0.278, allocations: 157.5 kB / 0.7878 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.2781, allocations: 55.41 kB / 0.7878 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.2782, allocations: 125.7 kB / 0.788 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.2783, allocations: 33.7 kB / 0.788 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.2783, allocations: 92.31 kB / 0.7881 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.2784, allocations: 27.84 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-05/0.2784, allocations: 37.7 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2785, allocations: 326.7 kB / 0.7885 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.268e-05/0.2786, allocations: 23.98 kB / 0.7885 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.717e-05/0.2787, allocations: 66.14 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.2789, allocations: 101.1 kB / 0.7886 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2789, allocations: 0 / 0.7886 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002491/0.2792, allocations: 133.4 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.2792, allocations: 4 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.2792, allocations: 0 / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2792, allocations: 4 kB / 0.7888 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.2793, allocations: 19.92 kB / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2794, allocations: 0 / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2795, allocations: 19.92 kB / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.2795, allocations: 4 kB / 0.7888 GB, free: 7.621 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 9.014e-05/0.2796, allocations: 129.9 kB / 0.7889 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.94e-05/0.2796, allocations: 3.906 kB / 0.7889 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003101/0.2799, allocations: 154.2 kB / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2799, allocations: 4 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2799, allocations: 0 / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.28, allocations: 3.984 kB / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005487/0.2805, allocations: 430.2 kB / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2805, allocations: 0 / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.177e-05/0.2806, allocations: 11.98 kB / 0.7895 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2806, allocations: 0 / 0.7895 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.2806, allocations: 8 kB / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2806, allocations: 3.938 kB / 0.7895 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2806, allocations: 0 / 0.7895 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002981/0.2809, allocations: 235.3 kB / 0.7898 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.683e-05/0.281, allocations: 89.09 kB / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.281, allocations: 0 / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.2812, allocations: 19.92 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.2812, allocations: 7.984 kB / 0.7899 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.2812, allocations: 4 kB / 0.7899 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.727e-05/0.2813, allocations: 101.9 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2813, allocations: 0 / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003319/0.2817, allocations: 43.98 kB / 0.79 GB, free: 6.293 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.0008792/0.2825, allocations: 0.817 MB / 0.7908 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002574/0.2828, allocations: 87.89 kB / 0.7909 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2828, allocations: 0 / 0.7909 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.2829, allocations: 51.86 kB / 0.7909 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.2833, allocations: 23.86 kB / 0.791 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.285, allocations: 1.588 MB / 0.7925 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.2853, allocations: 0.6963 MB / 0.7932 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.263e-05/0.2854, allocations: 12.44 kB / 0.7932 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.423e-05/0.2854, allocations: 27.42 kB / 0.7932 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.2854, allocations: 0 / 0.7932 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01937/0.3048, allocations: 3.048 MB / 0.7962 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.959, allocations: 3.75 kB / 0.7962 GB, free: 15.9 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1)