Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.001306/0.001306, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001388/0.001387, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.338/1.338, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.558/2.558, allocations: 461.8 MB / 0.7342 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 64.69 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2527, allocations: 157.4 MB / 1.052 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.00247/0.2552, allocations: 1.577 MB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001117/0.2564, allocations: 0.7323 MB / 1.054 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.349e-05/0.2564, allocations: 3.938 kB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.032e-05/0.2565, allocations: 0 / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.796e-05/0.2565, allocations: 11.86 kB / 1.054 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004205/0.257, allocations: 103.8 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.754e-05/0.2571, allocations: 67.83 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.473e-05/0.2571, allocations: 19.98 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.124e-05/0.2572, allocations: 23.92 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.694e-05/0.2573, allocations: 39.83 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.2573, allocations: 4 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001592/0.2575, allocations: 91.84 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.2575, allocations: 15.92 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.637e-05/0.2576, allocations: 27.86 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.2577, allocations: 139.9 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2578, allocations: 0 / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.51e-07/0.2578, allocations: 0 / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.2578, allocations: 4 kB / 1.055 GB, free: 5.395 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.0005203/0.2583, allocations: 421 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.2583, allocations: 11.97 kB / 1.055 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/0.2584, allocations: 34.69 kB / 1.055 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.2584, allocations: 12.83 kB / 1.055 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.675e-05/0.2585, allocations: 172.2 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.2585, allocations: 12.31 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.2586, allocations: 4.375 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.2587, allocations: 69.78 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.64e-06/0.2587, allocations: 0 / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.2588, allocations: 4 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2588, allocations: 4 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.2589, allocations: 43.84 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005193/0.2594, allocations: 308.8 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.2596, allocations: 54.55 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.3e-05/0.2596, allocations: 28.97 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.2597, allocations: 8.062 kB / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/0.2598, allocations: 79.31 kB / 1.056 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.2598, allocations: 0 / 1.056 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003506/0.2602, allocations: 137.5 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.2602, allocations: 51.41 kB / 1.056 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.467e-05/0.2603, allocations: 125.8 kB / 1.056 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.2603, allocations: 29.7 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.129e-05/0.2604, allocations: 92.05 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.2604, allocations: 23.81 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.216e-05/0.2605, allocations: 25.72 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2606, allocations: 322.8 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.647e-05/0.2606, allocations: 27.98 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.425e-05/0.2607, allocations: 50.48 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.2609, allocations: 70.56 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2609, allocations: 0 / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002177/0.2611, allocations: 113.5 kB / 1.057 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2611, allocations: 8 kB / 1.057 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.2612, allocations: 0 / 1.057 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.2612, allocations: 4 kB / 1.057 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.907e-05/0.2613, allocations: 15.92 kB / 1.057 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.2613, allocations: 8.062 kB / 1.057 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.439e-05/0.2613, allocations: 15.83 kB / 1.057 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.2614, allocations: 400 / 1.057 GB, free: 2.797 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 8.387e-05/0.2615, allocations: 129 kB / 1.057 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.2615, allocations: 3.906 kB / 1.057 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.216e-05/0.2615, allocations: 8.375 kB / 1.057 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2615, allocations: 3.984 kB / 1.057 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2615, allocations: 0 / 1.057 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.2615, allocations: 7.984 kB / 1.057 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003991/0.2619, allocations: 390.3 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2619, allocations: 0 / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.709e-05/0.262, allocations: 4 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.262, allocations: 3.938 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.262, allocations: 4 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.262, allocations: 3.938 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.262, allocations: 0 / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.2623, allocations: 215.3 kB / 1.058 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.2623, allocations: 81.11 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.2623, allocations: 0 / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.707e-05/0.2624, allocations: 11.92 kB / 1.058 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.2625, allocations: 4 kB / 1.058 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.2625, allocations: 3.984 kB / 1.058 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.022e-05/0.2625, allocations: 95.28 kB / 1.058 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2625, allocations: 4 kB / 1.058 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002632/0.2628, allocations: 39.89 kB / 1.058 GB, free: 1.707 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.0006663/0.2635, allocations: 0.7952 MB / 1.059 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002025/0.2637, allocations: 67.91 kB / 1.059 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2637, allocations: 0 / 1.059 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.074e-05/0.2638, allocations: 47.84 kB / 1.059 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.264, allocations: 7.938 kB / 1.059 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.2654, allocations: 1.502 MB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.2656, allocations: 0.6862 MB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.561e-05/0.2657, allocations: 7.984 kB / 1.061 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.597e-05/0.2657, allocations: 19.44 kB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2657, allocations: 0 / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.2915, allocations: 2.421 MB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.2917, allocations: 275 kB / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/1.887, allocations: 2.109 kB / 1.064 GB, free: 11.81 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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