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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001406/0.001406, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 195.6 kB / 16.53 MB, free: 6.699 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.423/1.423, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.845/2.845, allocations: 472.6 MB / 0.7451 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 64.86 kB / 0.912 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3272, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.003838/0.3311, allocations: 1.466 MB / 1.07 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001755/0.3328, allocations: 0.736 MB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.363e-05/0.3329, allocations: 0 / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.237e-05/0.333, allocations: 3.938 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.51e-05/0.3331, allocations: 19.86 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007193/0.3338, allocations: 119.6 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.334, allocations: 71.84 kB / 1.071 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.3341, allocations: 15.97 kB / 1.071 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.3342, allocations: 31.86 kB / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.604e-05/0.3343, allocations: 43.83 kB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.56e-05/0.3343, allocations: 12 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002583/0.3346, allocations: 95.84 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.097e-05/0.3347, allocations: 23.84 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.642e-05/0.3347, allocations: 35.84 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.3351, allocations: 139.9 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3351, allocations: 4 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.674e-06/0.3351, allocations: 0 / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.912e-06/0.3351, allocations: 0 / 1.071 GB, free: 7.629 MB / 0.8262 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.0006253/0.3357, allocations: 409 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.3358, allocations: 12.03 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.83e-05/0.3358, allocations: 8.844 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.336, allocations: 184.2 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.336, allocations: 384 / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.336, allocations: 4.375 kB / 1.072 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.3362, allocations: 77.91 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.3362, allocations: 0 / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.3363, allocations: 0 / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3363, allocations: 0 / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.3364, allocations: 47.91 kB / 1.072 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000631/0.337, allocations: 312.8 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.3372, allocations: 50.48 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.625e-05/0.3373, allocations: 40.97 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.3373, allocations: 0 / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002077/0.3375, allocations: 75.38 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.3375, allocations: 0 / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004038/0.3379, allocations: 141.5 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.338, allocations: 59.34 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.3381, allocations: 126.1 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.3381, allocations: 29.7 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.3382, allocations: 92.2 kB / 1.073 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.3382, allocations: 15.75 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.657e-05/0.3383, allocations: 29.7 kB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3384, allocations: 322.8 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.66e-05/0.3385, allocations: 27.98 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.771e-05/0.3386, allocations: 54.59 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.3388, allocations: 74.5 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3388, allocations: 0 / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002362/0.339, allocations: 117.5 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.339, allocations: 4 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3391, allocations: 0 / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3391, allocations: 4 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.637e-05/0.3392, allocations: 11.98 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.3392, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.761e-05/0.3393, allocations: 7.938 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.3393, allocations: 15.92 kB / 1.073 GB, free: 5.074 MB / 0.8262 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 9.596e-05/0.3394, allocations: 129.2 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.789e-05/0.3394, allocations: 7.906 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.64e-05/0.3394, allocations: 8.375 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3395, allocations: 4 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3395, allocations: 0 / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3395, allocations: 0 / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.3399, allocations: 378.4 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3399, allocations: 0 / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.423e-05/0.34, allocations: 15.92 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.34, allocations: 0 / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.34, allocations: 0 / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.34, allocations: 4 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.34, allocations: 3.938 kB / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002982/0.3403, allocations: 207.4 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.327e-05/0.3404, allocations: 85.02 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.3404, allocations: 4 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.015e-05/0.3405, allocations: 7.984 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.3405, allocations: 7.938 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.3406, allocations: 4 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.832e-05/0.3406, allocations: 91.27 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3406, allocations: 0 / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003062/0.3409, allocations: 39.98 kB / 1.074 GB, free: 4 MB / 0.8262 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.000339/0.3413, allocations: 169 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002448/0.3415, allocations: 83.81 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3415, allocations: 0 / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3417, allocations: 31.98 kB / 1.074 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.3419, allocations: 16.5 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004172/0.3423, allocations: 181 kB / 1.075 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.3426, allocations: 0.6884 MB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.986e-05/0.3427, allocations: 11.98 kB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.254e-05/0.3427, allocations: 15.44 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of SimCode: time 6.71e-07/0.3427, allocations: 0 / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of Templates: time 0.004138/0.3468, allocations: 1.445 MB / 1.077 GB, free: 1.324 MB / 0.8262 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 -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/jenkins/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