Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 102.1 kB / 16.35 MB, free: 5.875 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.001857/0.001857, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.414/1.414, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.242/2.242, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 64.58 kB / 0.814 GB, free: 32.6 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2887, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002931/0.2917, allocations: 1.473 MB / 0.9526 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2929, allocations: 0.7284 MB / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.046e-05/0.293, allocations: 4 kB / 0.9533 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.91e-05/0.293, allocations: 7.938 kB / 0.9533 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.971e-05/0.2931, allocations: 15.8 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005366/0.2937, allocations: 119.6 kB / 0.9534 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.2938, allocations: 75.77 kB / 0.9535 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.2939, allocations: 12 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.558e-05/0.294, allocations: 43.83 kB / 0.9535 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.549e-05/0.2941, allocations: 35.84 kB / 0.9536 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.2941, allocations: 8 kB / 0.9536 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.2943, allocations: 91.91 kB / 0.9537 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.2943, allocations: 19.97 kB / 0.9537 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.919e-05/0.2944, allocations: 31.8 kB / 0.9537 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.2946, allocations: 147.5 kB / 0.9538 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2946, allocations: 0 / 0.9538 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.013e-06/0.2946, allocations: 0 / 0.9538 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.2946, allocations: 0 / 0.9538 GB, free: 5.234 MB / 0.7325 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.0007125/0.2954, allocations: 425.9 kB / 0.9543 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2954, allocations: 8.031 kB / 0.9543 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.282e-05/0.2955, allocations: 8.844 kB / 0.9543 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.2956, allocations: 172.3 kB / 0.9544 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.2956, allocations: 4.375 kB / 0.9544 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.2957, allocations: 4.375 kB / 0.9544 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.2959, allocations: 81.88 kB / 0.9545 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.2959, allocations: 0 / 0.9545 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.2959, allocations: 4 kB / 0.9545 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.2959, allocations: 4 kB / 0.9545 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.296, allocations: 35.97 kB / 0.9546 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.2966, allocations: 312.7 kB / 0.9549 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.2968, allocations: 54.5 kB / 0.9549 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.458e-05/0.2969, allocations: 32.97 kB / 0.9549 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.2969, allocations: 7.984 kB / 0.955 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.2971, allocations: 75.33 kB / 0.955 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.2971, allocations: 0 / 0.955 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003935/0.2975, allocations: 149.5 kB / 0.9552 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.2976, allocations: 51.41 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.833e-05/0.2977, allocations: 121.8 kB / 0.9553 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.2977, allocations: 25.7 kB / 0.9554 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.788e-05/0.2978, allocations: 92.12 kB / 0.9554 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.2978, allocations: 19.75 kB / 0.9555 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.2978, allocations: 29.7 kB / 0.9555 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.298, allocations: 322.8 kB / 0.9558 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.772e-05/0.2981, allocations: 27.98 kB / 0.9558 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.784e-05/0.2982, allocations: 43 kB / 0.9559 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.2983, allocations: 86.72 kB / 0.956 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2983, allocations: 0 / 0.956 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002463/0.2986, allocations: 121.5 kB / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.2986, allocations: 8 kB / 0.9561 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.2986, allocations: 0 / 0.9561 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2986, allocations: 0 / 0.9561 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.2988, allocations: 11.98 kB / 0.9561 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.2988, allocations: 4 kB / 0.9561 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.697e-05/0.2988, allocations: 11.91 kB / 0.9561 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.2989, allocations: 0 / 0.9561 GB, free: 2.68 MB / 0.7325 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.226e-05/0.299, allocations: 133.8 kB / 0.9562 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.299, allocations: 0 / 0.9562 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.559e-05/0.299, allocations: 12.38 kB / 0.9562 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.299, allocations: 3.938 kB / 0.9562 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.299, allocations: 0 / 0.9562 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.299, allocations: 0 / 0.9562 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.2995, allocations: 378.3 kB / 0.9566 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2995, allocations: 4 kB / 0.9566 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.072e-05/0.2996, allocations: 11.92 kB / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2996, allocations: 0 / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.2996, allocations: 4 kB / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2996, allocations: 0 / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.2996, allocations: 3.938 kB / 0.9566 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.2999, allocations: 207.5 kB / 0.9568 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.598e-05/0.2999, allocations: 89.02 kB / 0.9569 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.2999, allocations: 0 / 0.9569 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.542e-05/0.3, allocations: 4 kB / 0.9569 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.3001, allocations: 15.92 kB / 0.9569 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.3001, allocations: 0 / 0.9569 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.673e-05/0.3001, allocations: 95.42 kB / 0.957 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3002, allocations: 0 / 0.957 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002825/0.3004, allocations: 43.98 kB / 0.9571 GB, free: 1.59 MB / 0.7325 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.0003266/0.3008, allocations: 166.8 kB / 0.9572 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000216/0.301, allocations: 64.2 kB / 0.9573 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.301, allocations: 0 / 0.9573 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.3011, allocations: 44 kB / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.3014, allocations: 17.39 kB / 0.9573 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003897/0.3018, allocations: 192 kB / 0.9575 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.302, allocations: 0.6922 MB / 0.9582 GB, free: 384 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.576e-05/0.3021, allocations: 3.984 kB / 0.9582 GB, free: 380 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.714e-05/0.3021, allocations: 15.44 kB / 0.9582 GB, free: 364 kB / 0.7325 GB Notification: Performance of SimCode: time 1.643e-06/0.3021, allocations: 4 kB / 0.9582 GB, free: 360 kB / 0.7325 GB Notification: Performance of Templates: time 0.00418/0.3063, allocations: 1.447 MB / 0.9596 GB, free: 14.91 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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