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.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: "" <> 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.005949/0.005949, allocations: 101.6 kB / 15.73 MB, free: 6.488 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.001154/0.001154, allocations: 193.9 kB / 16.67 MB, free: 6.379 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.504/2.504, allocations: 390.2 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 60.91 kB / 0.9504 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3175, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.003301/0.3209, allocations: 1.477 MB / 1.089 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001617/0.3225, allocations: 0.7298 MB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.985e-05/0.3226, allocations: 3.938 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.285e-05/0.3227, allocations: 7.922 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.442e-05/0.3228, allocations: 11.88 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006758/0.3235, allocations: 123.6 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.3236, allocations: 75.78 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.3238, allocations: 19.95 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.3239, allocations: 31.92 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.852e-05/0.324, allocations: 43.81 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.324, allocations: 4 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002236/0.3242, allocations: 103.8 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.159e-05/0.3243, allocations: 19.92 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.3243, allocations: 27.86 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.3246, allocations: 138.5 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3246, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.086e-06/0.3246, allocations: 4 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.911e-05/0.3247, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 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.0006978/0.3254, allocations: 409.8 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3254, allocations: 20.02 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.057e-05/0.3255, allocations: 34.69 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.275e-05/0.3255, allocations: 8.844 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.3257, allocations: 180.2 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.3257, allocations: 8.375 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.3257, allocations: 8.359 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.3259, allocations: 65.78 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3259, allocations: 3.984 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.326, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.326, allocations: 4 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.3261, allocations: 43.97 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006337/0.3268, allocations: 308.7 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.3269, allocations: 50.56 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.23e-05/0.327, allocations: 36.97 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.327, allocations: 0 / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.3273, allocations: 83.38 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.3273, allocations: 0 / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000412/0.3277, allocations: 137.5 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.3278, allocations: 55.39 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.3279, allocations: 129.7 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.3279, allocations: 29.7 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.827e-05/0.328, allocations: 96.03 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.328, allocations: 15.81 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.399e-05/0.3281, allocations: 25.7 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3283, allocations: 322.7 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.674e-05/0.3283, allocations: 31.97 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.395e-05/0.3284, allocations: 50.5 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.3286, allocations: 70.55 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3286, allocations: 3.938 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002603/0.3289, allocations: 117.6 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3289, allocations: 5.406 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.3289, allocations: 4 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3289, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.3291, allocations: 19.92 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.3291, allocations: 0 / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.479e-05/0.3291, allocations: 7.906 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.3292, allocations: 4 kB / 1.092 GB, free: 12.56 MB / 0.8575 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 0.0001024/0.3293, allocations: 126.6 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.049e-05/0.3293, allocations: 11.89 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.3293, allocations: 12.38 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3293, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3293, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3293, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004476/0.3298, allocations: 382.4 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3298, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.274e-05/0.3299, allocations: 8 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3299, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.3299, allocations: 7.984 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3299, allocations: 4.406 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3299, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002905/0.3302, allocations: 211.3 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.3303, allocations: 89 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.3303, allocations: 0 / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-05/0.3304, allocations: 11.94 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/0.3304, allocations: 3.984 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.3304, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.581e-05/0.3305, allocations: 95.27 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.863e-06/0.3305, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003103/0.3308, allocations: 35.94 kB / 1.093 GB, free: 11.48 MB / 0.8575 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.0008248/0.3317, allocations: 0.805 MB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002451/0.3319, allocations: 71.94 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3319, allocations: 4.125 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.332, allocations: 39.92 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.3323, allocations: 7.938 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.334, allocations: 1.498 MB / 1.096 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.3343, allocations: 0.6846 MB / 1.096 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.014e-05/0.3344, allocations: 11.73 kB / 1.096 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.203e-05/0.3344, allocations: 19.44 kB / 1.096 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of SimCode: time 4.81e-07/0.3344, allocations: 0 / 1.096 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.3548, allocations: 2.689 MB / 1.099 GB, free: 5.664 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/8.156, allocations: 11.61 kB / 1.099 GB, free: 5.656 MB / 0.8575 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