Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, 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.001226/0.001226, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.541/1.541, 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.736/1.736, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001454/0.001454, allocations: 68.02 kB / 0.6715 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2607, allocations: 114.5 MB / 0.7834 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003237/0.264, allocations: 1.542 MB / 0.7849 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.2654, allocations: 0.8082 MB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.2655, allocations: 0 / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.2655, allocations: 7.875 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.2657, allocations: 19.84 kB / 0.7857 GB, free: 11.09 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.0006193/0.2663, allocations: 135.5 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.2664, allocations: 99.69 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.2666, allocations: 15.98 kB / 0.7859 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.2667, allocations: 47.78 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.231e-05/0.2668, allocations: 43.81 kB / 0.786 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.2668, allocations: 8 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.267, allocations: 99.84 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.473e-05/0.2671, allocations: 19.92 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.129e-05/0.2672, allocations: 51.66 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.2675, allocations: 159.9 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2675, allocations: 3.938 kB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2675, allocations: 0 / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.2675, allocations: 4 kB / 0.7863 GB, free: 10.42 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008831/0.2684, allocations: 0.5001 MB / 0.7868 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.2684, allocations: 12.03 kB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.605e-05/0.2685, allocations: 8.844 kB / 0.7868 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.2686, allocations: 183.2 kB / 0.787 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.2687, allocations: 4.375 kB / 0.787 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.138e-05/0.2687, allocations: 8.375 kB / 0.787 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.2689, allocations: 89.95 kB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2689, allocations: 0 / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.269, allocations: 0 / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.269, allocations: 0 / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.2691, allocations: 59.89 kB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006044/0.2697, allocations: 332.7 kB / 0.7875 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.27, allocations: 86.69 kB / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.8e-05/0.2701, allocations: 36.84 kB / 0.7876 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.2701, allocations: 0 / 0.7876 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.2703, allocations: 99.34 kB / 0.7877 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.2703, allocations: 4 kB / 0.7877 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004367/0.2708, allocations: 177.4 kB / 0.7879 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.2708, allocations: 55.34 kB / 0.7879 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.271, allocations: 141.8 kB / 0.7881 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.271, allocations: 29.7 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.605e-05/0.2711, allocations: 100.1 kB / 0.7882 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.2711, allocations: 27.69 kB / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.469e-05/0.2712, allocations: 33.7 kB / 0.7882 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.2713, allocations: 326.8 kB / 0.7886 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.828e-05/0.2714, allocations: 27.98 kB / 0.7886 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.2715, allocations: 73.06 kB / 0.7887 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.2717, allocations: 105.1 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2717, allocations: 0 / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002539/0.2719, allocations: 141.3 kB / 0.7889 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.272, allocations: 12.92 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.272, allocations: 7.875 kB / 0.7889 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.272, allocations: 8.094 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.2721, allocations: 19.92 kB / 0.7889 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.2721, allocations: 0 / 0.7889 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2722, allocations: 15.98 kB / 0.789 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.2722, allocations: 4 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,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001182/0.2724, allocations: 132.8 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.2724, allocations: 7.906 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003732/0.2728, allocations: 178.2 kB / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2728, allocations: 0 / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2728, allocations: 0 / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.2728, allocations: 0 / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006192/0.2734, allocations: 465 kB / 0.7897 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2734, allocations: 3.984 kB / 0.7897 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.732e-05/0.2735, allocations: 16 kB / 0.7897 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2735, allocations: 0 / 0.7897 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.2736, allocations: 7.984 kB / 0.7897 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.2736, allocations: 7.938 kB / 0.7897 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2736, allocations: 3.938 kB / 0.7897 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003349/0.2739, allocations: 243.3 kB / 0.79 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.274, allocations: 85.02 kB / 0.7901 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.274, allocations: 4 kB / 0.7901 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.2741, allocations: 15.98 kB / 0.7901 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.2742, allocations: 11.92 kB / 0.7901 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.2742, allocations: 11.98 kB / 0.7901 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.877e-05/0.2743, allocations: 110 kB / 0.7902 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2743, allocations: 0 / 0.7902 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003074/0.2746, allocations: 44 kB / 0.7902 GB, free: 6.035 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0003542/0.275, allocations: 175.1 kB / 0.7904 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002792/0.2753, allocations: 95.89 kB / 0.7905 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2753, allocations: 0 / 0.7905 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.2754, allocations: 63.89 kB / 0.7906 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.2757, allocations: 24.11 kB / 0.7906 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004831/0.2762, allocations: 235.5 kB / 0.7908 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.2765, allocations: 0.7041 MB / 0.7915 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.8e-05/0.2766, allocations: 12.55 kB / 0.7915 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.078e-05/0.2766, allocations: 15.44 kB / 0.7915 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.2766, allocations: 0 / 0.7915 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of Templates: time 0.005163/0.2818, allocations: 2.003 MB / 0.7935 GB, free: 2.688 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)