Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001269/0.001269, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001243/0.001243, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.521/2.521, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 64.17 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3491, allocations: 153 MB / 1.027 GB, free: 2 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.003346/0.3525, allocations: 1.482 MB / 1.028 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.354, allocations: 0.7359 MB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.504e-05/0.3541, allocations: 0 / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.741e-05/0.3542, allocations: 3.938 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.775e-05/0.3543, allocations: 15.86 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007153/0.355, allocations: 119.6 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.3552, allocations: 75.81 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3553, allocations: 12 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.3554, allocations: 39.84 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.249e-05/0.3555, allocations: 43.77 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.3555, allocations: 8 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002122/0.3557, allocations: 87.91 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.3558, allocations: 19.92 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.498e-05/0.3558, allocations: 43.84 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.3561, allocations: 143.5 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3561, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3561, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.3561, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 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.0007/0.3568, allocations: 417 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3569, allocations: 8.031 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.357, allocations: 8.844 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.3571, allocations: 184.2 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.3572, allocations: 4.375 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.3572, allocations: 4.375 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.3574, allocations: 73.91 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3574, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3574, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.3574, allocations: 4 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.3576, allocations: 35.97 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000659/0.3582, allocations: 316.8 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.3584, allocations: 50.5 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.326e-05/0.3585, allocations: 40.97 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.3585, allocations: 3.984 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.3587, allocations: 79.38 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.3587, allocations: 0 / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004081/0.3591, allocations: 141.5 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.3592, allocations: 55.34 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.3593, allocations: 117.8 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.3593, allocations: 25.7 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.894e-05/0.3594, allocations: 104 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.3594, allocations: 11.91 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.3595, allocations: 33.7 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3596, allocations: 322.8 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.352e-05/0.3597, allocations: 27.98 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.761e-05/0.3598, allocations: 42.56 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.36, allocations: 78.48 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.36, allocations: 3.938 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002421/0.3603, allocations: 109.5 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3603, allocations: 4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3603, allocations: 4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3603, allocations: 8 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.634e-05/0.3604, allocations: 15.98 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3604, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.818e-05/0.3605, allocations: 7.906 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.3605, allocations: 4 kB / 1.032 GB, free: 12.62 MB / 0.8106 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 0.0001008/0.3606, allocations: 125.7 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.866e-05/0.3606, allocations: 7.906 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.165e-05/0.3607, allocations: 12.38 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3607, allocations: 7.984 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3607, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3607, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000476/0.3612, allocations: 382.4 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-06/0.3612, allocations: 0 / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.252e-05/0.3613, allocations: 11.92 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3613, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.3613, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.3613, allocations: 8 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3613, allocations: 3.938 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.3616, allocations: 203.4 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.383e-05/0.3616, allocations: 85.11 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.3617, allocations: 0 / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-05/0.3618, allocations: 4 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.3618, allocations: 7.922 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.3618, allocations: 8 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.46e-05/0.3619, allocations: 91.92 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.424e-06/0.3619, allocations: 0 / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003049/0.3622, allocations: 47.83 kB / 1.033 GB, free: 11.54 MB / 0.8106 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.0003576/0.3626, allocations: 171.6 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002427/0.3628, allocations: 75.95 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3628, allocations: 0 / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.3629, allocations: 39.91 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.3632, allocations: 4 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000442/0.3637, allocations: 177 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.364, allocations: 0.6901 MB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.909e-05/0.364, allocations: 7.984 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.3641, allocations: 11.44 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of SimCode: time 4.21e-07/0.3641, allocations: 0 / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of Templates: time 0.004385/0.3685, allocations: 1.46 MB / 1.035 GB, free: 8.875 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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