Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001327/0.001327, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001384/0.001384, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.491/1.491, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.741/2.741, allocations: 437.1 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.89 kB / 1.019 GB, free: 9.484 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9399/0.9419, allocations: 151.6 MB / 1.167 GB, free: 3.91 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002888/0.9448, allocations: 1.48 MB / 1.169 GB, free: 2.422 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001586/0.9464, allocations: 0.7284 MB / 1.169 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.821e-05/0.9465, allocations: 0 / 1.169 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.628e-05/0.9465, allocations: 7.922 kB / 1.169 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.695e-05/0.9466, allocations: 11.86 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.9472, allocations: 127.6 kB / 1.17 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.9474, allocations: 75.72 kB / 1.17 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.39e-05/0.9475, allocations: 15.98 kB / 1.17 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.005e-05/0.9476, allocations: 35.91 kB / 1.17 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.192e-05/0.9476, allocations: 39.83 kB / 1.17 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.9477, allocations: 4 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.9479, allocations: 99.84 kB / 1.17 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.057e-05/0.9479, allocations: 19.97 kB / 1.17 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.084e-05/0.948, allocations: 35.8 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.9482, allocations: 136.1 kB / 1.17 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.9482, allocations: 4 kB / 1.17 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9483, allocations: 4 kB / 1.17 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.9483, allocations: 0 / 1.17 GB, free: 1.086 MB / 0.8887 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.0007031/0.949, allocations: 416.7 kB / 1.17 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.949, allocations: 12.03 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.098e-05/0.9491, allocations: 12.88 kB / 1.17 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.9492, allocations: 172.3 kB / 1.171 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.9493, allocations: 4.375 kB / 1.171 GB, free: 400 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.9493, allocations: 8.375 kB / 1.171 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.9495, allocations: 69.97 kB / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.9495, allocations: 0 / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.9495, allocations: 0 / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.9495, allocations: 0 / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.9497, allocations: 43.95 kB / 1.171 GB, free: 272 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006628/0.9503, allocations: 320.7 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.9505, allocations: 50.55 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.957e-05/0.9506, allocations: 32.97 kB / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.9506, allocations: 0 / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.9508, allocations: 83.38 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 3.366e-06/0.9508, allocations: 0 / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004257/0.9513, allocations: 149.5 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.9513, allocations: 55.41 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.9514, allocations: 121.8 kB / 1.172 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.9515, allocations: 25.7 kB / 1.172 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.515e-05/0.9515, allocations: 96.09 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.9516, allocations: 11.89 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.322e-05/0.9516, allocations: 33.66 kB / 1.172 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.9518, allocations: 326.8 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.404e-05/0.9519, allocations: 23.98 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.952, allocations: 50.55 kB / 1.172 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.9522, allocations: 78.48 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.9522, allocations: 0 / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002519/0.9524, allocations: 105.6 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.9525, allocations: 6.5 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.9525, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.9525, allocations: 11.97 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.791e-05/0.9526, allocations: 15.94 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.9526, allocations: 4.062 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.721e-05/0.9527, allocations: 11.92 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.9527, allocations: 4 kB / 1.172 GB, free: 14.53 MB / 0.9044 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.0001063/0.9528, allocations: 119.5 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.9529, allocations: 7.953 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.926e-05/0.9529, allocations: 8.375 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.9529, allocations: 3.984 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.9529, allocations: 4 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.9529, allocations: 7.938 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.9534, allocations: 386.4 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.9535, allocations: 0 / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.954e-05/0.9535, allocations: 4 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.9535, allocations: 0 / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.9535, allocations: 0 / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.9535, allocations: 0 / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.9535, allocations: 7.922 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003154/0.9539, allocations: 215.4 kB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.9539, allocations: 81.06 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.954, allocations: 4 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.853e-05/0.954, allocations: 3.984 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.274e-05/0.9541, allocations: 7.938 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.9541, allocations: 7.984 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.184e-05/0.9542, allocations: 87.28 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9542, allocations: 4 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003165/0.9545, allocations: 39.92 kB / 1.173 GB, free: 13.45 MB / 0.9044 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.0004128/0.955, allocations: 165.9 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002727/0.9552, allocations: 83.94 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.9552, allocations: 0 / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.9554, allocations: 31.98 kB / 1.174 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.9556, allocations: 5.125 kB / 1.174 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004831/0.9561, allocations: 200.7 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.9565, allocations: 0.6885 MB / 1.174 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.057e-05/0.9566, allocations: 11.98 kB / 1.174 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.096e-05/0.9566, allocations: 11.44 kB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.9566, allocations: 0 / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of Templates: time 0.004763/0.9614, allocations: 1.454 MB / 1.176 GB, free: 10.77 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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