Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.000762/0.0007619, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004532/0.004532, allocations: 170 kB / 16.27 MB, free: 6.328 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.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.517/2.517, allocations: 462.7 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003029, allocations: 12.38 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2369, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.001468/0.2384, allocations: 1.237 MB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.2396, allocations: 0.7091 MB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.192e-05/0.2396, allocations: 3.938 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.78e-05/0.2397, allocations: 7.922 kB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.423e-05/0.2397, allocations: 7.922 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.2402, allocations: 107.8 kB / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.17e-05/0.2403, allocations: 67.78 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.175e-05/0.2403, allocations: 15.98 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.721e-05/0.2404, allocations: 27.91 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.253e-05/0.2405, allocations: 31.84 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.2405, allocations: 4 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.2407, allocations: 91.84 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.349e-05/0.2407, allocations: 23.91 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.053e-05/0.2408, allocations: 53.56 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.241, allocations: 135.9 kB / 1.061 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.241, allocations: 0 / 1.061 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.61e-07/0.241, allocations: 0 / 1.061 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.567e-06/0.241, allocations: 0 / 1.061 GB, free: 2.355 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.0005057/0.2415, allocations: 405 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.2416, allocations: 15.97 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.468e-05/0.2416, allocations: 34.75 kB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.926e-05/0.2417, allocations: 8.922 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.2418, allocations: 172.2 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.2418, allocations: 12.38 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.2418, allocations: 4.375 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.242, allocations: 73.72 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.242, allocations: 0 / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.242, allocations: 0 / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.242, allocations: 4 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.2422, allocations: 55.84 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000554/0.2427, allocations: 320.7 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.2429, allocations: 58.48 kB / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.471e-05/0.243, allocations: 36.97 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.243, allocations: 0 / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001761/0.2432, allocations: 79.38 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2432, allocations: 0 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003832/0.2436, allocations: 153.5 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.2436, allocations: 55.41 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.024e-05/0.2437, allocations: 121.8 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.2437, allocations: 33.7 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.2438, allocations: 84.14 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.2438, allocations: 23.73 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.2439, allocations: 13.72 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.939e-05/0.244, allocations: 322.8 kB / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.882e-05/0.2441, allocations: 31.98 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.2442, allocations: 50.56 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.2443, allocations: 82.48 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2443, allocations: 0 / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002508/0.2446, allocations: 121.5 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2446, allocations: 5.406 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2446, allocations: 0 / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.928e-06/0.2446, allocations: 0 / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.002e-05/0.2447, allocations: 15.98 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2448, allocations: 4.453 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.581e-05/0.2448, allocations: 4 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.2448, allocations: 7.938 kB / 1.064 GB, free: 15.74 MB / 0.8262 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 8.506e-05/0.2449, allocations: 132.3 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.593e-05/0.245, allocations: 7.906 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.288e-05/0.245, allocations: 8.375 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.245, allocations: 0 / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.245, allocations: 4 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.245, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004431/0.2455, allocations: 394.4 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2455, allocations: 3.938 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.062e-05/0.2455, allocations: 7.984 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2455, allocations: 0 / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.2455, allocations: 4 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2455, allocations: 3.938 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2456, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.2458, allocations: 219.4 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.174e-05/0.2459, allocations: 89 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.2459, allocations: 7.938 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.998e-05/0.246, allocations: 7.938 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.544e-05/0.246, allocations: 7.984 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.2461, allocations: 8 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.662e-05/0.2461, allocations: 95.27 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2461, allocations: 0 / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002861/0.2464, allocations: 39.98 kB / 1.065 GB, free: 14.62 MB / 0.8262 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.0006919/0.2471, allocations: 0.7976 MB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000223/0.2473, allocations: 83.89 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2474, allocations: 3.938 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.408e-05/0.2475, allocations: 35.98 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.2477, allocations: 15.91 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.2492, allocations: 1.521 MB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.2494, allocations: 0.6809 MB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.39e-05/0.2495, allocations: 7.984 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.201e-05/0.2495, allocations: 23.44 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2495, allocations: 0 / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0759/0.3254, allocations: 2.328 MB / 1.07 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002883/0.3257, allocations: 270.4 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/1.973, allocations: 4 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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