Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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: "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",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.001522/0.001522, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001729/0.001729, allocations: 198.2 kB / 16.14 MB, free: 6.711 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.258/1.258, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.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.227/2.227, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5747/0.5759, allocations: 140.4 MB / 0.949 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002184/0.5782, allocations: 1.535 MB / 0.9505 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009512/0.5791, allocations: 0.7285 MB / 0.9512 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.161e-05/0.5792, allocations: 1.156 kB / 0.9512 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.003e-05/0.5792, allocations: 7.922 kB / 0.9513 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.029e-05/0.5793, allocations: 14.11 kB / 0.9513 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/0.5797, allocations: 103.8 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.238e-05/0.5798, allocations: 70.88 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.752e-05/0.5799, allocations: 17.56 kB / 0.9515 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.644e-05/0.5799, allocations: 38.19 kB / 0.9515 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.595e-05/0.58, allocations: 35.09 kB / 0.9515 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.58, allocations: 4.219 kB / 0.9515 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.5802, allocations: 85.62 kB / 0.9516 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.291e-05/0.5802, allocations: 14.55 kB / 0.9516 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.847e-05/0.5803, allocations: 32.78 kB / 0.9517 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.5805, allocations: 139.9 kB / 0.9518 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.5805, allocations: 3.984 kB / 0.9518 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5805, allocations: 5.094 kB / 0.9518 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.5805, allocations: 0 / 0.9518 GB, free: 7.043 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.0004932/0.581, allocations: 415.8 kB / 0.9522 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.5811, allocations: 9.844 kB / 0.9522 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.795e-05/0.5811, allocations: 43.7 kB / 0.9522 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.348e-05/0.5811, allocations: 4.312 kB / 0.9522 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.308e-05/0.5812, allocations: 172.6 kB / 0.9524 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.5812, allocations: 2.688 kB / 0.9524 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.5812, allocations: 7.875 kB / 0.9524 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.5814, allocations: 71.88 kB / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.5814, allocations: 1.062 kB / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.5815, allocations: 0 / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-06/0.5815, allocations: 1.094 kB / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.5816, allocations: 36.16 kB / 0.9525 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.5821, allocations: 330.2 kB / 0.9528 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.5822, allocations: 53.11 kB / 0.9529 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.534e-05/0.5823, allocations: 31.31 kB / 0.9529 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.5823, allocations: 1.062 kB / 0.9529 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001479/0.5825, allocations: 85.55 kB / 0.953 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.5825, allocations: 0 / 0.953 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003541/0.5828, allocations: 137.1 kB / 0.9531 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.279e-05/0.5829, allocations: 61.06 kB / 0.9532 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.642e-05/0.5829, allocations: 120.6 kB / 0.9533 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.5829, allocations: 27.14 kB / 0.9533 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.127e-05/0.583, allocations: 90.92 kB / 0.9534 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.583, allocations: 17.98 kB / 0.9534 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-05/0.583, allocations: 26.16 kB / 0.9535 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.402e-05/0.5831, allocations: 325.3 kB / 0.9538 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.565e-05/0.5832, allocations: 22.8 kB / 0.9538 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.163e-05/0.5833, allocations: 55.91 kB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.5834, allocations: 81.92 kB / 0.9539 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.5834, allocations: 0 / 0.9539 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002081/0.5836, allocations: 109.3 kB / 0.954 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.5836, allocations: 5.781 kB / 0.954 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.5837, allocations: 0 / 0.954 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.5837, allocations: 5.484 kB / 0.954 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.84e-05/0.5838, allocations: 12.53 kB / 0.9541 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.5838, allocations: 5.344 kB / 0.9541 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.481e-05/0.5838, allocations: 15.73 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.5839, allocations: 3.062 kB / 0.9541 GB, free: 4.852 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 (win.occ,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.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 5.815e-05/0.5839, allocations: 123.6 kB / 0.9542 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.677e-05/0.5839, allocations: 7.062 kB / 0.9542 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.198e-05/0.584, allocations: 9.531 kB / 0.9542 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.584, allocations: 9.328 kB / 0.9542 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.584, allocations: 0 / 0.9542 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.584, allocations: 0 / 0.9542 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000344/0.5843, allocations: 386.6 kB / 0.9546 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5844, allocations: 1.219 kB / 0.9546 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.874e-05/0.5844, allocations: 3.594 kB / 0.9546 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5844, allocations: 0 / 0.9546 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.5844, allocations: 5.156 kB / 0.9546 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.5844, allocations: 5.156 kB / 0.9546 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.5844, allocations: 7.984 kB / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.5847, allocations: 201.4 kB / 0.9548 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.901e-05/0.5847, allocations: 87.92 kB / 0.9549 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.5847, allocations: 0 / 0.9549 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.961e-05/0.5848, allocations: 14.8 kB / 0.9549 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.5849, allocations: 2.938 kB / 0.9549 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.5849, allocations: 10.05 kB / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.066e-05/0.5849, allocations: 93.11 kB / 0.955 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5849, allocations: 0 / 0.955 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002748/0.5852, allocations: 39.84 kB / 0.955 GB, free: 3.938 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 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.p,win.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.0005986/0.5858, allocations: 0.8058 MB / 0.9558 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002203/0.586, allocations: 69.16 kB / 0.9559 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.586, allocations: 0 / 0.9559 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.5861, allocations: 44.59 kB / 0.9559 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.5864, allocations: 21.25 kB / 0.956 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.5876, allocations: 1.496 MB / 0.9574 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.5878, allocations: 0.6842 MB / 0.9581 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.786e-05/0.5878, allocations: 11.39 kB / 0.9581 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.5879, allocations: 14.78 kB / 0.9581 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.5879, allocations: 0 / 0.9581 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.232/1.82, allocations: 2.418 MB / 0.9605 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/1.821, allocations: 273.1 kB / 0.9607 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/4.391, allocations: 0 / 0.9607 GB, free: 15.49 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.fmu > Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed