Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 97.91 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.553/2.553, allocations: 390.3 MB / 0.6653 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.0004772, allocations: 11.98 kB / 0.8145 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.841/0.8415, allocations: 142.3 MB / 0.9535 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002049/0.8436, allocations: 1.186 MB / 0.9547 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0015/0.8452, allocations: 0.6753 MB / 0.9553 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.065e-05/0.8452, allocations: 0 / 0.9553 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.974e-05/0.8453, allocations: 9.328 kB / 0.9553 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.611e-05/0.8454, allocations: 9.422 kB / 0.9554 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006515/0.846, allocations: 94.56 kB / 0.9554 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001156/0.8462, allocations: 42.84 kB / 0.9555 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.8463, allocations: 16.8 kB / 0.9555 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.333e-05/0.8464, allocations: 33.12 kB / 0.9555 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.584e-05/0.8465, allocations: 35.11 kB / 0.9556 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.8465, allocations: 3.875 kB / 0.9556 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002342/0.8468, allocations: 70.48 kB / 0.9556 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.8468, allocations: 14.73 kB / 0.9556 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.289e-05/0.8469, allocations: 30.64 kB / 0.9557 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.8471, allocations: 103.9 kB / 0.9558 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.8471, allocations: 0 / 0.9558 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.775e-06/0.8471, allocations: 0 / 0.9558 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.241e-06/0.8471, allocations: 4.875 kB / 0.9558 GB, free: 6.359 MB / 0.7169 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.0007249/0.8478, allocations: 405.8 kB / 0.9562 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.557e-05/0.8479, allocations: 12.95 kB / 0.9562 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.848, allocations: 15.08 kB / 0.9562 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.8481, allocations: 162.4 kB / 0.9563 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.987e-05/0.8482, allocations: 7.594 kB / 0.9564 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.8482, allocations: 3.406 kB / 0.9564 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.8484, allocations: 70.03 kB / 0.9564 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.8484, allocations: 0 / 0.9564 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.8485, allocations: 8.938 kB / 0.9564 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.8485, allocations: 1.031 kB / 0.9564 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.8486, allocations: 46.02 kB / 0.9565 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007024/0.8493, allocations: 333.5 kB / 0.9568 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001443/0.8495, allocations: 51.06 kB / 0.9568 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.8495, allocations: 5.062 kB / 0.9569 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.8498, allocations: 75.94 kB / 0.9569 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.8498, allocations: 0 / 0.9569 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004996/0.8503, allocations: 165 kB / 0.9571 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.8504, allocations: 52.59 kB / 0.9571 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.8505, allocations: 121.1 kB / 0.9572 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.8505, allocations: 30.89 kB / 0.9573 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.8506, allocations: 86.45 kB / 0.9574 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.8506, allocations: 18.45 kB / 0.9574 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-06/0.8506, allocations: 1.562 kB / 0.9574 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.389e-05/0.8507, allocations: 320.3 kB / 0.9577 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.916e-05/0.8508, allocations: 32.77 kB / 0.9577 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.8509, allocations: 50.67 kB / 0.9578 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.838e-05/0.851, allocations: 38.86 kB / 0.9578 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.851, allocations: 7.531 kB / 0.9578 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002548/0.8513, allocations: 111.7 kB / 0.9579 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.8513, allocations: 5.5 kB / 0.9579 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.8513, allocations: 0 / 0.9579 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.8514, allocations: 5.328 kB / 0.9579 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.8515, allocations: 13.97 kB / 0.9579 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.8515, allocations: 9.297 kB / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.088e-05/0.8516, allocations: 9.656 kB / 0.958 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.8516, allocations: 2.094 kB / 0.958 GB, free: 4.297 MB / 0.7169 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 (win.occ,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Number of clocked 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.8517, allocations: 120.1 kB / 0.9581 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.8517, allocations: 7.125 kB / 0.9581 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.036e-05/0.8518, allocations: 13.55 kB / 0.9581 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.8518, allocations: 5.016 kB / 0.9581 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.577e-06/0.8518, allocations: 5.312 kB / 0.9581 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.8518, allocations: 0 / 0.9581 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000451/0.8523, allocations: 384.1 kB / 0.9585 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.8523, allocations: 0 / 0.9585 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.904e-05/0.8523, allocations: 5.688 kB / 0.9585 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.8523, allocations: 7.891 kB / 0.9585 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.8524, allocations: 9.828 kB / 0.9585 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.8524, allocations: 0 / 0.9585 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8524, allocations: 0 / 0.9585 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002497/0.8526, allocations: 211 kB / 0.9587 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.8527, allocations: 87.23 kB / 0.9588 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.8527, allocations: 9.094 kB / 0.9588 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.457e-05/0.8528, allocations: 7.25 kB / 0.9588 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.8528, allocations: 6.672 kB / 0.9588 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.8529, allocations: 3.156 kB / 0.9588 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.064e-05/0.8529, allocations: 96.33 kB / 0.9589 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8529, allocations: 0 / 0.9589 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003204/0.8532, allocations: 35.94 kB / 0.9589 GB, free: 3.387 MB / 0.7169 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,win.occ,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked 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.0003727/0.8536, allocations: 175.9 kB / 0.9591 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002252/0.8538, allocations: 78.88 kB / 0.9592 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.8539, allocations: 0 / 0.9592 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.586e-05/0.854, allocations: 42.48 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.8541, allocations: 2.562 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004265/0.8546, allocations: 196.6 kB / 0.9594 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001563/0.8547, allocations: 0.6944 MB / 0.9601 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.694e-05/0.8548, allocations: 2.938 kB / 0.9601 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.728e-05/0.8548, allocations: 15.5 kB / 0.9601 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8548, allocations: 0 / 0.9601 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of Templates: time 0.004457/0.8593, allocations: 1.338 MB / 0.9614 GB, free: 1.613 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0