Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.537/2.537, allocations: 387.1 MB / 399.7 MB, free: 9.496 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.001027/0.001027, allocations: 179.5 kB / 492.3 MB, free: 0.6445 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.633/1.633, allocations: 221.3 MB / 0.7871 GB, free: 12.98 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.0009192/0.0009192, allocations: 89.03 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.272e-05/4.274e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3695, allocations: 142.3 MB / 1.212 GB, free: 38.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9423/1.312, allocations: 151.2 MB / 1.36 GB, free: 19.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/1.312, allocations: 82.27 kB / 1.36 GB, free: 19.09 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.009742/1.322, allocations: 3.01 MB / 1.363 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.125e-06/1.322, allocations: 0 / 1.363 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.252e-05/1.322, allocations: 0 / 1.363 GB, free: 34.64 MB / 0.8386 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.0006405/1.323, allocations: 418.8 kB / 1.363 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/1.323, allocations: 7.812 kB / 1.363 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/1.323, allocations: 7.812 kB / 1.363 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/1.323, allocations: 172.4 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/1.323, allocations: 7.656 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.27e-05/1.323, allocations: 5.625 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/1.323, allocations: 58.64 kB / 1.364 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/1.323, allocations: 3.938 kB / 1.364 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/1.323, allocations: 0 / 1.364 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/1.323, allocations: 3.938 kB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.961e-05/1.323, allocations: 26.3 kB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006699/1.324, allocations: 318.2 kB / 1.364 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.41e-05/1.324, allocations: 41.69 kB / 1.364 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.329e-05/1.324, allocations: 28.33 kB / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/1.324, allocations: 0 / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001312/1.324, allocations: 72.61 kB / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/1.324, allocations: 0 / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002571/1.325, allocations: 104.3 kB / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/1.325, allocations: 55.36 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.639e-05/1.325, allocations: 114.5 kB / 1.364 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/1.325, allocations: 29.14 kB / 1.364 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/1.325, allocations: 98.08 kB / 1.365 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/1.325, allocations: 11.75 kB / 1.365 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-06/1.325, allocations: 4 kB / 1.365 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.04e-05/1.325, allocations: 325.5 kB / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.517e-05/1.325, allocations: 18.28 kB / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.713e-05/1.325, allocations: 42.84 kB / 1.365 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.636e-05/1.325, allocations: 20.23 kB / 1.365 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.325, allocations: 0 / 1.365 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001614/1.325, allocations: 107.8 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/1.325, allocations: 7.781 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/1.325, allocations: 0 / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/1.325, allocations: 3.688 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.826e-05/1.326, allocations: 11.91 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/1.326, allocations: 3.812 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.316e-05/1.326, allocations: 12.14 kB / 1.365 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/1.326, allocations: 9.406 kB / 1.365 GB, free: 32.89 MB / 0.8386 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.581e-05/1.326, allocations: 112.8 kB / 1.365 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/1.326, allocations: 5.172 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.385e-05/1.326, allocations: 12.06 kB / 1.365 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/1.326, allocations: 0 / 1.365 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/1.326, allocations: 1.406 kB / 1.365 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.326, allocations: 4 kB / 1.365 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/1.326, allocations: 366.7 kB / 1.366 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.326, allocations: 0 / 1.366 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.238e-05/1.326, allocations: 13.27 kB / 1.366 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/1.326, allocations: 0 / 1.366 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/1.326, allocations: 4.938 kB / 1.366 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/1.326, allocations: 0 / 1.366 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.326, allocations: 3.953 kB / 1.366 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/1.327, allocations: 195.9 kB / 1.366 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/1.327, allocations: 80.92 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/1.327, allocations: 5.453 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.401e-05/1.327, allocations: 5.312 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/1.327, allocations: 13.39 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/1.327, allocations: 5.594 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.62e-05/1.327, allocations: 92.89 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.327, allocations: 0 / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003225/1.327, allocations: 56.45 kB / 1.366 GB, free: 32.13 MB / 0.8386 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.0003609/1.327, allocations: 166.3 kB / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001657/1.328, allocations: 57.27 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/1.328, allocations: 0 / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.289e-05/1.328, allocations: 30 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/1.328, allocations: 9.438 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/1.328, allocations: 106.1 kB / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/1.329, allocations: 0.6905 MB / 1.367 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.01e-05/1.329, allocations: 13.53 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.716e-05/1.329, allocations: 11.25 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of SimCode: time 4.9e-07/1.329, allocations: 0 / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of Templates: time 0.004134/1.333, allocations: 1.54 MB / 1.369 GB, free: 31.09 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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