Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.391/1.391, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 195.2 kB / 326.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.4 MB / 0.5775 GB, free: 20.55 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007842/0.0007842, allocations: 90.56 kB / 0.6821 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003456, allocations: 9 kB / 0.7962 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2343, allocations: 106.3 MB / 0.9001 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.4008, allocations: 133.7 MB / 1.031 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/0.4012, allocations: 79.95 kB / 1.031 GB, free: 10.49 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 - DAE generated: time 0.009016/0.4103, allocations: 2.998 MB / 1.034 GB, free: 7.484 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4103, allocations: 0 / 1.034 GB, free: 7.484 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.4103, allocations: 0 / 1.034 GB, free: 7.484 MB / 0.6823 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.0004852/0.4108, allocations: 428.7 kB / 1.034 GB, free: 7.012 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.4108, allocations: 8.031 kB / 1.034 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.4109, allocations: 7.906 kB / 1.034 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.411, allocations: 175 kB / 1.034 GB, free: 6.785 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.411, allocations: 4 kB / 1.034 GB, free: 6.781 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.4111, allocations: 8 kB / 1.034 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.4112, allocations: 69.64 kB / 1.034 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.034e-06/0.4113, allocations: 3.938 kB / 1.034 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.4113, allocations: 4 kB / 1.034 GB, free: 6.691 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4113, allocations: 4 kB / 1.034 GB, free: 6.688 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.4114, allocations: 39.97 kB / 1.034 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.412, allocations: 332.6 kB / 1.035 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.4121, allocations: 46.56 kB / 1.035 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.4122, allocations: 4.125 kB / 1.035 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001636/0.4123, allocations: 83.38 kB / 1.035 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.4123, allocations: 0 / 1.035 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0003782/0.4127, allocations: 153.5 kB / 1.035 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.4128, allocations: 59.36 kB / 1.035 GB, free: 5.895 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.891e-05/0.4129, allocations: 105 kB / 1.035 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.4129, allocations: 33.7 kB / 1.035 GB, free: 5.746 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.899e-05/0.4129, allocations: 88.33 kB / 1.035 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.413, allocations: 19.8 kB / 1.035 GB, free: 5.633 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.413, allocations: 0 / 1.035 GB, free: 5.633 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.76e-05/0.4131, allocations: 314.8 kB / 1.036 GB, free: 5.316 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.255e-05/0.4132, allocations: 39.91 kB / 1.036 GB, free: 5.277 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.694e-05/0.4132, allocations: 50.56 kB / 1.036 GB, free: 5.219 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.214e-05/0.4133, allocations: 35.92 kB / 1.036 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.4134, allocations: 0 / 1.036 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000231/0.4136, allocations: 125.5 kB / 1.036 GB, free: 5.055 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.4136, allocations: 4 kB / 1.036 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.4136, allocations: 0 / 1.036 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.4136, allocations: 4 kB / 1.036 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.398e-05/0.4137, allocations: 11.98 kB / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.4138, allocations: 400 / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.759e-05/0.4138, allocations: 15.89 kB / 1.036 GB, free: 5.02 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.4138, allocations: 0 / 1.036 GB, free: 5.02 MB / 0.6823 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 8.869e-05/0.4139, allocations: 129.9 kB / 1.036 GB, free: 4.883 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.391e-05/0.414, allocations: 7.844 kB / 1.036 GB, free: 4.875 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.489e-05/0.414, allocations: 8.375 kB / 1.036 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.414, allocations: 0 / 1.036 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.414, allocations: 0 / 1.036 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.414, allocations: 0 / 1.036 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004221/0.4144, allocations: 390.5 kB / 1.036 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4145, allocations: 0 / 1.036 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.4145, allocations: 7.984 kB / 1.036 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.4145, allocations: 0 / 1.036 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.4146, allocations: 0 / 1.036 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.4146, allocations: 3.938 kB / 1.036 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.4146, allocations: 3.953 kB / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002614/0.4148, allocations: 221.2 kB / 1.037 GB, free: 4.184 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.4149, allocations: 92.94 kB / 1.037 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.4149, allocations: 0 / 1.037 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.039e-05/0.415, allocations: 8 kB / 1.037 GB, free: 4.066 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.4151, allocations: 7.984 kB / 1.037 GB, free: 4.059 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.4151, allocations: 7.953 kB / 1.037 GB, free: 4.051 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.845e-05/0.4151, allocations: 99.27 kB / 1.037 GB, free: 3.953 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4151, allocations: 0 / 1.037 GB, free: 3.953 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002786/0.4154, allocations: 51.92 kB / 1.037 GB, free: 3.902 MB / 0.6823 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.0003203/0.4157, allocations: 170.7 kB / 1.037 GB, free: 3.742 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002225/0.416, allocations: 75.91 kB / 1.037 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.416, allocations: 4 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.262e-05/0.4161, allocations: 39.91 kB / 1.037 GB, free: 3.625 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.4162, allocations: 6.031 kB / 1.037 GB, free: 3.621 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003597/0.4166, allocations: 215.3 kB / 1.037 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.4168, allocations: 0.6943 MB / 1.038 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.556e-05/0.4169, allocations: 4.188 kB / 1.038 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.545e-05/0.4169, allocations: 19.42 kB / 1.038 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of SimCode: time 3.01e-07/0.4169, allocations: 0 / 1.038 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of Templates: time 0.003772/0.4207, allocations: 1.529 MB / 1.04 GB, free: 1.141 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","../files/Buildings_maint.7.0.x_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.freqHz,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