Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.274/2.274, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001047/0.001047, allocations: 179.9 kB / 0.4902 GB, free: 2.238 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.545/1.545, allocations: 223.2 MB / 0.7992 GB, free: 15.62 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.001232/0.001232, allocations: 98.5 kB / 0.9396 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.0003886, allocations: 9.422 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.332, allocations: 143 MB / 1.229 GB, free: 85.51 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2112/0.5433, allocations: 152 MB / 1.378 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.5437, allocations: 83.94 kB / 1.378 GB, free: 13.2 MB / 0.8855 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.009196/0.5529, allocations: 3.042 MB / 1.381 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.325e-06/0.5529, allocations: 0 / 1.381 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.5529, allocations: 4 kB / 1.381 GB, free: 10.15 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005615/0.5535, allocations: 420.7 kB / 1.381 GB, free: 9.684 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.5535, allocations: 8.562 kB / 1.381 GB, free: 9.676 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.5536, allocations: 15.86 kB / 1.381 GB, free: 9.66 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.5537, allocations: 167 kB / 1.381 GB, free: 9.457 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.5538, allocations: 8 kB / 1.381 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.5538, allocations: 0 / 1.381 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.554, allocations: 81.64 kB / 1.381 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.554, allocations: 3.938 kB / 1.381 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.554, allocations: 0 / 1.381 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.554, allocations: 0 / 1.381 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.5542, allocations: 51.89 kB / 1.381 GB, free: 9.309 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006325/0.5548, allocations: 320.7 kB / 1.382 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.5549, allocations: 46.56 kB / 1.382 GB, free: 8.891 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.555, allocations: 4 kB / 1.382 GB, free: 8.887 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.5551, allocations: 79.5 kB / 1.382 GB, free: 8.797 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.5551, allocations: 0 / 1.382 GB, free: 8.797 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004093/0.5556, allocations: 157.5 kB / 1.382 GB, free: 8.637 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.5556, allocations: 55.41 kB / 1.382 GB, free: 8.57 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.161e-05/0.5557, allocations: 113 kB / 1.382 GB, free: 8.453 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.5557, allocations: 29.7 kB / 1.382 GB, free: 8.418 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/0.5558, allocations: 92.23 kB / 1.382 GB, free: 8.32 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.5558, allocations: 15.75 kB / 1.382 GB, free: 8.305 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-06/0.5558, allocations: 4 kB / 1.382 GB, free: 8.301 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.556, allocations: 319 kB / 1.383 GB, free: 7.98 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.856e-05/0.5561, allocations: 31.98 kB / 1.383 GB, free: 7.949 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.5562, allocations: 50.55 kB / 1.383 GB, free: 7.891 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.5563, allocations: 39.94 kB / 1.383 GB, free: 7.852 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5563, allocations: 3.984 kB / 1.383 GB, free: 7.848 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002279/0.5565, allocations: 113.6 kB / 1.383 GB, free: 7.73 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.5565, allocations: 5.094 kB / 1.383 GB, free: 7.727 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.5566, allocations: 0 / 1.383 GB, free: 7.727 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.5566, allocations: 7.984 kB / 1.383 GB, free: 7.719 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.426e-05/0.5567, allocations: 8 kB / 1.383 GB, free: 7.711 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.5567, allocations: 3.953 kB / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.328e-05/0.5568, allocations: 27.89 kB / 1.383 GB, free: 7.68 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.5568, allocations: 0 / 1.383 GB, free: 7.68 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.395e-05/0.5569, allocations: 122.8 kB / 1.383 GB, free: 7.551 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.5569, allocations: 7.906 kB / 1.383 GB, free: 7.543 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.885e-05/0.557, allocations: 8.375 kB / 1.383 GB, free: 7.535 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.557, allocations: 3.984 kB / 1.383 GB, free: 7.531 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.557, allocations: 0 / 1.383 GB, free: 7.531 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.557, allocations: 3.953 kB / 1.383 GB, free: 7.527 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004593/0.5574, allocations: 378.9 kB / 1.383 GB, free: 7.102 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5575, allocations: 0 / 1.383 GB, free: 7.102 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.019e-05/0.5575, allocations: 8 kB / 1.383 GB, free: 7.094 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5575, allocations: 0 / 1.383 GB, free: 7.094 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.5575, allocations: 0 / 1.383 GB, free: 7.094 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.5575, allocations: 11.89 kB / 1.383 GB, free: 7.082 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5576, allocations: 7.984 kB / 1.383 GB, free: 7.074 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/0.5578, allocations: 211.5 kB / 1.384 GB, free: 6.852 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.5579, allocations: 81.11 kB / 1.384 GB, free: 6.754 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.5579, allocations: 0 / 1.384 GB, free: 6.754 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-05/0.558, allocations: 19.92 kB / 1.384 GB, free: 6.734 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.5581, allocations: 7.953 kB / 1.384 GB, free: 6.727 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.5581, allocations: 7.984 kB / 1.384 GB, free: 6.719 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.228e-05/0.5581, allocations: 95.92 kB / 1.384 GB, free: 6.625 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5581, allocations: 0 / 1.384 GB, free: 6.625 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002969/0.5584, allocations: 47.94 kB / 1.384 GB, free: 6.578 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: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0003718/0.5588, allocations: 178.3 kB / 1.384 GB, free: 6.406 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002246/0.5591, allocations: 71.89 kB / 1.384 GB, free: 6.336 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.5591, allocations: 4 kB / 1.384 GB, free: 6.332 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.623e-05/0.5592, allocations: 35.92 kB / 1.384 GB, free: 6.297 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.5593, allocations: 13.25 kB / 1.384 GB, free: 6.285 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003922/0.5597, allocations: 201.2 kB / 1.384 GB, free: 6.059 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.56, allocations: 0.6887 MB / 1.385 GB, free: 5.344 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.917e-05/0.5601, allocations: 8.188 kB / 1.385 GB, free: 5.336 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.992e-05/0.5601, allocations: 11.44 kB / 1.385 GB, free: 5.324 MB / 0.8855 GB Notification: Performance of SimCode: time 3.81e-07/0.5601, allocations: 0 / 1.385 GB, free: 5.324 MB / 0.8855 GB Notification: Performance of Templates: time 0.004416/0.5645, allocations: 1.521 MB / 1.387 GB, free: 3.805 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0