Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.00135/0.00135, 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.001566/0.001566, allocations: 197.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.33/1.33, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.65/2.65, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 63.64 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2799, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002581/0.2825, allocations: 1.564 MB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2838, allocations: 0.74 MB / 1.054 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.493e-05/0.2838, allocations: 0 / 1.054 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.265e-05/0.2839, allocations: 0 / 1.054 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.981e-05/0.284, allocations: 15.86 kB / 1.054 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004823/0.2845, allocations: 103.8 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.355e-05/0.2846, allocations: 67.84 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.852e-05/0.2846, allocations: 8 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.332e-05/0.2847, allocations: 43.83 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.736e-05/0.2848, allocations: 23.91 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.2848, allocations: 4 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.285, allocations: 95.84 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.2851, allocations: 19.91 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.58e-05/0.2851, allocations: 27.86 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.2853, allocations: 139.9 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2853, allocations: 0 / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2853, allocations: 4 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.2854, allocations: 3.938 kB / 1.055 GB, free: 5.344 MB / 0.8106 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.0005906/0.2859, allocations: 413 kB / 1.055 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.286, allocations: 11.97 kB / 1.055 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.653e-05/0.286, allocations: 34.75 kB / 1.055 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.187e-05/0.2861, allocations: 16.78 kB / 1.055 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.2863, allocations: 180.2 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.2863, allocations: 384 / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.2863, allocations: 4.375 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.2865, allocations: 81.77 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.2865, allocations: 0 / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.2865, allocations: 0 / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2866, allocations: 0 / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.2867, allocations: 35.97 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005736/0.2873, allocations: 320.7 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.2874, allocations: 46.55 kB / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.475e-05/0.2875, allocations: 32.97 kB / 1.056 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.2875, allocations: 3.984 kB / 1.056 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.2877, allocations: 87.31 kB / 1.056 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.2877, allocations: 0 / 1.056 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003792/0.2881, allocations: 133.6 kB / 1.056 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.2881, allocations: 55.41 kB / 1.056 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.213e-05/0.2882, allocations: 129.8 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.2883, allocations: 25.7 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.2883, allocations: 92.05 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.2883, allocations: 11.84 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.2884, allocations: 33.7 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.2885, allocations: 322.8 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.255e-05/0.2886, allocations: 23.98 kB / 1.057 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.449e-05/0.2887, allocations: 50.55 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.2889, allocations: 82.73 kB / 1.057 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2889, allocations: 0 / 1.057 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002482/0.2891, allocations: 117.5 kB / 1.057 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.2891, allocations: 4 kB / 1.057 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2892, allocations: 0 / 1.057 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.2892, allocations: 4 kB / 1.057 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.704e-05/0.2893, allocations: 15.92 kB / 1.057 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.2893, allocations: 4.062 kB / 1.057 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.2894, allocations: 7.906 kB / 1.057 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.2894, allocations: 11.98 kB / 1.057 GB, free: 2.742 MB / 0.8106 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.843e-05/0.2895, allocations: 117.8 kB / 1.057 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.8e-05/0.2895, allocations: 7.906 kB / 1.057 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.2895, allocations: 8.375 kB / 1.057 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2895, allocations: 3.938 kB / 1.057 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2896, allocations: 8 kB / 1.057 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2896, allocations: 0 / 1.057 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005422/0.2901, allocations: 382.4 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.2901, allocations: 0 / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.262e-05/0.2902, allocations: 7.984 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2902, allocations: 0 / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.2902, allocations: 0 / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2902, allocations: 3.938 kB / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2902, allocations: 0 / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.2906, allocations: 223.3 kB / 1.058 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-05/0.2906, allocations: 77.11 kB / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.2906, allocations: 4 kB / 1.058 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.192e-05/0.2907, allocations: 7.922 kB / 1.058 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.2908, allocations: 8 kB / 1.058 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.2908, allocations: 4 kB / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.747e-05/0.2908, allocations: 95.27 kB / 1.058 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2909, allocations: 0 / 1.058 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002989/0.2912, allocations: 47.83 kB / 1.058 GB, free: 1.656 MB / 0.8106 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.000751/0.2919, allocations: 0.7962 MB / 1.059 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002175/0.2921, allocations: 76.23 kB / 1.059 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2922, allocations: 0 / 1.059 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.2924, allocations: 35.92 kB / 1.059 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002506/0.2926, allocations: 15.86 kB / 1.059 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.2945, allocations: 1.49 MB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.2948, allocations: 0.6926 MB / 1.061 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.81e-05/0.2949, allocations: 4 kB / 1.061 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.878e-05/0.2949, allocations: 19.42 kB / 1.061 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.2949, allocations: 0 / 1.061 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01281/0.3077, allocations: 2.415 MB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.308, allocations: 268.8 kB / 1.064 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/1.899, allocations: 1.875 kB / 1.064 GB, free: 11.78 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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