Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_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.006884/0.006884, allocations: 96.84 kB / 15.73 MB, free: 6.047 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.001349/0.001349, allocations: 192.8 kB / 16.67 MB, free: 5.957 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.2/2.2, allocations: 390.3 MB / 0.6648 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 63.91 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9342/0.9358, allocations: 140.4 MB / 1.087 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.004166/0.94, allocations: 1.503 MB / 1.089 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001879/0.9419, allocations: 0.7196 MB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.683e-05/0.942, allocations: 5.062 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.198e-05/0.9421, allocations: 5.062 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.791e-05/0.9421, allocations: 10.7 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007083/0.9429, allocations: 132.7 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.943, allocations: 73.58 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.9432, allocations: 11.3 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.9433, allocations: 34.94 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.9434, allocations: 33.31 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.9434, allocations: 6.438 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002873/0.9437, allocations: 97.84 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.59e-05/0.9438, allocations: 23.98 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.261e-05/0.9439, allocations: 34.55 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.9442, allocations: 140.8 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.9443, allocations: 5 kB / 1.09 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.714e-06/0.9443, allocations: 0 / 1.09 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.9443, allocations: 0 / 1.09 GB, free: 3.453 MB / 0.8575 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.0008904/0.9452, allocations: 418.4 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 8.245e-05/0.9453, allocations: 14.47 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.141e-05/0.9453, allocations: 36.81 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.486e-05/0.9454, allocations: 13.09 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.9456, allocations: 169.4 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.9456, allocations: 3.469 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.468e-05/0.9457, allocations: 4.172 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.946, allocations: 72.39 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.9461, allocations: 4 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.9461, allocations: 1.578 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.9461, allocations: 1.062 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.9463, allocations: 44.12 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008559/0.9472, allocations: 318.2 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.9474, allocations: 50.28 kB / 1.091 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.9475, allocations: 31.94 kB / 1.091 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.9475, allocations: 6.062 kB / 1.091 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003634/0.9479, allocations: 79.98 kB / 1.091 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.9479, allocations: 1.062 kB / 1.091 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004908/0.9484, allocations: 137.1 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.9485, allocations: 53.64 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.9486, allocations: 123.5 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.9486, allocations: 31.05 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.55e-05/0.9487, allocations: 92.11 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/0.9487, allocations: 15.94 kB / 1.092 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.695e-05/0.9488, allocations: 33.09 kB / 1.092 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.669e-05/0.9488, allocations: 319.3 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.9489, allocations: 31.55 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.9491, allocations: 49.75 kB / 1.092 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.9493, allocations: 69.16 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.9493, allocations: 0 / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002793/0.9495, allocations: 108.6 kB / 1.092 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.9496, allocations: 10.22 kB / 1.092 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.9496, allocations: 1.094 kB / 1.092 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.9496, allocations: 5.812 kB / 1.092 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.9497, allocations: 10.41 kB / 1.092 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/0.9498, allocations: 2.172 kB / 1.092 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.506e-05/0.9498, allocations: 14 kB / 1.092 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.9499, allocations: 11.25 kB / 1.092 GB, free: 1.422 MB / 0.8575 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 7.128e-05/0.9499, allocations: 122.2 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.95, allocations: 11.8 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.95, allocations: 10.08 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.95, allocations: 1.469 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.95, allocations: 0.7969 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.95, allocations: 4.688 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.9504, allocations: 378.6 kB / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.9505, allocations: 0 / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.097e-05/0.9505, allocations: 5.5 kB / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.9505, allocations: 6.141 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.9505, allocations: 0.6094 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.9505, allocations: 5.516 kB / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.9505, allocations: 0 / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.9508, allocations: 219.5 kB / 1.093 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.232e-05/0.9508, allocations: 83.88 kB / 1.093 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.9509, allocations: 6.578 kB / 1.093 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.812e-05/0.951, allocations: 12.09 kB / 1.093 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.035e-05/0.951, allocations: 8.297 kB / 1.093 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.951, allocations: 3.875 kB / 1.093 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.215e-05/0.9511, allocations: 95.81 kB / 1.093 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.01e-07/0.9511, allocations: 0 / 1.093 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003306/0.9514, allocations: 42.59 kB / 1.093 GB, free: 0.5586 MB / 0.8575 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.0008359/0.9523, allocations: 0.8024 MB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002964/0.9526, allocations: 72.59 kB / 1.094 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.9526, allocations: 128 / 1.094 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.9527, allocations: 38.03 kB / 1.094 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.953, allocations: 12.64 kB / 1.094 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.955, allocations: 1.494 MB / 1.096 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.9552, allocations: 0.6861 MB / 1.096 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.057e-05/0.9553, allocations: 9.062 kB / 1.096 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.31e-05/0.9554, allocations: 20.73 kB / 1.097 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of SimCode: time 4.91e-07/0.9554, allocations: 0.875 kB / 1.097 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02034/0.9757, allocations: 2.665 MB / 1.099 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/9.071, allocations: 11.67 kB / 1.099 GB, free: 13.3 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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