Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.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.Residential.Windows.Validation.Nicol2001WindowsEU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU") [: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 2.032/2.032, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.001163/0.001163, allocations: 181.2 kB / 490.8 MB, free: 1.922 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.393/1.393, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0008991/0.0008992, allocations: 91.12 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.212e-05/1.232e-05, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2756, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6652/0.9408, allocations: 151.2 MB / 1.359 GB, free: 16.78 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.9411, allocations: 79.91 kB / 1.359 GB, free: 16.78 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: time 0.008404/0.9495, allocations: 2.701 MB / 1.362 GB, free: 16.63 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.9495, allocations: 0.8438 kB / 1.362 GB, free: 16.63 MB / 0.823 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.0004203/0.95, allocations: 411.6 kB / 1.362 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.95, allocations: 10.39 kB / 1.362 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.69e-05/0.95, allocations: 7.844 kB / 1.362 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.928e-05/0.9501, allocations: 169.1 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.9502, allocations: 14.05 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.9502, allocations: 3.844 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.346e-05/0.9503, allocations: 20.97 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.078e-05/0.9504, allocations: 56.98 kB / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.9504, allocations: 0 / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.9504, allocations: 2.828 kB / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.9504, allocations: 1.125 kB / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003748/0.9508, allocations: 279.8 kB / 1.363 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.378e-05/0.9509, allocations: 36.86 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.002e-05/0.9509, allocations: 24.3 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.9509, allocations: 5.125 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.545e-05/0.951, allocations: 71.11 kB / 1.363 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.951, allocations: 0 / 1.363 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001864/0.9512, allocations: 80.05 kB / 1.363 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.831e-05/0.9512, allocations: 54.02 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.068e-05/0.9513, allocations: 113.1 kB / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.9513, allocations: 26.67 kB / 1.363 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.984e-05/0.9514, allocations: 93.28 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.9514, allocations: 16.67 kB / 1.363 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.9514, allocations: 3.938 kB / 1.363 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.9516, allocations: 319.3 kB / 1.364 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.9516, allocations: 19.72 kB / 1.364 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.39e-05/0.9517, allocations: 36.88 kB / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.975e-05/0.9517, allocations: 27.98 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.9518, allocations: 1.094 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001511/0.9519, allocations: 87 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.9519, allocations: 8.5 kB / 1.364 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.9519, allocations: 1.094 kB / 1.364 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.9519, allocations: 6.219 kB / 1.364 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.675e-05/0.952, allocations: 13.25 kB / 1.364 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.9521, allocations: 1.25 kB / 1.364 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.319e-05/0.9521, allocations: 14.06 kB / 1.364 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.9522, allocations: 3.719 kB / 1.364 GB, free: 30.93 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.097e-05/0.9522, allocations: 106 kB / 1.364 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.567e-05/0.9523, allocations: 11.8 kB / 1.364 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.9523, allocations: 7.75 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.9523, allocations: 1.094 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.9523, allocations: 0.75 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.9523, allocations: 0 / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.9526, allocations: 330.3 kB / 1.364 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.9526, allocations: 1.188 kB / 1.364 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.604e-05/0.9527, allocations: 5.453 kB / 1.364 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.9527, allocations: 5.188 kB / 1.364 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.9527, allocations: 2.875 kB / 1.364 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.9527, allocations: 0 / 1.364 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.9527, allocations: 0 / 1.364 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001615/0.9529, allocations: 185.6 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.92e-05/0.9529, allocations: 84.61 kB / 1.365 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.9529, allocations: 1.062 kB / 1.365 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.652e-05/0.953, allocations: 6.219 kB / 1.365 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.358e-05/0.9531, allocations: 4.203 kB / 1.365 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.9531, allocations: 8.578 kB / 1.365 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.583e-05/0.9531, allocations: 88.39 kB / 1.365 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002956/0.9534, allocations: 55.28 kB / 1.365 GB, free: 30.2 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.0002883/0.9537, allocations: 166.5 kB / 1.365 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001269/0.9539, allocations: 55.45 kB / 1.365 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.9539, allocations: 0 / 1.365 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.945e-05/0.9539, allocations: 31.98 kB / 1.365 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001669/0.9541, allocations: 7.641 kB / 1.365 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002631/0.9544, allocations: 103.2 kB / 1.365 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.9546, allocations: 0.7013 MB / 1.366 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/0.9546, allocations: 0 / 1.366 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of Templates: time 0.003833/0.9585, allocations: 1.638 MB / 1.367 GB, free: 29.14 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.sim & ./Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsEU.csv","../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.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