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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.006541/0.006541, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001721/0.001721, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 482.6 MB / 0.755 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 71.83 kB / 1.083 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2729, allocations: 162.3 MB / 1.242 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002407/0.2753, allocations: 1.477 MB / 1.243 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2765, allocations: 0.7323 MB / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.35e-05/0.2766, allocations: 0 / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.389e-05/0.2766, allocations: 7.875 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.664e-05/0.2767, allocations: 15.86 kB / 1.244 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000464/0.2771, allocations: 123.6 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.2773, allocations: 75.77 kB / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.611e-05/0.2773, allocations: 19.98 kB / 1.244 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.469e-05/0.2774, allocations: 31.91 kB / 1.244 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.342e-05/0.2775, allocations: 39.83 kB / 1.244 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.2775, allocations: 8 kB / 1.244 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.2777, allocations: 95.84 kB / 1.244 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.326e-05/0.2778, allocations: 23.91 kB / 1.244 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.478e-05/0.2778, allocations: 31.86 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.278, allocations: 143.5 kB / 1.245 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.278, allocations: 0 / 1.245 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.393e-06/0.278, allocations: 0 / 1.245 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.278, allocations: 0 / 1.245 GB, free: 7.078 MB / 0.9981 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.0005707/0.2786, allocations: 424.7 kB / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.2787, allocations: 8.031 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.651e-05/0.2787, allocations: 34.75 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.585e-05/0.2787, allocations: 8.891 kB / 1.245 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.2789, allocations: 172.3 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.2789, allocations: 12.36 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.2789, allocations: 8.312 kB / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.2791, allocations: 69.78 kB / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.2791, allocations: 0 / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.2791, allocations: 4 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.2791, allocations: 0 / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.2793, allocations: 43.94 kB / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.2798, allocations: 320.7 kB / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.28, allocations: 46.56 kB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.813e-05/0.2801, allocations: 32.91 kB / 1.246 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.2801, allocations: 4 kB / 1.246 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.2803, allocations: 79.38 kB / 1.246 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.2803, allocations: 3.938 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.00051/0.2809, allocations: 141.6 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.2809, allocations: 51.41 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.281, allocations: 125.8 kB / 1.246 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.2811, allocations: 29.7 kB / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.926e-05/0.2812, allocations: 96.08 kB / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.2812, allocations: 15.91 kB / 1.246 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.267e-05/0.2813, allocations: 29.7 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.2814, allocations: 322.8 kB / 1.247 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.895e-05/0.2815, allocations: 23.98 kB / 1.247 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.204e-05/0.2816, allocations: 46.56 kB / 1.247 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.2818, allocations: 74.8 kB / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2818, allocations: 0 / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002461/0.282, allocations: 121.5 kB / 1.247 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.282, allocations: 11.94 kB / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.282, allocations: 0 / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.2821, allocations: 64 / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.757e-05/0.2822, allocations: 19.92 kB / 1.247 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.2822, allocations: 4 kB / 1.247 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.066e-05/0.2822, allocations: 7.938 kB / 1.247 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.2823, allocations: 4 kB / 1.247 GB, free: 4.473 MB / 0.9981 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 9.896e-05/0.2824, allocations: 129.9 kB / 1.247 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.2824, allocations: 3.953 kB / 1.247 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.168e-05/0.2824, allocations: 12.38 kB / 1.247 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2824, allocations: 4 kB / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.2824, allocations: 0 / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2824, allocations: 0 / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004531/0.2829, allocations: 378.4 kB / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2829, allocations: 0 / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.857e-05/0.2829, allocations: 7.984 kB / 1.247 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.283, allocations: 4 kB / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.283, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.283, allocations: 3.938 kB / 1.247 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.283, allocations: 4 kB / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.2833, allocations: 215.4 kB / 1.248 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/0.2833, allocations: 85.05 kB / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.2833, allocations: 0 / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.2834, allocations: 7.938 kB / 1.248 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.2835, allocations: 11.98 kB / 1.248 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.2835, allocations: 3.938 kB / 1.248 GB, free: 3.523 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.865e-05/0.2836, allocations: 99.27 kB / 1.248 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2836, allocations: 0 / 1.248 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002753/0.2838, allocations: 39.88 kB / 1.248 GB, free: 3.387 MB / 0.9981 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.0007877/0.2846, allocations: 0.8073 MB / 1.249 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002251/0.2849, allocations: 68.27 kB / 1.249 GB, free: 2.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2849, allocations: 0 / 1.249 GB, free: 2.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.715e-05/0.285, allocations: 36.08 kB / 1.249 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.2852, allocations: 16.2 kB / 1.249 GB, free: 2.449 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.2868, allocations: 1.499 MB / 1.25 GB, free: 0.8555 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.2871, allocations: 0.6885 MB / 1.251 GB, free: 144 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.407e-05/0.2872, allocations: 7.984 kB / 1.251 GB, free: 136 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.147e-05/0.2872, allocations: 23.38 kB / 1.251 GB, free: 112 kB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.2872, allocations: 0 / 1.251 GB, free: 112 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.148/1.435, allocations: 2.643 MB / 1.253 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.536/10.97, allocations: 2.312 kB / 1.253 GB, free: 14.36 MB / 0.9981 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=400 --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