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.001155/0.001155, allocations: 108 kB / 15.6 MB, free: 132 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.001343/0.001343, allocations: 195.3 kB / 16.53 MB, free: 6.391 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.46/1.46, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.732/1.732, allocations: 292.3 MB / 0.5489 GB, free: 13.55 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.001656/0.001656, allocations: 69.2 kB / 0.6716 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2475, allocations: 114.5 MB / 0.7835 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.005351/0.2529, allocations: 1.512 MB / 0.7849 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001907/0.2549, allocations: 0.7926 MB / 0.7857 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.152e-05/0.255, allocations: 4 kB / 0.7857 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.082e-05/0.2552, allocations: 7.875 kB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.2553, allocations: 11.86 kB / 0.7857 GB, free: 11.16 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.0007003/0.256, allocations: 135.5 kB / 0.7859 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.2562, allocations: 83.7 kB / 0.786 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.2563, allocations: 15.98 kB / 0.786 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.2564, allocations: 35.86 kB / 0.786 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.63e-05/0.2565, allocations: 43.81 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.2565, allocations: 4 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.2568, allocations: 99.84 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.981e-05/0.2568, allocations: 19.92 kB / 0.7862 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.072e-05/0.2569, allocations: 31.86 kB / 0.7862 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.2572, allocations: 151.8 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.403e-06/0.2572, allocations: 0 / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2572, allocations: 0 / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.2573, allocations: 4 kB / 0.7863 GB, free: 10.55 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.0009099/0.2582, allocations: 458.5 kB / 0.7868 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.2582, allocations: 12.03 kB / 0.7868 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.148e-05/0.2583, allocations: 38.75 kB / 0.7868 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/0.2583, allocations: 8.844 kB / 0.7868 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.2585, allocations: 180.2 kB / 0.787 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2585, allocations: 8.375 kB / 0.787 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.2585, allocations: 4.375 kB / 0.787 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.2587, allocations: 77.77 kB / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2588, allocations: 0 / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.2588, allocations: 0 / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2588, allocations: 0 / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.2589, allocations: 51.91 kB / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.2595, allocations: 312.7 kB / 0.7874 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.2596, allocations: 62.55 kB / 0.7875 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.632e-05/0.2597, allocations: 32.84 kB / 0.7875 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.2598, allocations: 8 kB / 0.7875 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.26, allocations: 91.55 kB / 0.7876 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.26, allocations: 3.938 kB / 0.7876 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004021/0.2604, allocations: 157.5 kB / 0.7878 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.2605, allocations: 59.39 kB / 0.7878 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2606, allocations: 129.7 kB / 0.788 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.2607, allocations: 33.7 kB / 0.788 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.294e-05/0.2607, allocations: 88.38 kB / 0.7881 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/0.2608, allocations: 27.64 kB / 0.7881 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/0.2608, allocations: 33.7 kB / 0.7881 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.2609, allocations: 322.8 kB / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.734e-05/0.261, allocations: 27.98 kB / 0.7885 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.924e-05/0.2611, allocations: 68.14 kB / 0.7885 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.2613, allocations: 105 kB / 0.7886 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2613, allocations: 4 kB / 0.7886 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002394/0.2616, allocations: 133.4 kB / 0.7888 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.2616, allocations: 4.938 kB / 0.7888 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2616, allocations: 0 / 0.7888 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.2616, allocations: 4 kB / 0.7888 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.2618, allocations: 15.98 kB / 0.7888 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.2618, allocations: 3.938 kB / 0.7888 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.2619, allocations: 16.05 kB / 0.7888 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.2619, allocations: 16 kB / 0.7888 GB, free: 7.723 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.0001083/0.262, allocations: 117.8 kB / 0.7889 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.034e-05/0.262, allocations: 7.906 kB / 0.7889 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003441/0.2624, allocations: 149.9 kB / 0.7891 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2624, allocations: 4 kB / 0.7891 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2624, allocations: 0 / 0.7891 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.2624, allocations: 7.984 kB / 0.7891 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/0.263, allocations: 434.3 kB / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.263, allocations: 0 / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.621e-05/0.2631, allocations: 11.98 kB / 0.7895 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2631, allocations: 0 / 0.7895 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.2631, allocations: 4 kB / 0.7895 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.2631, allocations: 3.938 kB / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2631, allocations: 384 / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.2634, allocations: 231.3 kB / 0.7898 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.43e-05/0.2635, allocations: 89.02 kB / 0.7898 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.2635, allocations: 0 / 0.7898 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.2636, allocations: 15.86 kB / 0.7899 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.2637, allocations: 19.92 kB / 0.7899 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.2637, allocations: 4 kB / 0.7899 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.587e-05/0.2638, allocations: 99.27 kB / 0.79 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2638, allocations: 0 / 0.79 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003102/0.2641, allocations: 43.98 kB / 0.79 GB, free: 6.398 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.0008749/0.265, allocations: 0.8169 MB / 0.7908 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002557/0.2653, allocations: 87.83 kB / 0.7909 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2653, allocations: 0 / 0.7909 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.2654, allocations: 51.86 kB / 0.7909 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.2657, allocations: 22.91 kB / 0.791 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.2675, allocations: 1.594 MB / 0.7925 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.2677, allocations: 0.7002 MB / 0.7932 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.181e-05/0.2678, allocations: 12.38 kB / 0.7932 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.2679, allocations: 27.42 kB / 0.7932 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.2679, allocations: 0 / 0.7932 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.2876, allocations: 3.032 MB / 0.7962 GB, free: 20 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.041, allocations: 10.27 kB / 0.7962 GB, free: 12 kB / 0.6075 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)