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.344/2.344, allocations: 390.3 MB / 402.8 MB, free: 6.699 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.001054/0.001054, allocations: 172.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 221.3 MB / 0.7915 GB, free: 5.395 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.0009103/0.0009102, allocations: 99.5 kB / 0.9318 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.287e-05/3.289e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2819, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9998/1.282, allocations: 152 MB / 1.367 GB, free: 2.055 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/1.282, allocations: 85.5 kB / 1.367 GB, free: 2.008 MB / 0.823 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.009177/1.291, allocations: 3.019 MB / 1.37 GB, free: 15.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.114e-06/1.291, allocations: 0 / 1.37 GB, free: 15.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.047e-06/1.291, allocations: 0 / 1.37 GB, free: 15.42 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.0005575/1.292, allocations: 413.8 kB / 1.371 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/1.292, allocations: 8.031 kB / 1.371 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.535e-05/1.292, allocations: 7.953 kB / 1.371 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/1.292, allocations: 174.9 kB / 1.371 GB, free: 14.74 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/1.292, allocations: 4 kB / 1.371 GB, free: 14.74 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/1.292, allocations: 7.125 kB / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/1.292, allocations: 58.03 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/1.292, allocations: 4 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/1.292, allocations: 3.938 kB / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/1.292, allocations: 4 kB / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.184e-05/1.293, allocations: 21.5 kB / 1.371 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/1.293, allocations: 321.3 kB / 1.371 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.993e-05/1.293, allocations: 40.64 kB / 1.371 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.887e-05/1.293, allocations: 30.91 kB / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/1.293, allocations: 0 / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001316/1.293, allocations: 69.95 kB / 1.371 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 3.887e-06/1.293, allocations: 0 / 1.371 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002458/1.294, allocations: 103.3 kB / 1.371 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/1.294, allocations: 55.41 kB / 1.371 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.049e-05/1.294, allocations: 117.1 kB / 1.372 GB, free: 13.91 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/1.294, allocations: 25.7 kB / 1.372 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.264e-05/1.294, allocations: 99.23 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/1.294, allocations: 19.86 kB / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/1.294, allocations: 3.25 kB / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001099/1.294, allocations: 314 kB / 1.372 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.771e-05/1.294, allocations: 18.62 kB / 1.372 GB, free: 13.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.658e-05/1.294, allocations: 44.94 kB / 1.372 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.835e-05/1.294, allocations: 37.17 kB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.294, allocations: 0 / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001566/1.294, allocations: 89.19 kB / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/1.294, allocations: 8 kB / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/1.295, allocations: 0 / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/1.295, allocations: 3.984 kB / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/1.295, allocations: 12 kB / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/1.295, allocations: 8.016 kB / 1.372 GB, free: 13.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.629e-05/1.295, allocations: 11.89 kB / 1.372 GB, free: 13.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/1.295, allocations: 10.56 kB / 1.372 GB, free: 13.24 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 0.0001255/1.295, allocations: 108 kB / 1.372 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/1.295, allocations: 7.938 kB / 1.372 GB, free: 13.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.685e-05/1.295, allocations: 7.562 kB / 1.372 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/1.295, allocations: 0 / 1.372 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.295, allocations: 0 / 1.372 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/1.295, allocations: 11.94 kB / 1.372 GB, free: 13.1 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/1.295, allocations: 361 kB / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/1.295, allocations: 0 / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.713e-05/1.295, allocations: 10.92 kB / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/1.295, allocations: 0 / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/1.296, allocations: 0 / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/1.296, allocations: 7.891 kB / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/1.296, allocations: 4 kB / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/1.296, allocations: 199.7 kB / 1.373 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/1.296, allocations: 81.11 kB / 1.373 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/1.296, allocations: 0 / 1.373 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.764e-05/1.296, allocations: 4 kB / 1.373 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.076e-05/1.296, allocations: 18.92 kB / 1.373 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/1.296, allocations: 0 / 1.373 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.373e-05/1.296, allocations: 95.2 kB / 1.373 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.296, allocations: 4 kB / 1.373 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003813/1.297, allocations: 53.81 kB / 1.373 GB, free: 12.25 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.0004404/1.297, allocations: 167.9 kB / 1.373 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001664/1.297, allocations: 57.17 kB / 1.373 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.297, allocations: 0 / 1.373 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.521e-05/1.297, allocations: 34.94 kB / 1.373 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000198/1.297, allocations: 8.453 kB / 1.373 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002927/1.298, allocations: 100 kB / 1.374 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/1.298, allocations: 0.6887 MB / 1.374 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.135e-05/1.298, allocations: 8.281 kB / 1.374 GB, free: 11.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/1.298, allocations: 15.42 kB / 1.374 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.298, allocations: 4 kB / 1.374 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of Templates: time 0.004648/1.303, allocations: 1.532 MB / 1.376 GB, free: 9.652 MB / 0.8386 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