Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.945/1.945, allocations: 390.4 MB / 397.7 MB, free: 1.887 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 175.1 kB / 490.8 MB, free: 7.496 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 221.3 MB / 0.7863 GB, free: 224 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008757/0.0008758, allocations: 96.66 kB / 0.9264 GB, free: 0.6133 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 6.162e-06/6.201e-06, allocations: 0 / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2537, allocations: 143 MB / 1.212 GB, free: 10.59 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7245/0.9782, allocations: 151.2 MB / 1.359 GB, free: 10.95 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.9785, allocations: 75.95 kB / 1.359 GB, free: 10.88 MB / 0.8311 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: time 0.008536/0.987, allocations: 2.695 MB / 1.362 GB, free: 8.195 MB / 0.8311 GB Notification: Performance of Transformations before backend: time 8.806e-06/0.987, allocations: 0 / 1.362 GB, free: 8.195 MB / 0.8311 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.0006121/0.9877, allocations: 415.8 kB / 1.362 GB, free: 7.738 MB / 0.8311 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.9877, allocations: 8.031 kB / 1.362 GB, free: 7.73 MB / 0.8311 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.144e-05/0.9878, allocations: 7.906 kB / 1.362 GB, free: 7.723 MB / 0.8311 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.9879, allocations: 167.1 kB / 1.363 GB, free: 7.52 MB / 0.8311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.988, allocations: 7.906 kB / 1.363 GB, free: 7.512 MB / 0.8311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.988, allocations: 7.984 kB / 1.363 GB, free: 7.504 MB / 0.8311 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.989e-05/0.9881, allocations: 20 kB / 1.363 GB, free: 7.484 MB / 0.8311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.9883, allocations: 61.61 kB / 1.363 GB, free: 7.418 MB / 0.8311 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.9883, allocations: 3.984 kB / 1.363 GB, free: 7.414 MB / 0.8311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.9883, allocations: 0 / 1.363 GB, free: 7.414 MB / 0.8311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.9883, allocations: 0.9375 kB / 1.363 GB, free: 7.414 MB / 0.8311 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005414/0.9889, allocations: 277.3 kB / 1.363 GB, free: 7.105 MB / 0.8311 GB Notification: Performance of preOpt comSubExp (simulation): time 9.265e-05/0.989, allocations: 42.56 kB / 1.363 GB, free: 7.055 MB / 0.8311 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.849e-05/0.989, allocations: 20.98 kB / 1.363 GB, free: 7.031 MB / 0.8311 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.989, allocations: 4 kB / 1.363 GB, free: 7.027 MB / 0.8311 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001148/0.9892, allocations: 78.45 kB / 1.363 GB, free: 6.941 MB / 0.8311 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.9892, allocations: 0 / 1.363 GB, free: 6.941 MB / 0.8311 GB Notification: Performance of matching and sorting (n=7): time 0.000257/0.9894, allocations: 77.66 kB / 1.363 GB, free: 6.859 MB / 0.8311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.9895, allocations: 51.41 kB / 1.363 GB, free: 6.797 MB / 0.8311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.9896, allocations: 112.9 kB / 1.363 GB, free: 6.68 MB / 0.8311 GB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.9896, allocations: 29.64 kB / 1.363 GB, free: 6.645 MB / 0.8311 GB Notification: Performance of collectInitialEqns (initialization): time 6.252e-05/0.9897, allocations: 92.25 kB / 1.363 GB, free: 6.547 MB / 0.8311 GB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.9897, allocations: 15.81 kB / 1.363 GB, free: 6.531 MB / 0.8311 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-06/0.9897, allocations: 0 / 1.363 GB, free: 6.531 MB / 0.8311 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9899, allocations: 322.8 kB / 1.364 GB, free: 6.207 MB / 0.8311 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.761e-05/0.9899, allocations: 16 kB / 1.364 GB, free: 6.191 MB / 0.8311 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.51e-05/0.99, allocations: 42.52 kB / 1.364 GB, free: 6.141 MB / 0.8311 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.943e-05/0.99, allocations: 19.98 kB / 1.364 GB, free: 6.121 MB / 0.8311 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.99, allocations: 3.938 kB / 1.364 GB, free: 6.117 MB / 0.8311 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000162/0.9902, allocations: 89.58 kB / 1.364 GB, free: 6.023 MB / 0.8311 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.9902, allocations: 11.03 kB / 1.364 GB, free: 6.016 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.9902, allocations: 0 / 1.364 GB, free: 6.016 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.9903, allocations: 4 kB / 1.364 GB, free: 6.012 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.9904, allocations: 15.92 kB / 1.364 GB, free: 5.996 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.9904, allocations: 0 / 1.364 GB, free: 5.996 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.405e-05/0.9905, allocations: 11.91 kB / 1.364 GB, free: 5.984 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.9905, allocations: 0 / 1.364 GB, free: 5.984 MB / 0.8311 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.0001038/0.9906, allocations: 109.9 kB / 1.364 GB, free: 5.871 MB / 0.8311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.9906, allocations: 7.906 kB / 1.364 GB, free: 5.863 MB / 0.8311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.9907, allocations: 12.36 kB / 1.364 GB, free: 5.852 MB / 0.8311 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.9907, allocations: 4 kB / 1.364 GB, free: 5.848 MB / 0.8311 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.9907, allocations: 0 / 1.364 GB, free: 5.848 MB / 0.8311 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.9907, allocations: 0 / 1.364 GB, free: 5.848 MB / 0.8311 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003464/0.9911, allocations: 319 kB / 1.364 GB, free: 5.492 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.9911, allocations: 0 / 1.364 GB, free: 5.492 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.93e-05/0.9911, allocations: 12 kB / 1.364 GB, free: 5.48 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.9911, allocations: 3.984 kB / 1.364 GB, free: 5.477 MB / 0.8311 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.9912, allocations: 0 / 1.364 GB, free: 5.477 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.9912, allocations: 0 / 1.364 GB, free: 5.477 MB / 0.8311 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.9912, allocations: 3.906 kB / 1.364 GB, free: 5.473 MB / 0.8311 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002022/0.9914, allocations: 183.4 kB / 1.365 GB, free: 5.277 MB / 0.8311 GB Notification: Performance of postOpt removeConstants (simulation): time 4.821e-05/0.9914, allocations: 81.02 kB / 1.365 GB, free: 5.18 MB / 0.8311 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.9915, allocations: 0 / 1.365 GB, free: 5.18 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.928e-05/0.9916, allocations: 15.98 kB / 1.365 GB, free: 5.164 MB / 0.8311 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-05/0.9916, allocations: 0 / 1.365 GB, free: 5.164 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.9916, allocations: 12.73 kB / 1.365 GB, free: 5.152 MB / 0.8311 GB Notification: Performance of sort global known variables: time 4.235e-05/0.9917, allocations: 88.38 kB / 1.365 GB, free: 5.066 MB / 0.8311 GB Notification: Performance of remove unused functions: time 0.0002787/0.992, allocations: 47.88 kB / 1.365 GB, free: 5.02 MB / 0.8311 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.0003573/0.9923, allocations: 187.5 kB / 1.365 GB, free: 4.84 MB / 0.8311 GB Notification: Performance of simCode: created initialization part: time 0.0001378/0.9925, allocations: 47.94 kB / 1.365 GB, free: 4.793 MB / 0.8311 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.9925, allocations: 0 / 1.365 GB, free: 4.793 MB / 0.8311 GB Notification: Performance of simCode: created simulation system equations: time 7.779e-05/0.9926, allocations: 27.98 kB / 1.365 GB, free: 4.766 MB / 0.8311 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.9928, allocations: 11.94 kB / 1.365 GB, free: 4.754 MB / 0.8311 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003046/0.9931, allocations: 99.88 kB / 1.365 GB, free: 4.633 MB / 0.8311 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.9934, allocations: 0.7036 MB / 1.366 GB, free: 3.902 MB / 0.8311 GB Notification: Performance of SimCode: time 2.3e-07/0.9934, allocations: 0 / 1.366 GB, free: 3.902 MB / 0.8311 GB Notification: Performance of Templates: time 0.003919/0.9973, allocations: 1.624 MB / 1.367 GB, free: 2.285 MB / 0.8311 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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