Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,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.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_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") [: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 9.1.1-maint.9.1.x/package.mo): time 1.908/1.908, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.000993/0.0009929, allocations: 185.2 kB / 487 MB, free: 5.332 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.237/1.237, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009482/0.0009482, allocations: 93.81 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.845e-06/7.865e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2122, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6058/0.818, allocations: 150.4 MB / 1.352 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.8183, allocations: 77.97 kB / 1.352 GB, free: 15.8 MB / 0.8073 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: time 0.008795/0.8271, allocations: 2.693 MB / 1.355 GB, free: 15.66 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.8271, allocations: 5.562 kB / 1.355 GB, free: 15.66 MB / 0.8073 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.0004215/0.8276, allocations: 404.2 kB / 1.355 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.8276, allocations: 11 kB / 1.355 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.8277, allocations: 7.281 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.459e-05/0.8277, allocations: 172.5 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.8278, allocations: 5.719 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.8278, allocations: 8.031 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.527e-05/0.8279, allocations: 20.2 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.828, allocations: 58.16 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.828, allocations: 0.9688 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.828, allocations: 4.453 kB / 1.355 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.8281, allocations: 5.344 kB / 1.355 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004074/0.8285, allocations: 282.7 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.62e-05/0.8286, allocations: 37.31 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.735e-05/0.8286, allocations: 23.78 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.8286, allocations: 3.906 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.634e-05/0.8287, allocations: 62.7 kB / 1.356 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.8287, allocations: 4 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002184/0.829, allocations: 83.92 kB / 1.356 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/0.829, allocations: 56.81 kB / 1.356 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.262e-05/0.8291, allocations: 111.9 kB / 1.356 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.8291, allocations: 27.25 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.085e-05/0.8291, allocations: 87.56 kB / 1.356 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.8291, allocations: 15.33 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.8292, allocations: 1 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.58e-05/0.8292, allocations: 317.1 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.8292, allocations: 22.14 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.668e-05/0.8293, allocations: 37.69 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.261e-05/0.8294, allocations: 20.34 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.8294, allocations: 1.031 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001624/0.8295, allocations: 94.08 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.8296, allocations: 6.094 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.8296, allocations: 4.062 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.8296, allocations: 2.625 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.8297, allocations: 11.47 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.8297, allocations: 2.703 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/0.8298, allocations: 9.891 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.8298, allocations: 11.62 kB / 1.357 GB, free: 13.96 MB / 0.8073 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 5.625e-05/0.8299, allocations: 114.7 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.621e-05/0.8299, allocations: 11.62 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.8299, allocations: 7.125 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.8299, allocations: 0.7812 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.8299, allocations: 1.328 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.8299, allocations: 1.516 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.8302, allocations: 322.6 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.8302, allocations: 1.891 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.666e-05/0.8303, allocations: 9.188 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.8303, allocations: 1.031 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.8303, allocations: 5.938 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.8303, allocations: 6.281 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.8303, allocations: 0 / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001525/0.8305, allocations: 175.8 kB / 1.357 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.208e-05/0.8305, allocations: 91.52 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.8305, allocations: 1.188 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.747e-05/0.8306, allocations: 10.34 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.566e-05/0.8307, allocations: 3.969 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.8307, allocations: 4.062 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.12e-05/0.8307, allocations: 95.33 kB / 1.358 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003137/0.831, allocations: 50.62 kB / 1.358 GB, free: 13.23 MB / 0.8073 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.0003586/0.8314, allocations: 168.3 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001374/0.8316, allocations: 46.92 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.8316, allocations: 4.938 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.763e-05/0.8316, allocations: 26.38 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001744/0.8318, allocations: 4.422 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002831/0.8321, allocations: 100.6 kB / 1.358 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.8323, allocations: 0.7096 MB / 1.359 GB, free: 28.33 MB / 0.823 GB Notification: Performance of SimCode: time 2.61e-07/0.8323, allocations: 0 / 1.359 GB, free: 28.33 MB / 0.823 GB Notification: Performance of Templates: time 0.004136/0.8365, allocations: 1.637 MB / 1.36 GB, free: 28.17 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","../files/Buildings_9_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