Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_latest_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.01184/0.01184, allocations: 102.7 kB / 15.73 MB, free: 6.492 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.0023/0.0023, allocations: 191.8 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.762/2.762, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 68.12 kB / 1.054 GB, free: 7.73 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3182, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.003534/0.3218, allocations: 1.476 MB / 1.209 GB, free: 8.727 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.3236, allocations: 0.7326 MB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.3237, allocations: 3.938 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.746e-05/0.3239, allocations: 3.938 kB / 1.209 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.324, allocations: 19.8 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.325, allocations: 119.6 kB / 1.21 GB, free: 7.844 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.3253, allocations: 79.81 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.3254, allocations: 7.953 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.3256, allocations: 35.86 kB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.3257, allocations: 43.81 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.3257, allocations: 12 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003012/0.326, allocations: 91.91 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.235e-05/0.3261, allocations: 15.92 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.366e-05/0.3262, allocations: 35.84 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.3265, allocations: 143.8 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3265, allocations: 0 / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.405e-06/0.3266, allocations: 0 / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.886e-06/0.3266, allocations: 0 / 1.21 GB, free: 7.387 MB / 0.9669 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.0008356/0.3274, allocations: 417 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.3275, allocations: 16.62 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.978e-05/0.3275, allocations: 34.75 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.576e-05/0.3276, allocations: 8.844 kB / 1.21 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.3278, allocations: 180.2 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.3278, allocations: 384 / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.3278, allocations: 8.375 kB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.3281, allocations: 73.72 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.3281, allocations: 0 / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.3281, allocations: 0 / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.3281, allocations: 4 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.3283, allocations: 39.97 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00075/0.329, allocations: 316.7 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.3292, allocations: 46.5 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.666e-05/0.3293, allocations: 36.97 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.3293, allocations: 3.984 kB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.3296, allocations: 79.38 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.654e-06/0.3296, allocations: 0 / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004486/0.33, allocations: 133.6 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.3301, allocations: 67.34 kB / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.3303, allocations: 121.8 kB / 1.212 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.3303, allocations: 25.7 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.3304, allocations: 96.19 kB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.3304, allocations: 15.75 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.824e-05/0.3305, allocations: 29.7 kB / 1.212 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3306, allocations: 326.8 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-05/0.3307, allocations: 23.98 kB / 1.212 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.3308, allocations: 58.81 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.331, allocations: 74.48 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.331, allocations: 0 / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000255/0.3313, allocations: 117.5 kB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3313, allocations: 4 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3313, allocations: 0 / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.3314, allocations: 4 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.3315, allocations: 11.98 kB / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.3315, allocations: 4 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.959e-05/0.3316, allocations: 8 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.3316, allocations: 4 kB / 1.212 GB, free: 4.789 MB / 0.9669 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.0001128/0.3317, allocations: 129.8 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.3317, allocations: 7.906 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.583e-05/0.3318, allocations: 8.375 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3318, allocations: 4 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3318, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3318, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004453/0.3323, allocations: 378.4 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3323, allocations: 0 / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.113e-05/0.3323, allocations: 11.98 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.3323, allocations: 3.938 kB / 1.213 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.3323, allocations: 4 kB / 1.213 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3324, allocations: 3.938 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3324, allocations: 4 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.3326, allocations: 203.4 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/0.3327, allocations: 85.02 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.3327, allocations: 4 kB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.742e-05/0.3328, allocations: 11.94 kB / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.3329, allocations: 3.984 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.3329, allocations: 4 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.288e-05/0.3329, allocations: 95.2 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3329, allocations: 0 / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003061/0.3333, allocations: 39.98 kB / 1.213 GB, free: 3.703 MB / 0.9669 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.0008675/0.3341, allocations: 0.8127 MB / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002757/0.3344, allocations: 75.95 kB / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3344, allocations: 4.062 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.3345, allocations: 31.98 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.3348, allocations: 18.36 kB / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.3366, allocations: 1.494 MB / 1.216 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.3369, allocations: 0.6885 MB / 1.216 GB, free: 460 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.075e-05/0.337, allocations: 4 kB / 1.216 GB, free: 456 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.337, allocations: 23.42 kB / 1.216 GB, free: 432 kB / 0.9669 GB Notification: Performance of SimCode: time 4.31e-07/0.337, allocations: 0 / 1.216 GB, free: 432 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.357, allocations: 2.689 MB / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.717/8.074, allocations: 0 / 1.219 GB, free: 13.88 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.fmu > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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