Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.434/1.434, allocations: 249.5 MB / 257 MB, free: 6.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 183.6 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.64/1.64, allocations: 205.3 MB / 0.5671 GB, free: 15.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008464/0.0008464, allocations: 88.25 kB / 0.6714 GB, free: 4.902 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.573e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2601, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8619/1.122, allocations: 134.1 MB / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/1.122, allocations: 82.56 kB / 1.016 GB, free: 3.617 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 FrontEnd - DAE generated: time 0.009295/1.132, allocations: 3.133 MB / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.403e-06/1.132, allocations: 0 / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.556e-06/1.132, allocations: 4 kB / 1.019 GB, free: 0.9609 MB / 0.6355 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.0006747/1.132, allocations: 459.7 kB / 1.02 GB, free: 472 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/1.132, allocations: 8.031 kB / 1.02 GB, free: 464 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.89e-05/1.133, allocations: 11.91 kB / 1.02 GB, free: 452 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/1.133, allocations: 188.9 kB / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-05/1.133, allocations: 29.7 kB / 1.02 GB, free: 192 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/1.133, allocations: 4 kB / 1.02 GB, free: 188 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001109/1.133, allocations: 30.17 kB / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/1.133, allocations: 67.41 kB / 1.02 GB, free: 104 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/1.133, allocations: 0 / 1.02 GB, free: 104 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/1.133, allocations: 0 / 1.02 GB, free: 104 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/1.133, allocations: 4 kB / 1.02 GB, free: 100 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005939/1.134, allocations: 309.9 kB / 1.02 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001144/1.134, allocations: 59.16 kB / 1.02 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.426e-05/1.134, allocations: 31.98 kB / 1.02 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/1.134, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/1.134, allocations: 81.34 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/1.134, allocations: 0 / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0002706/1.134, allocations: 110.7 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/1.134, allocations: 59.39 kB / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/1.135, allocations: 119 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/1.135, allocations: 29.7 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.612e-05/1.135, allocations: 95.59 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/1.135, allocations: 19.05 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-06/1.135, allocations: 0 / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001705/1.135, allocations: 322.7 kB / 1.021 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.95e-05/1.135, allocations: 18.41 kB / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.505e-05/1.135, allocations: 58.28 kB / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.131e-05/1.135, allocations: 30.86 kB / 1.021 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/1.135, allocations: 0 / 1.021 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001723/1.135, allocations: 114.9 kB / 1.021 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/1.135, allocations: 6.188 kB / 1.021 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/1.135, allocations: 0 / 1.021 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/1.135, allocations: 8.125 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/1.135, allocations: 19.92 kB / 1.022 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/1.135, allocations: 4 kB / 1.022 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/1.136, allocations: 15.92 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/1.136, allocations: 7.953 kB / 1.022 GB, free: 14.61 MB / 0.6511 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 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.905e-05/1.136, allocations: 116.8 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/1.136, allocations: 19.92 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/1.136, allocations: 7.875 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/1.136, allocations: 4 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/1.136, allocations: 0 / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/1.136, allocations: 0 / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/1.136, allocations: 381.7 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/1.136, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.592e-05/1.136, allocations: 15.98 kB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/1.136, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/1.136, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/1.136, allocations: 4 kB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.136, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002177/1.137, allocations: 207.1 kB / 1.022 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/1.137, allocations: 81.02 kB / 1.022 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/1.137, allocations: 8 kB / 1.022 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/1.137, allocations: 11.98 kB / 1.022 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.162e-05/1.137, allocations: 12.16 kB / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/1.137, allocations: 7.125 kB / 1.022 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.422e-05/1.137, allocations: 103.5 kB / 1.022 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/1.137, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003408/1.137, allocations: 62.86 kB / 1.023 GB, free: 13.58 MB / 0.6511 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 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003803/1.138, allocations: 165 kB / 1.023 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000159/1.138, allocations: 74.42 kB / 1.023 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/1.138, allocations: 0 / 1.023 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.893e-05/1.138, allocations: 37.36 kB / 1.023 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/1.138, allocations: 19.42 kB / 1.023 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003485/1.139, allocations: 108.8 kB / 1.023 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/1.139, allocations: 0.6964 MB / 1.024 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.253e-05/1.139, allocations: 16.66 kB / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/1.139, allocations: 15.42 kB / 1.024 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/1.139, allocations: 0 / 1.024 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of Templates: time 0.004524/1.144, allocations: 1.76 MB / 1.025 GB, free: 10.71 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:ill.amplitude,ill.freqHz,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.BArriv,lig.CArriv,lig.MArriv,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,occ.Twidth,occ.period,occ.startTime,occ.width,time