Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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.Herkel2008WindowsCompletelyOpen,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.Herkel2008WindowsCompletelyOpen") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen,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.Herkel2008WindowsCompletelyOpen") [: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.969/1.969, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.001078/0.001078, allocations: 185.2 kB / 490.8 MB, free: 1.938 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.263/1.263, allocations: 221.3 MB / 0.7863 GB, free: 13.66 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.0008904/0.0008904, allocations: 102.6 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.332e-06/6.362e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2435, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6477/0.8913, allocations: 151.2 MB / 1.359 GB, free: 17.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.8916, allocations: 79.28 kB / 1.359 GB, free: 17.38 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.008681/0.9003, allocations: 2.697 MB / 1.362 GB, free: 17.24 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.9003, allocations: 1.375 kB / 1.362 GB, free: 17.24 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.0004433/0.9007, allocations: 405.4 kB / 1.362 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.9008, allocations: 9 kB / 1.362 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.9008, allocations: 7.594 kB / 1.362 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.794e-05/0.9009, allocations: 177.9 kB / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.901, allocations: 5.781 kB / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.901, allocations: 4.844 kB / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.484e-05/0.9011, allocations: 20.47 kB / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.905e-05/0.9012, allocations: 58.05 kB / 1.363 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.9012, allocations: 2.375 kB / 1.363 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.9012, allocations: 1 kB / 1.363 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.9012, allocations: 1.031 kB / 1.363 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004062/0.9017, allocations: 281 kB / 1.363 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.182e-05/0.9018, allocations: 44.03 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.79e-05/0.9018, allocations: 24.67 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.9018, allocations: 1.031 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.55e-05/0.9019, allocations: 68.44 kB / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.9019, allocations: 0 / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002244/0.9022, allocations: 75.33 kB / 1.363 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.9022, allocations: 61.73 kB / 1.363 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.719e-05/0.9023, allocations: 113.9 kB / 1.363 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.9023, allocations: 27.62 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.46e-05/0.9024, allocations: 86.7 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.9024, allocations: 18.31 kB / 1.363 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-06/0.9024, allocations: 5.156 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.9025, allocations: 316.6 kB / 1.364 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.188e-05/0.9026, allocations: 19.33 kB / 1.364 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-05/0.9026, allocations: 35.56 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.567e-05/0.9027, allocations: 24.17 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.9027, allocations: 0 / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001622/0.9029, allocations: 95.67 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.9029, allocations: 4.969 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.9029, allocations: 3.938 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.9029, allocations: 6.266 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.903, allocations: 12.25 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.903, allocations: 2.719 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.961e-05/0.9031, allocations: 8.781 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.9031, allocations: 5.062 kB / 1.364 GB, free: 31.54 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 6.99e-05/0.9032, allocations: 114.4 kB / 1.364 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.9032, allocations: 6.406 kB / 1.364 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.9033, allocations: 12.5 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.9033, allocations: 0 / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.9033, allocations: 1.281 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.9033, allocations: 0 / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.9036, allocations: 322.5 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.9036, allocations: 5.094 kB / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.776e-05/0.9036, allocations: 6.531 kB / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.9036, allocations: 0.9688 kB / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.9037, allocations: 2.328 kB / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.9037, allocations: 1.344 kB / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.9037, allocations: 0 / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001775/0.9039, allocations: 177.1 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.218e-05/0.9039, allocations: 87.67 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.9039, allocations: 6.891 kB / 1.365 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.643e-05/0.904, allocations: 5.203 kB / 1.365 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.686e-05/0.9041, allocations: 7.234 kB / 1.365 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.9041, allocations: 3.453 kB / 1.365 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.643e-05/0.9041, allocations: 91.8 kB / 1.365 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003098/0.9044, allocations: 55.89 kB / 1.365 GB, free: 30.81 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.0003601/0.9048, allocations: 171.3 kB / 1.365 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001567/0.905, allocations: 54.7 kB / 1.365 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.905, allocations: 0 / 1.365 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.542e-05/0.905, allocations: 28.47 kB / 1.365 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.9052, allocations: 8.781 kB / 1.365 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002865/0.9055, allocations: 100.4 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.9058, allocations: 0.7013 MB / 1.366 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/0.9058, allocations: 0 / 1.366 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of Templates: time 0.004047/0.9099, allocations: 1.635 MB / 1.367 GB, free: 29.76 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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