Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.468/1.468, allocations: 249.3 MB / 261.9 MB, free: 5.781 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.001058/0.001057, allocations: 180.9 kB / 321.3 MB, free: 14.65 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.538/1.538, allocations: 205.2 MB / 0.572 GB, free: 10.72 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.0009328/0.0009327, allocations: 87.58 kB / 0.6764 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.703e-05/2.705e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2023, allocations: 106.3 MB / 0.8918 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7002/0.9026, allocations: 133.6 MB / 1.022 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.9029, allocations: 78.08 kB / 1.022 GB, free: 1.094 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.00872/0.9117, allocations: 2.97 MB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.973e-06/0.9117, allocations: 0 / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.986e-06/0.9117, allocations: 4 kB / 1.025 GB, free: 14.54 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000482/0.9122, allocations: 418.6 kB / 1.026 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.9122, allocations: 12.03 kB / 1.026 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.96e-05/0.9123, allocations: 7.906 kB / 1.026 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.9124, allocations: 170.9 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.9125, allocations: 0 / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.9125, allocations: 11.3 kB / 1.026 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.9126, allocations: 59.86 kB / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.9126, allocations: 0.875 kB / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.9127, allocations: 0 / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.9127, allocations: 0 / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.199e-05/0.9127, allocations: 30.88 kB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005861/0.9133, allocations: 316.7 kB / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 7.617e-05/0.9134, allocations: 40.25 kB / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.618e-05/0.9135, allocations: 27.86 kB / 1.026 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.9135, allocations: 4 kB / 1.026 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001253/0.9136, allocations: 69.75 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.9136, allocations: 0 / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0002391/0.9139, allocations: 98.56 kB / 1.026 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.9139, allocations: 62.3 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/0.914, allocations: 107.9 kB / 1.027 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.9141, allocations: 29.7 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.9141, allocations: 89.78 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.9141, allocations: 30.22 kB / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.9142, allocations: 3.375 kB / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.9143, allocations: 317.7 kB / 1.027 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.41e-05/0.9143, allocations: 22.86 kB / 1.027 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.442e-05/0.9144, allocations: 44.17 kB / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.991e-05/0.9144, allocations: 30.98 kB / 1.027 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.9145, allocations: 0 / 1.027 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001513/0.9146, allocations: 94.41 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.9146, allocations: 7.984 kB / 1.027 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.9146, allocations: 4 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.9147, allocations: 4 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.085e-05/0.9148, allocations: 8 kB / 1.027 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.9148, allocations: 0 / 1.027 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.797e-05/0.9149, allocations: 23.91 kB / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.9149, allocations: 2.812 kB / 1.027 GB, free: 12.36 MB / 0.6511 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 () * 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 7.993e-05/0.915, allocations: 111.2 kB / 1.027 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.915, allocations: 4 kB / 1.027 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.915, allocations: 6.812 kB / 1.027 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.915, allocations: 7.984 kB / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.915, allocations: 0 / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.915, allocations: 0 / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/0.9154, allocations: 369.8 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9154, allocations: 0 / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.32e-05/0.9155, allocations: 11.19 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.9155, allocations: 4 kB / 1.028 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.9155, allocations: 0 / 1.028 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.9155, allocations: 0 / 1.028 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.9155, allocations: 3.953 kB / 1.028 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/0.9157, allocations: 200.2 kB / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-05/0.9158, allocations: 85 kB / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.9158, allocations: 4 kB / 1.028 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.388e-05/0.9159, allocations: 7.984 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.9159, allocations: 3.953 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.916, allocations: 7.312 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.639e-05/0.916, allocations: 94.39 kB / 1.028 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.916, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002761/0.9163, allocations: 51.75 kB / 1.028 GB, free: 11.38 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: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete 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.0003694/0.9167, allocations: 183 kB / 1.028 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001403/0.9168, allocations: 54.36 kB / 1.028 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.9168, allocations: 4 kB / 1.028 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.566e-05/0.9169, allocations: 26.8 kB / 1.029 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.9171, allocations: 10.17 kB / 1.029 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002779/0.9174, allocations: 100.7 kB / 1.029 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.9176, allocations: 0.6887 MB / 1.029 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.656e-05/0.9177, allocations: 4.188 kB / 1.029 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.9177, allocations: 11.42 kB / 1.029 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of SimCode: time 5.21e-07/0.9177, allocations: 4 kB / 1.029 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of Templates: time 0.003955/0.9217, allocations: 1.534 MB / 1.031 GB, free: 8.777 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","../files/Buildings_maint.7.0.x_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.freqHz,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