Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008352/0.0008352, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009528/0.0009529, allocations: 172.7 kB / 15.95 MB, free: 208 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.464/1.464, allocations: 223.3 MB / 240 MB, free: 5.457 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.601/2.601, allocations: 390.9 MB / 0.666 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004238/0.0004244, allocations: 8 kB / 0.8153 GB, free: 13.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8231/0.8236, allocations: 142.4 MB / 0.9544 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.00166/0.8253, allocations: 1.177 MB / 0.9556 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.8264, allocations: 0.6867 MB / 0.9562 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.8265, allocations: 3.938 kB / 0.9563 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.809e-05/0.8265, allocations: 0 / 0.9563 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.98e-05/0.8266, allocations: 6.281 kB / 0.9563 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.8272, allocations: 96.2 kB / 0.9563 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.8273, allocations: 69.45 kB / 0.9564 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.75e-05/0.8274, allocations: 13.19 kB / 0.9564 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.603e-05/0.8275, allocations: 37.67 kB / 0.9565 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.8276, allocations: 39.94 kB / 0.9565 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.8276, allocations: 2.75 kB / 0.9565 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.8278, allocations: 85.17 kB / 0.9566 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.873e-05/0.8278, allocations: 14.31 kB / 0.9566 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.683e-05/0.8279, allocations: 38.98 kB / 0.9566 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.8281, allocations: 92.17 kB / 0.9567 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.8281, allocations: 0 / 0.9567 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.223e-06/0.8281, allocations: 0 / 0.9567 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.8281, allocations: 1.406 kB / 0.9567 GB, free: 5.945 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.0005307/0.8286, allocations: 413.1 kB / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.8287, allocations: 9.656 kB / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.8287, allocations: 15.16 kB / 0.9571 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.019e-05/0.8288, allocations: 166.5 kB / 0.9573 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.8288, allocations: 3.344 kB / 0.9573 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.8289, allocations: 2.844 kB / 0.9573 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.8291, allocations: 79.59 kB / 0.9574 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.8291, allocations: 0 / 0.9574 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.8291, allocations: 0 / 0.9574 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.8291, allocations: 1.062 kB / 0.9574 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.8292, allocations: 49.83 kB / 0.9574 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005522/0.8298, allocations: 323.4 kB / 0.9577 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.8299, allocations: 54.44 kB / 0.9578 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.602e-05/0.83, allocations: 45.56 kB / 0.9578 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.8301, allocations: 5.5 kB / 0.9578 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001698/0.8302, allocations: 80.2 kB / 0.9579 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.8302, allocations: 0 / 0.9579 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003909/0.8306, allocations: 147.4 kB / 0.9581 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.8307, allocations: 53.19 kB / 0.9581 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.536e-05/0.8308, allocations: 124.4 kB / 0.9582 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.8308, allocations: 31.48 kB / 0.9583 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.8308, allocations: 87.95 kB / 0.9583 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.8309, allocations: 21.59 kB / 0.9584 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.004e-06/0.8309, allocations: 0 / 0.9584 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.067e-05/0.8309, allocations: 320.6 kB / 0.9587 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.406e-05/0.831, allocations: 29.89 kB / 0.9587 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.762e-05/0.8311, allocations: 51.23 kB / 0.9587 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.729e-05/0.8312, allocations: 35.52 kB / 0.9588 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.8312, allocations: 0 / 0.9588 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002187/0.8314, allocations: 117.9 kB / 0.9589 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.8314, allocations: 5.5 kB / 0.9589 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.8315, allocations: 5.328 kB / 0.9589 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.8315, allocations: 1.375 kB / 0.9589 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.586e-05/0.8316, allocations: 24.23 kB / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.8316, allocations: 1.375 kB / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.49e-05/0.8317, allocations: 13.25 kB / 0.9589 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.8317, allocations: 4 kB / 0.9589 GB, free: 3.855 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 7.232e-05/0.8318, allocations: 121.9 kB / 0.9591 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.8318, allocations: 3.906 kB / 0.9591 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.403e-05/0.8318, allocations: 9.422 kB / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.8318, allocations: 9.234 kB / 0.9591 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.8318, allocations: 0 / 0.9591 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.8318, allocations: 0 / 0.9591 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003852/0.8322, allocations: 388.8 kB / 0.9595 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.8322, allocations: 0 / 0.9595 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.772e-05/0.8323, allocations: 4.125 kB / 0.9595 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.8323, allocations: 8.922 kB / 0.9595 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.8323, allocations: 5.547 kB / 0.9595 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8323, allocations: 0 / 0.9595 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.8323, allocations: 1.094 kB / 0.9595 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.8326, allocations: 215.4 kB / 0.9597 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.548e-05/0.8326, allocations: 86.3 kB / 0.9598 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.8326, allocations: 9.469 kB / 0.9598 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-05/0.8327, allocations: 3.812 kB / 0.9598 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.8328, allocations: 6.703 kB / 0.9598 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.8328, allocations: 6.344 kB / 0.9598 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.757e-05/0.8328, allocations: 100.9 kB / 0.9599 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8328, allocations: 0 / 0.9599 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003087/0.8331, allocations: 40.28 kB / 0.9599 GB, free: 2.941 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.000331/0.8335, allocations: 157.3 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002276/0.8337, allocations: 82.84 kB / 0.9601 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.8337, allocations: 4.125 kB / 0.9602 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.445e-05/0.8338, allocations: 38.95 kB / 0.9602 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.8341, allocations: 13.27 kB / 0.9602 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003701/0.8345, allocations: 216.6 kB / 0.9604 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.8346, allocations: 0.6848 MB / 0.9611 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.121e-05/0.8346, allocations: 7.359 kB / 0.9611 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.436e-05/0.8347, allocations: 11.44 kB / 0.9611 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of SimCode: time 6.01e-07/0.8347, allocations: 0 / 0.9611 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of Templates: time 0.003942/0.8386, allocations: 1.339 MB / 0.9624 GB, free: 1.164 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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