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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001654/0.001654, allocations: 108 kB / 15.6 MB, free: 132 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.002091/0.002091, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.41/1.41, 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 9.1.3-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.2 MB / 0.6646 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001358, allocations: 59.91 kB / 0.8125 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7638/0.7652, allocations: 140.4 MB / 0.9496 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.004241/0.7695, allocations: 1.479 MB / 0.951 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.7709, allocations: 0.7302 MB / 0.9517 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.543e-05/0.771, allocations: 0 / 0.9517 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.578e-05/0.771, allocations: 5.281 kB / 0.9517 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.811e-05/0.7711, allocations: 21.22 kB / 0.9518 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.7717, allocations: 118.4 kB / 0.9519 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.7718, allocations: 86.55 kB / 0.9519 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.7719, allocations: 10.33 kB / 0.952 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.28e-05/0.772, allocations: 37.09 kB / 0.952 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.353e-05/0.7721, allocations: 39.83 kB / 0.952 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.7721, allocations: 10.44 kB / 0.952 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.7723, allocations: 98.22 kB / 0.9521 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.407e-05/0.7723, allocations: 10.7 kB / 0.9521 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.377e-05/0.7724, allocations: 35.84 kB / 0.9522 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.7726, allocations: 135.7 kB / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.7726, allocations: 1.469 kB / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.7726, allocations: 0 / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.7726, allocations: 0 / 0.9523 GB, free: 6.965 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.000637/0.7733, allocations: 432.1 kB / 0.9527 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.7733, allocations: 9.188 kB / 0.9527 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.673e-05/0.7734, allocations: 8.312 kB / 0.9527 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.7735, allocations: 172.6 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.7735, allocations: 2.281 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.7736, allocations: 4.25 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.7738, allocations: 71.97 kB / 0.953 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.7738, allocations: 1.469 kB / 0.953 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.7738, allocations: 3.984 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.7738, allocations: 1.312 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.7739, allocations: 36.64 kB / 0.953 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.7745, allocations: 329.2 kB / 0.9533 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.7746, allocations: 44.38 kB / 0.9534 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.18e-05/0.7747, allocations: 36.38 kB / 0.9534 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.7748, allocations: 1.531 kB / 0.9534 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.775, allocations: 76.44 kB / 0.9535 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.663e-06/0.775, allocations: 0 / 0.9535 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003795/0.7754, allocations: 140.1 kB / 0.9536 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.7754, allocations: 61.3 kB / 0.9537 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.273e-05/0.7755, allocations: 120.9 kB / 0.9538 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.7755, allocations: 31.23 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.754e-05/0.7755, allocations: 95.5 kB / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.7756, allocations: 13.81 kB / 0.9539 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/0.7756, allocations: 30.48 kB / 0.954 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.059e-05/0.7757, allocations: 320.6 kB / 0.9543 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.124e-05/0.7758, allocations: 34.19 kB / 0.9543 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.12e-05/0.7758, allocations: 44.44 kB / 0.9543 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.776, allocations: 73.52 kB / 0.9544 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.776, allocations: 1.25 kB / 0.9544 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002169/0.7762, allocations: 124.5 kB / 0.9545 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.7762, allocations: 7.094 kB / 0.9545 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.7763, allocations: 0 / 0.9545 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.7763, allocations: 2.188 kB / 0.9545 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.635e-05/0.7764, allocations: 16.05 kB / 0.9546 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.7764, allocations: 1.125 kB / 0.9546 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.319e-05/0.7765, allocations: 7.375 kB / 0.9546 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.7765, allocations: 7.656 kB / 0.9546 GB, free: 4.809 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,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 6.657e-05/0.7766, allocations: 122.5 kB / 0.9547 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.7766, allocations: 7.5 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.7766, allocations: 13.45 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.7766, allocations: 1.094 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.7766, allocations: 0 / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.7766, allocations: 1.125 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.777, allocations: 382.7 kB / 0.9551 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.777, allocations: 4 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.776e-05/0.777, allocations: 3.469 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.7771, allocations: 0.9688 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.7771, allocations: 8.984 kB / 0.9551 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7771, allocations: 1 kB / 0.9551 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.7771, allocations: 3.938 kB / 0.9551 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002318/0.7773, allocations: 205.3 kB / 0.9553 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.055e-05/0.7774, allocations: 87.83 kB / 0.9554 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.7774, allocations: 5.391 kB / 0.9554 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.569e-05/0.7775, allocations: 6.781 kB / 0.9554 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.7775, allocations: 17.44 kB / 0.9554 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.7775, allocations: 2.938 kB / 0.9554 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.647e-05/0.7776, allocations: 92.39 kB / 0.9555 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7776, allocations: 0 / 0.9555 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003252/0.7779, allocations: 39.94 kB / 0.9555 GB, free: 3.895 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 (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.0002958/0.7782, allocations: 154.7 kB / 0.9557 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002387/0.7785, allocations: 82.58 kB / 0.9558 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7785, allocations: 0 / 0.9558 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.054e-05/0.7786, allocations: 31.58 kB / 0.9558 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.7788, allocations: 16.05 kB / 0.9558 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003515/0.7792, allocations: 174.6 kB / 0.956 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.7793, allocations: 0.6914 MB / 0.9566 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.823e-05/0.7793, allocations: 12.3 kB / 0.9567 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.541e-05/0.7794, allocations: 18.02 kB / 0.9567 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7794, allocations: 0 / 0.9567 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of Templates: time 0.004011/0.7834, allocations: 1.452 MB / 0.9581 GB, free: 2.094 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