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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.01107/0.01107, allocations: 101.9 kB / 15.73 MB, free: 5.492 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.002365/0.002365, allocations: 187.2 kB / 16.67 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.384/2.384, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.91 kB / 0.9508 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.035/1.036, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002766/1.039, allocations: 1.467 MB / 1.089 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00128/1.04, allocations: 0.7319 MB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.84e-05/1.04, allocations: 4.875 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.392e-05/1.04, allocations: 5.484 kB / 1.09 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.299e-05/1.041, allocations: 14.53 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000569/1.041, allocations: 121 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001346/1.041, allocations: 69.67 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/1.041, allocations: 23.2 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.835e-05/1.041, allocations: 39.41 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.569e-05/1.042, allocations: 33.91 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/1.042, allocations: 5.938 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/1.042, allocations: 98.78 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.847e-05/1.042, allocations: 18.34 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.4e-05/1.042, allocations: 32.09 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002712/1.042, allocations: 138.1 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/1.042, allocations: 5.312 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.595e-06/1.042, allocations: 0.7969 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.691e-06/1.042, allocations: 0 / 1.091 GB, free: 3.734 MB / 0.8575 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.0005906/1.043, allocations: 424.6 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/1.043, allocations: 8.75 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/1.043, allocations: 9.844 kB / 1.091 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.583e-05/1.043, allocations: 169.3 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/1.043, allocations: 3.484 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/1.043, allocations: 15.47 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/1.043, allocations: 68.77 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/1.043, allocations: 0 / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/1.043, allocations: 1.859 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/1.043, allocations: 1.031 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/1.043, allocations: 35.83 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005687/1.044, allocations: 322.6 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/1.044, allocations: 50.12 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.414e-05/1.044, allocations: 31.5 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/1.044, allocations: 1.656 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001761/1.044, allocations: 80.23 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/1.044, allocations: 0.9375 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004189/1.045, allocations: 145.1 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/1.045, allocations: 62.58 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.019e-05/1.045, allocations: 118.5 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/1.045, allocations: 27.14 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/1.045, allocations: 92.81 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/1.045, allocations: 15.61 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/1.045, allocations: 28.97 kB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.259e-05/1.045, allocations: 324.2 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.71e-05/1.045, allocations: 30.83 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.244e-05/1.045, allocations: 46.69 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/1.046, allocations: 76.06 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/1.046, allocations: 4 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002296/1.046, allocations: 112.5 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/1.046, allocations: 6.406 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.046, allocations: 0.9375 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/1.046, allocations: 1 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/1.046, allocations: 15.92 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/1.046, allocations: 2.062 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.627e-05/1.046, allocations: 17.2 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/1.046, allocations: 3.438 kB / 1.093 GB, free: 1.742 MB / 0.8575 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,hea.curSeed,$PRE.hea.curSeed,hea.p,$PRE.hea.p,hea.on,$PRE.hea.on,hea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/1.046, allocations: 124 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/1.046, allocations: 7.188 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.612e-05/1.046, allocations: 10.89 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/1.046, allocations: 1.125 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/1.046, allocations: 4 kB / 1.093 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/1.046, allocations: 1.547 kB / 1.093 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/1.047, allocations: 377.8 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.047, allocations: 0.8125 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.981e-05/1.047, allocations: 5.312 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/1.047, allocations: 0.7812 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/1.047, allocations: 6.203 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.047, allocations: 1.5 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.047, allocations: 3.938 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/1.047, allocations: 207.2 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.205e-05/1.047, allocations: 80.09 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/1.047, allocations: 5.797 kB / 1.094 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/1.047, allocations: 8.547 kB / 1.094 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/1.047, allocations: 9.016 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/1.047, allocations: 3.125 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.093e-05/1.047, allocations: 97.45 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.047, allocations: 3.938 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003092/1.048, allocations: 44.95 kB / 1.094 GB, free: 0.8906 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003157/1.048, allocations: 165.4 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002454/1.048, allocations: 80.3 kB / 1.094 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.048, allocations: 0.75 kB / 1.094 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/1.048, allocations: 36.78 kB / 1.094 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/1.049, allocations: 6.516 kB / 1.094 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/1.049, allocations: 185 kB / 1.094 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/1.049, allocations: 0.6951 MB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.241e-05/1.049, allocations: 12.98 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/1.049, allocations: 11.06 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/1.049, allocations: 0.6562 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.005085/1.054, allocations: 1.448 MB / 1.096 GB, free: 15.73 MB / 0.8731 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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