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.588/1.588, allocations: 249.3 MB / 261.9 MB, free: 5.969 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.001417/0.001417, allocations: 184.5 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 205.2 MB / 0.572 GB, free: 10.71 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.0007721/0.0007719, allocations: 86.52 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.835e-05/2.837e-05, allocations: 12 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1917, allocations: 106.3 MB / 0.8918 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7934/0.9852, allocations: 133.8 MB / 1.022 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.9855, allocations: 83.14 kB / 1.023 GB, free: 0.8555 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.01031/0.9959, allocations: 3.15 MB / 1.026 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.284e-06/0.9959, allocations: 0 / 1.026 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.108e-05/0.9959, allocations: 0 / 1.026 GB, free: 14.16 MB / 0.6511 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.0006877/0.9966, allocations: 464.7 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.9967, allocations: 8.031 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.31e-05/0.9967, allocations: 11.91 kB / 1.026 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.9969, allocations: 179 kB / 1.026 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.86e-05/0.997, allocations: 33.33 kB / 1.026 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.9971, allocations: 4 kB / 1.026 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.9972, allocations: 67.97 kB / 1.026 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.9972, allocations: 0 / 1.026 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.9973, allocations: 7.438 kB / 1.026 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.9973, allocations: 0 / 1.026 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.532e-05/0.9974, allocations: 37.67 kB / 1.026 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006687/0.9981, allocations: 337.4 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.9982, allocations: 59.62 kB / 1.027 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.966e-05/0.9983, allocations: 35.11 kB / 1.027 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.9983, allocations: 0 / 1.027 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.9985, allocations: 90.27 kB / 1.027 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.9985, allocations: 0 / 1.027 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.000297/0.9988, allocations: 113.7 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.9989, allocations: 51.41 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.999, allocations: 125.5 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.9991, allocations: 36.95 kB / 1.027 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.9991, allocations: 94.2 kB / 1.027 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.9992, allocations: 15.19 kB / 1.027 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.9992, allocations: 3.312 kB / 1.027 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.9993, allocations: 322 kB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.835e-05/0.9994, allocations: 22.38 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.018e-05/0.9995, allocations: 59.89 kB / 1.028 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.22e-05/0.9995, allocations: 34.97 kB / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.9995, allocations: 0 / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001848/0.9997, allocations: 122.3 kB / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.9998, allocations: 8 kB / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.9998, allocations: 4.125 kB / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.9998, allocations: 4 kB / 1.028 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.9999, allocations: 27.55 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.9999, allocations: 3.953 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/1, allocations: 19.92 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/1, allocations: 4 kB / 1.028 GB, free: 11.73 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 9.873e-05/1, allocations: 119.9 kB / 1.028 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/1, allocations: 11.89 kB / 1.028 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.103e-05/1, allocations: 8.312 kB / 1.028 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/1, allocations: 4.094 kB / 1.028 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/1, allocations: 3.938 kB / 1.028 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/1, allocations: 3.953 kB / 1.028 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005099/1.001, allocations: 403.5 kB / 1.028 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/1.001, allocations: 8 kB / 1.028 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.53e-05/1.001, allocations: 7.984 kB / 1.028 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/1.001, allocations: 4 kB / 1.028 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/1.001, allocations: 7.703 kB / 1.028 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/1.001, allocations: 0 / 1.028 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.001, allocations: 0 / 1.028 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/1.001, allocations: 205.7 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.337e-05/1.001, allocations: 89 kB / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/1.001, allocations: 7 kB / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/1.001, allocations: 15.94 kB / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/1.001, allocations: 14.48 kB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/1.002, allocations: 0 / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.977e-05/1.002, allocations: 106.4 kB / 1.029 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/1.002, allocations: 0 / 1.029 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000296/1.002, allocations: 66.7 kB / 1.029 GB, free: 10.65 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.0003903/1.002, allocations: 175.2 kB / 1.029 GB, free: 10.49 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001747/1.002, allocations: 75.3 kB / 1.029 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/1.003, allocations: 0 / 1.029 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.88e-05/1.003, allocations: 34.81 kB / 1.029 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/1.003, allocations: 18.64 kB / 1.029 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003763/1.003, allocations: 114.5 kB / 1.029 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/1.004, allocations: 0.7043 MB / 1.03 GB, free: 9.555 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.07e-05/1.004, allocations: 12.66 kB / 1.03 GB, free: 9.543 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/1.004, allocations: 11.44 kB / 1.03 GB, free: 9.531 MB / 0.6511 GB Notification: Performance of SimCode: time 3.7e-07/1.004, allocations: 0 / 1.03 GB, free: 9.531 MB / 0.6511 GB Notification: Performance of Templates: time 0.004773/1.008, allocations: 1.808 MB / 1.032 GB, free: 7.738 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