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.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.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.004975/0.004975, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001179/0.001179, allocations: 195.1 kB / 16.68 MB, free: 5.926 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.642/2.642, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 67.89 kB / 1.054 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9087/0.9102, allocations: 157.4 MB / 1.207 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.003297/0.9136, allocations: 1.506 MB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.9151, allocations: 0.7245 MB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.292e-05/0.9151, allocations: 0 / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.806e-05/0.9152, allocations: 3.938 kB / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.443e-05/0.9153, allocations: 19.86 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006434/0.9159, allocations: 119.6 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.9161, allocations: 75.83 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.314e-05/0.9162, allocations: 19.92 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.041e-05/0.9163, allocations: 35.86 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.464e-05/0.9164, allocations: 39.83 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.9164, allocations: 4 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.9166, allocations: 99.91 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.802e-05/0.9166, allocations: 19.92 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.9167, allocations: 27.86 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.917, allocations: 137.9 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.917, allocations: 3.984 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.763e-06/0.917, allocations: 0 / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.917, allocations: 3.938 kB / 1.21 GB, free: 10.72 MB / 0.9356 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.0007508/0.9178, allocations: 420.9 kB / 1.21 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.9178, allocations: 12.03 kB / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.497e-05/0.9179, allocations: 38.73 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.512e-05/0.9179, allocations: 8.844 kB / 1.21 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.9181, allocations: 176.2 kB / 1.211 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.9181, allocations: 4.375 kB / 1.211 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.9182, allocations: 4.375 kB / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.9184, allocations: 73.72 kB / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.098e-06/0.9184, allocations: 3.938 kB / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.9184, allocations: 0 / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.9184, allocations: 0 / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.9186, allocations: 47.97 kB / 1.211 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007415/0.9193, allocations: 308.7 kB / 1.211 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.9195, allocations: 54.48 kB / 1.211 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.783e-05/0.9196, allocations: 36.97 kB / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.9196, allocations: 0 / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.9199, allocations: 83.34 kB / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.893e-06/0.9199, allocations: 0 / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004595/0.9204, allocations: 133.6 kB / 1.211 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.9204, allocations: 55.34 kB / 1.211 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.9206, allocations: 129.7 kB / 1.212 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.9206, allocations: 29.7 kB / 1.212 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.93e-05/0.9207, allocations: 88.14 kB / 1.212 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.81e-05/0.9207, allocations: 15.8 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.9208, allocations: 25.72 kB / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.9209, allocations: 322.8 kB / 1.212 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.418e-05/0.921, allocations: 27.98 kB / 1.212 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.9212, allocations: 50.55 kB / 1.212 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.9213, allocations: 78.47 kB / 1.212 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.9213, allocations: 0 / 1.212 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002672/0.9216, allocations: 109.9 kB / 1.212 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.9216, allocations: 8 kB / 1.212 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.9217, allocations: 0 / 1.212 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.9217, allocations: 11.92 kB / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.9218, allocations: 8 kB / 1.212 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.9218, allocations: 4.062 kB / 1.212 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.372e-05/0.9219, allocations: 15.91 kB / 1.212 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.9219, allocations: 4 kB / 1.212 GB, free: 8.121 MB / 0.9356 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.000109/0.922, allocations: 125.7 kB / 1.212 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.922, allocations: 7.906 kB / 1.212 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.957e-05/0.9221, allocations: 8.375 kB / 1.212 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.9221, allocations: 11.92 kB / 1.212 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.9221, allocations: 0 / 1.212 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.9221, allocations: 0 / 1.212 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005092/0.9226, allocations: 382.5 kB / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.9226, allocations: 0 / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.226e-05/0.9227, allocations: 7.938 kB / 1.213 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.9227, allocations: 4 kB / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.9227, allocations: 0 / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.9227, allocations: 7.938 kB / 1.213 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.9227, allocations: 3.984 kB / 1.213 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.923, allocations: 203.4 kB / 1.213 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.9231, allocations: 85.02 kB / 1.213 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.489e-05/0.9231, allocations: 0 / 1.213 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.592e-05/0.9232, allocations: 15.92 kB / 1.213 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.9233, allocations: 0 / 1.213 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.9233, allocations: 7.984 kB / 1.213 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.56e-05/0.9234, allocations: 91.28 kB / 1.213 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9234, allocations: 0 / 1.213 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003149/0.9237, allocations: 39.92 kB / 1.213 GB, free: 7.035 MB / 0.9356 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.0008194/0.9245, allocations: 0.8166 MB / 1.214 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002454/0.9248, allocations: 71.89 kB / 1.214 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.9248, allocations: 128 / 1.214 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.837e-05/0.9249, allocations: 43.97 kB / 1.214 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.9252, allocations: 10.36 kB / 1.214 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.9269, allocations: 1.48 MB / 1.216 GB, free: 4.512 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.9272, allocations: 0.6885 MB / 1.216 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.832e-05/0.9273, allocations: 4 kB / 1.216 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.218e-05/0.9273, allocations: 23.42 kB / 1.216 GB, free: 3.77 MB / 0.9356 GB Notification: Performance of SimCode: time 5.01e-07/0.9273, allocations: 0 / 1.216 GB, free: 3.77 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.9468, allocations: 2.684 MB / 1.219 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.92, allocations: 12.03 kB / 1.219 GB, free: 1.223 MB / 0.9356 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