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.001118/0.001118, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.0102/0.0102, allocations: 171.4 kB / 16.27 MB, free: 6.32 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.38/1.38, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.428/2.428, allocations: 390.9 MB / 0.6663 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003682, allocations: 12 kB / 0.816 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7172/0.7176, allocations: 142.4 MB / 0.955 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.001548/0.7192, allocations: 1.197 MB / 0.9562 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.7204, allocations: 0.7134 MB / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.7205, allocations: 1.281 kB / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.78e-05/0.7205, allocations: 0 / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.827e-05/0.7206, allocations: 12.89 kB / 0.9569 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005533/0.7212, allocations: 109.9 kB / 0.957 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000121/0.7213, allocations: 73.73 kB / 0.9571 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.7214, allocations: 14.27 kB / 0.9571 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.7215, allocations: 29.09 kB / 0.9571 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.844e-05/0.7216, allocations: 39.7 kB / 0.9572 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.7217, allocations: 2.531 kB / 0.9572 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.7219, allocations: 98.03 kB / 0.9573 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.7219, allocations: 10.45 kB / 0.9573 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.906e-05/0.722, allocations: 54.61 kB / 0.9573 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.7223, allocations: 139.8 kB / 0.9575 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.7223, allocations: 0 / 0.9575 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.405e-06/0.7223, allocations: 4 kB / 0.9575 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.7223, allocations: 3.938 kB / 0.9575 GB, free: 5.801 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.0006324/0.7229, allocations: 406.7 kB / 0.9579 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.723, allocations: 12.89 kB / 0.9579 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/0.7231, allocations: 7.531 kB / 0.9579 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.7232, allocations: 172.2 kB / 0.958 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/0.7232, allocations: 6.844 kB / 0.958 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.7232, allocations: 8.125 kB / 0.9581 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/0.7234, allocations: 71.34 kB / 0.9581 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.7235, allocations: 0 / 0.9581 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.7235, allocations: 5.406 kB / 0.9581 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.7235, allocations: 0 / 0.9581 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.7236, allocations: 45.84 kB / 0.9582 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006028/0.7243, allocations: 321.9 kB / 0.9585 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.7244, allocations: 56.02 kB / 0.9585 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.718e-05/0.7245, allocations: 37.88 kB / 0.9586 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.7245, allocations: 1.344 kB / 0.9586 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.7248, allocations: 80.5 kB / 0.9586 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.404e-06/0.7248, allocations: 0 / 0.9586 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004602/0.7252, allocations: 152.7 kB / 0.9588 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.7253, allocations: 53.38 kB / 0.9588 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.7254, allocations: 120.7 kB / 0.959 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.7254, allocations: 31.48 kB / 0.959 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.045e-05/0.7255, allocations: 93.92 kB / 0.9591 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.7255, allocations: 23.7 kB / 0.9591 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.7255, allocations: 17.41 kB / 0.9591 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.843e-05/0.7256, allocations: 320.8 kB / 0.9594 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.564e-05/0.7257, allocations: 32.83 kB / 0.9595 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.325e-05/0.7258, allocations: 51.66 kB / 0.9595 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.726, allocations: 78.45 kB / 0.9596 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.726, allocations: 1.156 kB / 0.9596 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002505/0.7262, allocations: 123.1 kB / 0.9597 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.7263, allocations: 6.094 kB / 0.9597 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.964e-06/0.7263, allocations: 1.594 kB / 0.9597 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.7263, allocations: 5.797 kB / 0.9597 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.805e-05/0.7264, allocations: 16.95 kB / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.7264, allocations: 1.875 kB / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.926e-05/0.7265, allocations: 11.59 kB / 0.9597 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.7265, allocations: 7.594 kB / 0.9597 GB, free: 3.664 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 7.648e-05/0.7266, allocations: 130.2 kB / 0.9599 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.747e-05/0.7266, allocations: 7.5 kB / 0.9599 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.7267, allocations: 8.375 kB / 0.9599 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.7267, allocations: 1.781 kB / 0.9599 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.7267, allocations: 0 / 0.9599 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.7267, allocations: 1.812 kB / 0.9599 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000387/0.7271, allocations: 387.3 kB / 0.9603 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.7271, allocations: 0 / 0.9603 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.092e-05/0.7271, allocations: 9.484 kB / 0.9603 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.7272, allocations: 0 / 0.9603 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.7272, allocations: 1.375 kB / 0.9603 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.7272, allocations: 0 / 0.9603 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.7272, allocations: 5.312 kB / 0.9603 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.7275, allocations: 222.3 kB / 0.9605 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.568e-05/0.7275, allocations: 83.77 kB / 0.9606 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.7275, allocations: 4 kB / 0.9606 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.7276, allocations: 4.125 kB / 0.9606 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.866e-05/0.7277, allocations: 14.61 kB / 0.9606 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.7277, allocations: 10.75 kB / 0.9606 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.907e-05/0.7277, allocations: 92.89 kB / 0.9607 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7277, allocations: 0 / 0.9607 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003304/0.7281, allocations: 43.42 kB / 0.9607 GB, free: 2.746 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.0003574/0.7284, allocations: 154.2 kB / 0.9609 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002454/0.7287, allocations: 86.62 kB / 0.961 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.7287, allocations: 0 / 0.961 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.464e-05/0.7288, allocations: 39.34 kB / 0.961 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.7291, allocations: 6.75 kB / 0.961 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000388/0.7295, allocations: 216.8 kB / 0.9612 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.7296, allocations: 0.6878 MB / 0.9619 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.891e-05/0.7296, allocations: 8.109 kB / 0.9619 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.7297, allocations: 14.19 kB / 0.9619 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of SimCode: time 1.112e-06/0.7297, allocations: 0 / 0.9619 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of Templates: time 0.004393/0.7341, allocations: 1.357 MB / 0.9632 GB, free: 0.9648 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