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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007965/0.007965, allocations: 103.2 kB / 15.73 MB, free: 6.062 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.001801/0.001801, allocations: 197 kB / 16.68 MB, free: 5.98 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.664/2.664, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.84 kB / 1.054 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9146/0.9159, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002768/0.9187, allocations: 1.483 MB / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.92, allocations: 0.7245 MB / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.35e-05/0.9201, allocations: 3.938 kB / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.9202, allocations: 3.938 kB / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.375e-05/0.9202, allocations: 11.88 kB / 1.209 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006379/0.9209, allocations: 127.6 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.921, allocations: 75.77 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.744e-05/0.9211, allocations: 11.95 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.9212, allocations: 43.84 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.725e-05/0.9213, allocations: 39.83 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.9213, allocations: 4 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.9216, allocations: 95.91 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.15e-05/0.9216, allocations: 15.97 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.444e-05/0.9217, allocations: 31.8 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002456/0.9219, allocations: 145.9 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.9219, allocations: 0 / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.212e-06/0.9219, allocations: 0 / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.9219, allocations: 0 / 1.21 GB, free: 10.76 MB / 0.9356 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.0006437/0.9226, allocations: 424.9 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.9226, allocations: 16.03 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.9227, allocations: 30.75 kB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.923e-05/0.9227, allocations: 8.844 kB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.9229, allocations: 176.3 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.9229, allocations: 4.375 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.9229, allocations: 4.375 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.9231, allocations: 77.72 kB / 1.211 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.9231, allocations: 0 / 1.211 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.9231, allocations: 0 / 1.211 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.9232, allocations: 0 / 1.211 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.9233, allocations: 43.97 kB / 1.211 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006338/0.924, allocations: 312.7 kB / 1.211 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.9241, allocations: 50.44 kB / 1.211 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.676e-05/0.9242, allocations: 36.97 kB / 1.211 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.9242, allocations: 3.984 kB / 1.211 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.9244, allocations: 75.3 kB / 1.211 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.9244, allocations: 0 / 1.211 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004459/0.9249, allocations: 141.7 kB / 1.211 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.9249, allocations: 59.28 kB / 1.211 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/0.925, allocations: 129.7 kB / 1.212 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.925, allocations: 29.7 kB / 1.212 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.9251, allocations: 92.12 kB / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.9251, allocations: 11.81 kB / 1.212 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.703e-05/0.9252, allocations: 29.7 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.9253, allocations: 322.8 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.004e-05/0.9254, allocations: 27.98 kB / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.343e-05/0.9255, allocations: 46.56 kB / 1.212 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.9257, allocations: 78.78 kB / 1.212 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.9257, allocations: 0 / 1.212 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002681/0.926, allocations: 121.5 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.926, allocations: 4 kB / 1.212 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.926, allocations: 4 kB / 1.212 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.926, allocations: 0 / 1.212 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.9262, allocations: 11.98 kB / 1.212 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.9262, allocations: 0 / 1.212 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.947e-05/0.9262, allocations: 7.938 kB / 1.212 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.9263, allocations: 4 kB / 1.212 GB, free: 8.164 MB / 0.9356 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.0001068/0.9264, allocations: 137.7 kB / 1.212 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.936e-05/0.9264, allocations: 7.906 kB / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.87e-05/0.9264, allocations: 8.359 kB / 1.212 GB, free: 8 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.9264, allocations: 4 kB / 1.212 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.9265, allocations: 0 / 1.212 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.9265, allocations: 0 / 1.212 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000448/0.9269, allocations: 382.5 kB / 1.213 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.9269, allocations: 0 / 1.213 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.491e-05/0.927, allocations: 11.92 kB / 1.213 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.927, allocations: 4 kB / 1.213 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.927, allocations: 0 / 1.213 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.927, allocations: 7.938 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.927, allocations: 0 / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/0.9273, allocations: 207.4 kB / 1.213 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.9274, allocations: 85.02 kB / 1.213 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.9274, allocations: 0 / 1.213 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.11e-05/0.9275, allocations: 11.94 kB / 1.213 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.243e-05/0.9275, allocations: 3.984 kB / 1.213 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.9275, allocations: 8 kB / 1.213 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.709e-05/0.9276, allocations: 91.27 kB / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9276, allocations: 0 / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003195/0.9279, allocations: 43.92 kB / 1.213 GB, free: 7.066 MB / 0.9356 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.0007946/0.9287, allocations: 0.8061 MB / 1.214 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002545/0.929, allocations: 84.17 kB / 1.214 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.929, allocations: 4.125 kB / 1.214 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.604e-05/0.9291, allocations: 31.98 kB / 1.214 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.9294, allocations: 7.922 kB / 1.214 GB, free: 6.125 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.931, allocations: 1.485 MB / 1.216 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.9313, allocations: 0.6923 MB / 1.216 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.836e-05/0.9313, allocations: 4 kB / 1.216 GB, free: 3.82 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.9314, allocations: 23.42 kB / 1.216 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of SimCode: time 6.51e-07/0.9314, allocations: 0 / 1.216 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.9508, allocations: 2.692 MB / 1.219 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.657/8.608, allocations: 2.75 kB / 1.219 GB, free: 1.254 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > 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,TOut.y,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.p,hea.samplePeriod,hea.seed,occ.startTime,occ.startValue,occ.y,time