Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 99.86 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.0009885/0.0009885, allocations: 177.3 kB / 15.94 MB, free: 224 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.43/1.43, allocations: 223.2 MB / 239.9 MB, free: 5.473 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.496/2.496, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003889, allocations: 12 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8461/0.8465, allocations: 142.3 MB / 0.9535 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.001467/0.848, allocations: 1.174 MB / 0.9546 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009515/0.849, allocations: 0.6739 MB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.505e-05/0.849, allocations: 1.062 kB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.529e-05/0.8491, allocations: 3.938 kB / 0.9553 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.224e-05/0.8491, allocations: 14.28 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.8496, allocations: 94.94 kB / 0.9554 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.59e-05/0.8497, allocations: 39.08 kB / 0.9555 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.029e-05/0.8498, allocations: 20.73 kB / 0.9555 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.501e-05/0.8499, allocations: 30.38 kB / 0.9555 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.69e-05/0.8499, allocations: 39.05 kB / 0.9555 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.85, allocations: 3.094 kB / 0.9555 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.8501, allocations: 62.62 kB / 0.9556 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.8502, allocations: 14.58 kB / 0.9556 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.14e-05/0.8502, allocations: 34.98 kB / 0.9556 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.8504, allocations: 100.1 kB / 0.9557 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.8504, allocations: 0 / 0.9557 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.374e-06/0.8504, allocations: 4 kB / 0.9557 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.8504, allocations: 1.281 kB / 0.9557 GB, free: 6.398 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.0005481/0.851, allocations: 408.5 kB / 0.9561 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.851, allocations: 9.812 kB / 0.9561 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.851, allocations: 10.98 kB / 0.9562 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.875e-05/0.8511, allocations: 171 kB / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.8512, allocations: 6.938 kB / 0.9563 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.8512, allocations: 8.125 kB / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001763/0.8514, allocations: 69.31 kB / 0.9564 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.8514, allocations: 3.984 kB / 0.9564 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.8514, allocations: 4.938 kB / 0.9564 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.8514, allocations: 0.9688 kB / 0.9564 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.8516, allocations: 46.52 kB / 0.9565 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000537/0.8521, allocations: 329.6 kB / 0.9568 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.8522, allocations: 50.72 kB / 0.9568 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.8523, allocations: 5.047 kB / 0.9568 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.8524, allocations: 72.05 kB / 0.9569 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.8525, allocations: 0 / 0.9569 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003951/0.8529, allocations: 160.5 kB / 0.957 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.8529, allocations: 52.83 kB / 0.9571 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.15e-05/0.853, allocations: 116.8 kB / 0.9572 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.853, allocations: 35.03 kB / 0.9572 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.853, allocations: 91.03 kB / 0.9573 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.8531, allocations: 14.69 kB / 0.9573 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.633e-05/0.8531, allocations: 0 / 0.9573 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.599e-05/0.8531, allocations: 325.4 kB / 0.9577 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.658e-05/0.8532, allocations: 32.8 kB / 0.9577 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.458e-05/0.8533, allocations: 55.27 kB / 0.9577 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.71e-05/0.8534, allocations: 31.72 kB / 0.9578 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8534, allocations: 3.938 kB / 0.9578 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002154/0.8536, allocations: 118 kB / 0.9579 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.8537, allocations: 6.656 kB / 0.9579 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.8537, allocations: 1.438 kB / 0.9579 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.8537, allocations: 4.547 kB / 0.9579 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.089e-05/0.8538, allocations: 17.83 kB / 0.9579 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-06/0.8538, allocations: 0.7812 kB / 0.9579 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.506e-05/0.8539, allocations: 19.42 kB / 0.9579 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.8539, allocations: 3.938 kB / 0.9579 GB, free: 4.332 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 (hea.occ,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.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 6.273e-05/0.854, allocations: 113.6 kB / 0.958 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.854, allocations: 11.59 kB / 0.9581 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.378e-05/0.854, allocations: 12.22 kB / 0.9581 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.854, allocations: 7.953 kB / 0.9581 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.854, allocations: 0 / 0.9581 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.854, allocations: 3.984 kB / 0.9581 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003568/0.8544, allocations: 379.5 kB / 0.9584 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.8544, allocations: 3.984 kB / 0.9584 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.703e-05/0.8544, allocations: 4.594 kB / 0.9584 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.8545, allocations: 9.391 kB / 0.9585 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.8545, allocations: 0 / 0.9585 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.8545, allocations: 1.469 kB / 0.9585 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.8545, allocations: 3.938 kB / 0.9585 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.8547, allocations: 211.1 kB / 0.9587 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.314e-05/0.8548, allocations: 91.48 kB / 0.9588 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.8548, allocations: 5.078 kB / 0.9588 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-05/0.8549, allocations: 7.234 kB / 0.9588 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.8549, allocations: 7.047 kB / 0.9588 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.8549, allocations: 6.891 kB / 0.9588 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.13e-05/0.855, allocations: 100.5 kB / 0.9589 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.855, allocations: 0 / 0.9589 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002868/0.8553, allocations: 39.67 kB / 0.9589 GB, free: 3.414 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 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.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.0002724/0.8555, allocations: 158.6 kB / 0.9591 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.8558, allocations: 83.78 kB / 0.9591 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8558, allocations: 128 / 0.9591 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.941e-05/0.8559, allocations: 41.92 kB / 0.9592 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.856, allocations: 3.828 kB / 0.9592 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003282/0.8564, allocations: 207.4 kB / 0.9594 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.8565, allocations: 0.6891 MB / 0.9601 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.367e-05/0.8565, allocations: 8.297 kB / 0.9601 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.8565, allocations: 18.12 kB / 0.9601 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.8566, allocations: 0 / 0.9601 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of Templates: time 0.003505/0.8601, allocations: 1.339 MB / 0.9614 GB, free: 1.645 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.samplePeriod,hea.seed,hea.t0,occ.startTime,occ.startValue,time