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.000915/0.0009152, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009808/0.0009809, allocations: 168.7 kB / 15.95 MB, free: 204 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.436/1.436, allocations: 223.2 MB / 240 MB, free: 5.441 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.68/2.68, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003674, allocations: 12 kB / 0.8153 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8085/0.8089, allocations: 142.4 MB / 0.9544 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00163/0.8105, allocations: 1.185 MB / 0.9556 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.8117, allocations: 0.675 MB / 0.9562 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.053e-05/0.8118, allocations: 0 / 0.9562 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.8118, allocations: 4.781 kB / 0.9563 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.408e-05/0.8119, allocations: 9.141 kB / 0.9563 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005085/0.8124, allocations: 108.6 kB / 0.9564 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.765e-05/0.8125, allocations: 66.22 kB / 0.9564 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.103e-05/0.8126, allocations: 8.797 kB / 0.9564 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.819e-05/0.8127, allocations: 33.92 kB / 0.9565 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.213e-05/0.8127, allocations: 35.81 kB / 0.9565 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.8128, allocations: 2.594 kB / 0.9565 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.813, allocations: 85.25 kB / 0.9566 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.813, allocations: 22.72 kB / 0.9566 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.148e-05/0.813, allocations: 35.58 kB / 0.9566 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.8132, allocations: 96.2 kB / 0.9567 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.8132, allocations: 0 / 0.9567 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.8132, allocations: 3.938 kB / 0.9567 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.429e-06/0.8132, allocations: 0 / 0.9567 GB, free: 5.973 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.0004679/0.8137, allocations: 410.2 kB / 0.9571 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.8137, allocations: 12.34 kB / 0.9571 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.8138, allocations: 15.36 kB / 0.9572 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.47e-05/0.8139, allocations: 163 kB / 0.9573 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.8139, allocations: 10.61 kB / 0.9573 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.598e-05/0.8139, allocations: 3.625 kB / 0.9573 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.8141, allocations: 67.78 kB / 0.9574 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.8141, allocations: 0 / 0.9574 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.8141, allocations: 7.984 kB / 0.9574 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.8142, allocations: 1.969 kB / 0.9574 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.8143, allocations: 49.72 kB / 0.9574 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004795/0.8148, allocations: 316.9 kB / 0.9577 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.8149, allocations: 55.38 kB / 0.9578 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.472e-05/0.815, allocations: 34.06 kB / 0.9578 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.815, allocations: 1.438 kB / 0.9578 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.8152, allocations: 87.61 kB / 0.9579 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.8152, allocations: 0 / 0.9579 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003397/0.8155, allocations: 148.7 kB / 0.9581 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.258e-05/0.8156, allocations: 57.64 kB / 0.9581 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.515e-05/0.8156, allocations: 120.1 kB / 0.9582 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.8156, allocations: 31.05 kB / 0.9583 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.284e-05/0.8157, allocations: 90.88 kB / 0.9583 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.8157, allocations: 14.19 kB / 0.9584 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.8157, allocations: 1.312 kB / 0.9584 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.358e-05/0.8158, allocations: 320.1 kB / 0.9587 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.38e-05/0.8158, allocations: 25.42 kB / 0.9587 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.679e-05/0.8159, allocations: 59.06 kB / 0.9587 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.156e-05/0.816, allocations: 35.23 kB / 0.9588 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.816, allocations: 0 / 0.9588 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002011/0.8162, allocations: 127.1 kB / 0.9589 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.8163, allocations: 4.25 kB / 0.9589 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.8163, allocations: 5.797 kB / 0.9589 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.8163, allocations: 1.688 kB / 0.9589 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.853e-05/0.8164, allocations: 16.2 kB / 0.9589 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.8164, allocations: 1.5 kB / 0.9589 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.544e-05/0.8165, allocations: 13.16 kB / 0.9589 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.8165, allocations: 11.44 kB / 0.959 GB, free: 3.887 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.976e-05/0.8166, allocations: 122.6 kB / 0.9591 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.4e-05/0.8166, allocations: 2.781 kB / 0.9591 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.383e-05/0.8166, allocations: 9.5 kB / 0.9591 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.8166, allocations: 5.234 kB / 0.9591 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.8166, allocations: 0.875 kB / 0.9591 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.8166, allocations: 0 / 0.9591 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003666/0.817, allocations: 388.4 kB / 0.9595 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.817, allocations: 4 kB / 0.9595 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.124e-05/0.8171, allocations: 13.47 kB / 0.9595 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.8171, allocations: 3.953 kB / 0.9595 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.8171, allocations: 1.25 kB / 0.9595 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.8171, allocations: 0 / 0.9595 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.8171, allocations: 1.344 kB / 0.9595 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.8173, allocations: 217.8 kB / 0.9597 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.051e-05/0.8174, allocations: 83.08 kB / 0.9598 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.8174, allocations: 5.109 kB / 0.9598 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.264e-05/0.8175, allocations: 4.281 kB / 0.9598 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.8175, allocations: 7.203 kB / 0.9598 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.8176, allocations: 6.219 kB / 0.9598 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.008e-05/0.8176, allocations: 96.58 kB / 0.9599 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.844e-06/0.8176, allocations: 0 / 0.9599 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002938/0.8179, allocations: 52.92 kB / 0.9599 GB, free: 2.969 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.0003046/0.8182, allocations: 157.6 kB / 0.9601 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.8184, allocations: 74.5 kB / 0.9602 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.8185, allocations: 4.75 kB / 0.9602 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.332e-05/0.8186, allocations: 34.86 kB / 0.9602 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.8188, allocations: 6.734 kB / 0.9602 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003523/0.8192, allocations: 210.9 kB / 0.9604 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.8193, allocations: 0.6891 MB / 0.9611 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.767e-05/0.8193, allocations: 10.88 kB / 0.9611 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.362e-05/0.8194, allocations: 15.56 kB / 0.9611 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8194, allocations: 0 / 0.9611 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of Templates: time 0.003817/0.8232, allocations: 1.342 MB / 0.9624 GB, free: 1.203 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","/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