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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008164/0.0008164, allocations: 98.11 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.005422/0.005422, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 390.9 MB / 0.6664 GB, free: 2.441 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003079, allocations: 19.98 kB / 0.8161 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5727/0.5731, allocations: 142.4 MB / 0.9552 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.00117/0.5743, allocations: 1.209 MB / 0.9563 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009045/0.5752, allocations: 0.7224 MB / 0.9571 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.732e-05/0.5752, allocations: 3.938 kB / 0.9571 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.413e-05/0.5752, allocations: 1.469 kB / 0.9571 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.084e-05/0.5753, allocations: 9.391 kB / 0.9571 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.5757, allocations: 103.7 kB / 0.9572 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.155e-05/0.5758, allocations: 74.94 kB / 0.9572 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.053e-05/0.5758, allocations: 16.92 kB / 0.9573 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.738e-05/0.5759, allocations: 37.17 kB / 0.9573 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.576, allocations: 31.06 kB / 0.9573 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.576, allocations: 3.844 kB / 0.9573 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.5761, allocations: 90.31 kB / 0.9574 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.715e-05/0.5762, allocations: 9.141 kB / 0.9574 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.841e-05/0.5762, allocations: 58.45 kB / 0.9575 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.5764, allocations: 135.4 kB / 0.9576 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.5764, allocations: 0 / 0.9576 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.353e-06/0.5764, allocations: 5.438 kB / 0.9576 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.427e-06/0.5764, allocations: 0 / 0.9576 GB, free: 5.844 MB / 0.7169 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.0004053/0.5768, allocations: 416.5 kB / 0.958 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.5769, allocations: 11 kB / 0.958 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.815e-05/0.5769, allocations: 30.75 kB / 0.958 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.559e-05/0.5769, allocations: 8.469 kB / 0.9581 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.156e-05/0.577, allocations: 171.8 kB / 0.9582 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.577, allocations: 15.98 kB / 0.9582 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.577, allocations: 3.969 kB / 0.9582 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.5772, allocations: 71.28 kB / 0.9583 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.5772, allocations: 0 / 0.9583 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.5772, allocations: 7.984 kB / 0.9583 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.5772, allocations: 1.781 kB / 0.9583 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.5773, allocations: 45.28 kB / 0.9584 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004424/0.5778, allocations: 321.6 kB / 0.9587 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.5779, allocations: 55.25 kB / 0.9587 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.284e-05/0.578, allocations: 34.78 kB / 0.9587 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.578, allocations: 0.625 kB / 0.9587 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001482/0.5782, allocations: 76.41 kB / 0.9588 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.5782, allocations: 7.938 kB / 0.9588 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003325/0.5785, allocations: 152.8 kB / 0.959 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/0.5785, allocations: 57.98 kB / 0.959 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.101e-05/0.5786, allocations: 124.8 kB / 0.9592 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.5786, allocations: 30.83 kB / 0.9592 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.676e-05/0.5787, allocations: 94.28 kB / 0.9593 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.5787, allocations: 15 kB / 0.9593 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/0.5787, allocations: 24.86 kB / 0.9593 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.708e-05/0.5788, allocations: 317 kB / 0.9596 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.568e-05/0.5788, allocations: 29.64 kB / 0.9596 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.723e-05/0.5789, allocations: 55.17 kB / 0.9597 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.5791, allocations: 83.41 kB / 0.9598 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5791, allocations: 1.188 kB / 0.9598 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001991/0.5793, allocations: 118.8 kB / 0.9599 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.5793, allocations: 9.984 kB / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.5793, allocations: 0 / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.5793, allocations: 1.719 kB / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.7e-05/0.5794, allocations: 9.438 kB / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.5794, allocations: 3.938 kB / 0.9599 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.917e-05/0.5795, allocations: 18.05 kB / 0.9599 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.5795, allocations: 11.69 kB / 0.9599 GB, free: 3.645 MB / 0.7169 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 5.504e-05/0.5796, allocations: 118.7 kB / 0.9601 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.5796, allocations: 5.625 kB / 0.9601 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.97e-05/0.5796, allocations: 10.52 kB / 0.9601 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.5796, allocations: 1.188 kB / 0.9601 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.5796, allocations: 0 / 0.9601 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.5796, allocations: 1.188 kB / 0.9601 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003188/0.5799, allocations: 392.3 kB / 0.9604 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.58, allocations: 0 / 0.9604 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.358e-05/0.58, allocations: 4.125 kB / 0.9604 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.58, allocations: 1.375 kB / 0.9604 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.58, allocations: 3.984 kB / 0.9605 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.58, allocations: 5.312 kB / 0.9605 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.58, allocations: 0 / 0.9605 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002091/0.5802, allocations: 219.8 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.675e-05/0.5803, allocations: 82.39 kB / 0.9607 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.5803, allocations: 5.312 kB / 0.9607 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.093e-05/0.5804, allocations: 15.98 kB / 0.9608 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.5804, allocations: 6.75 kB / 0.9608 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.5804, allocations: 10.73 kB / 0.9608 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.791e-05/0.5804, allocations: 91.52 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5805, allocations: 1.375 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002515/0.5807, allocations: 39.44 kB / 0.9609 GB, free: 2.734 MB / 0.7169 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.0005386/0.5813, allocations: 0.804 MB / 0.9617 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001907/0.5815, allocations: 82.7 kB / 0.9618 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5815, allocations: 0 / 0.9618 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.41e-05/0.5816, allocations: 43.28 kB / 0.9618 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.5818, allocations: 16.36 kB / 0.9618 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.5829, allocations: 1.512 MB / 0.9633 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.583, allocations: 0.6887 MB / 0.964 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.113e-05/0.5831, allocations: 3.781 kB / 0.964 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.828e-05/0.5831, allocations: 23.05 kB / 0.964 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of SimCode: time 4.01e-07/0.5831, allocations: 0 / 0.964 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6395/1.223, allocations: 2.323 MB / 0.9663 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003126/1.223, allocations: 259.1 kB / 0.9665 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/2.837, allocations: 3.938 kB / 0.9665 GB, free: 14.44 MB / 0.7325 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