Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_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_latest_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.001514/0.001514, allocations: 111.2 kB / 16.37 MB, free: 6.012 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.001725/0.001725, allocations: 191.5 kB / 17.3 MB, free: 5.613 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.409/2.409, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 65.86 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2702, allocations: 153 MB / 1.027 GB, free: 2.012 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002387/0.2726, allocations: 1.484 MB / 1.028 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2737, allocations: 0.7399 MB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.265e-05/0.2737, allocations: 4 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.454e-05/0.2738, allocations: 3.938 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.758e-05/0.2738, allocations: 15.86 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004642/0.2743, allocations: 111.6 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.2744, allocations: 79.77 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.165e-05/0.2745, allocations: 15.98 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.514e-05/0.2746, allocations: 39.84 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.003e-05/0.2747, allocations: 43.83 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.2747, allocations: 8 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.2749, allocations: 87.86 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.2749, allocations: 23.91 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.167e-05/0.275, allocations: 31.86 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.2752, allocations: 139.6 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2752, allocations: 0 / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2752, allocations: 0 / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.2752, allocations: 0 / 1.029 GB, free: 15.18 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.000544/0.2757, allocations: 428.9 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.2758, allocations: 8.031 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.927e-05/0.2758, allocations: 8.844 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.2759, allocations: 180.2 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.276, allocations: 4.375 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.276, allocations: 8.312 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.2762, allocations: 69.97 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.2762, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2762, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.2762, allocations: 8 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.2763, allocations: 35.97 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005499/0.2769, allocations: 308.8 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.277, allocations: 46.5 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.901e-05/0.2771, allocations: 44.95 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.2771, allocations: 0 / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000152/0.2773, allocations: 87.36 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.2773, allocations: 0 / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003781/0.2777, allocations: 141.5 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.2777, allocations: 55.41 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.647e-05/0.2778, allocations: 125.8 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.2778, allocations: 29.69 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.2779, allocations: 92.05 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.2779, allocations: 15.84 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.278, allocations: 33.64 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.227e-05/0.2781, allocations: 322.8 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.985e-05/0.2782, allocations: 27.98 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.623e-05/0.2783, allocations: 42.56 kB / 1.032 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.2784, allocations: 74.48 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2784, allocations: 0 / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002311/0.2787, allocations: 121.5 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.2787, allocations: 4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2787, allocations: 4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.968e-06/0.2787, allocations: 3.938 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.277e-05/0.2788, allocations: 11.98 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2788, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.793e-05/0.2789, allocations: 11.91 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.2789, 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 8.763e-05/0.279, allocations: 133.7 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.279, allocations: 7.906 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.2791, allocations: 16.36 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2791, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2791, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2791, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004226/0.2795, allocations: 382.3 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2795, allocations: 4 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.244e-05/0.2796, allocations: 7.984 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2796, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.2796, allocations: 4 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2796, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2796, allocations: 3.938 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002662/0.2799, allocations: 211.3 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/0.2799, allocations: 81.11 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.2799, allocations: 4 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.171e-05/0.28, allocations: 4 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.2801, allocations: 11.92 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.2801, allocations: 4 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.014e-05/0.2802, allocations: 91.27 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2802, allocations: 3.938 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002862/0.2805, allocations: 43.89 kB / 1.033 GB, free: 11.53 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.0002735/0.2807, allocations: 164.3 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002284/0.281, allocations: 71.91 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.281, allocations: 0 / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.494e-05/0.2811, allocations: 35.97 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.2813, allocations: 12.12 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.0003736/0.2817, 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.0002117/0.2819, allocations: 0.6884 MB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.386e-05/0.282, 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 2.817e-05/0.282, allocations: 15.44 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of SimCode: time 2.7e-07/0.282, allocations: 0 / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of Templates: time 0.00388/0.2859, allocations: 1.447 MB / 1.035 GB, free: 8.875 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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