Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.323/2.323, allocations: 393.5 MB / 408.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001335, allocations: 178.6 kB / 0.4902 GB, free: 2.289 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 223.1 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 92.33 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004184/0.0004183, allocations: 7.359 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3723, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1984/0.5707, allocations: 152.2 MB / 1.378 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.5711, allocations: 83.95 kB / 1.378 GB, free: 1.258 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.01012/0.5812, allocations: 3.196 MB / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.485e-06/0.5812, allocations: 0 / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.5813, allocations: 0 / 1.381 GB, free: 14.06 MB / 0.8855 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.0007795/0.582, allocations: 482.4 kB / 1.382 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.5821, allocations: 8.562 kB / 1.382 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.476e-05/0.5822, allocations: 15.86 kB / 1.382 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/0.5823, allocations: 182.1 kB / 1.382 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.528e-05/0.5824, allocations: 33.7 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.5825, allocations: 4 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.5827, allocations: 85.58 kB / 1.382 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.5827, allocations: 0 / 1.382 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.5827, allocations: 3.938 kB / 1.382 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.5827, allocations: 0 / 1.382 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.583, allocations: 55.95 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006793/0.5836, allocations: 336.8 kB / 1.382 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.5839, allocations: 66.58 kB / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.5839, allocations: 4 kB / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.5842, allocations: 99.34 kB / 1.382 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.883e-06/0.5842, allocations: 0 / 1.382 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.000506/0.5847, allocations: 177.4 kB / 1.383 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.5847, allocations: 59.39 kB / 1.383 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.5849, allocations: 125.1 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.5849, allocations: 33.64 kB / 1.383 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/0.585, allocations: 96.52 kB / 1.383 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.585, allocations: 19.7 kB / 1.383 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-06/0.585, allocations: 4 kB / 1.383 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5852, allocations: 318.8 kB / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.5853, allocations: 35.98 kB / 1.383 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.5854, allocations: 69.12 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.5856, allocations: 43.97 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.5856, allocations: 0 / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003107/0.5859, allocations: 133.4 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.5859, allocations: 4.125 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.5859, allocations: 8 kB / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.586, allocations: 0 / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.5861, allocations: 31.88 kB / 1.383 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.5861, allocations: 4 kB / 1.383 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.5862, allocations: 11.98 kB / 1.383 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.5863, allocations: 8 kB / 1.383 GB, free: 11.3 MB / 0.8855 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.5864, allocations: 134.7 kB / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.5864, allocations: 11.89 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.05e-05/0.5865, allocations: 12.72 kB / 1.384 GB, free: 11.13 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.5865, allocations: 0 / 1.384 GB, free: 11.13 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.5865, allocations: 3.953 kB / 1.384 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.5865, allocations: 0 / 1.384 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006506/0.5872, allocations: 434.3 kB / 1.384 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.5872, allocations: 0 / 1.384 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.721e-05/0.5873, allocations: 16.39 kB / 1.384 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.5873, allocations: 0 / 1.384 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.5873, allocations: 11.95 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.5873, allocations: 0 / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5873, allocations: 0 / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/0.5877, allocations: 235.3 kB / 1.384 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.5877, allocations: 89.02 kB / 1.384 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.5878, allocations: 0 / 1.384 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.5879, allocations: 15.94 kB / 1.384 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.081e-05/0.588, allocations: 15.98 kB / 1.384 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.588, allocations: 7.984 kB / 1.384 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.156e-05/0.5881, allocations: 95.27 kB / 1.385 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.6e-07/0.5881, allocations: 3.938 kB / 1.385 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003399/0.5884, allocations: 52 kB / 1.385 GB, free: 10.08 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0004056/0.5889, allocations: 171.8 kB / 1.385 GB, free: 9.918 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003208/0.5892, allocations: 83.89 kB / 1.385 GB, free: 9.836 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5892, allocations: 4.094 kB / 1.385 GB, free: 9.832 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.5894, allocations: 56.09 kB / 1.385 GB, free: 9.777 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.5896, allocations: 19.92 kB / 1.385 GB, free: 9.758 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005245/0.5901, allocations: 235.1 kB / 1.385 GB, free: 9.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.5904, allocations: 0.7004 MB / 1.386 GB, free: 8.773 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.69e-05/0.5905, allocations: 12.84 kB / 1.386 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.5905, allocations: 11.44 kB / 1.386 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of SimCode: time 3.41e-07/0.5905, allocations: 0 / 1.386 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of Templates: time 0.004862/0.5954, allocations: 1.793 MB / 1.388 GB, free: 6.969 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_latest_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.f,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