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.008048/0.008048, allocations: 101.2 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.001646/0.001646, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.787/2.787, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 63.89 kB / 1.054 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3441, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002938/0.3471, allocations: 1.492 MB / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.3483, allocations: 0.7326 MB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.512e-05/0.3484, allocations: 3.938 kB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.69e-05/0.3485, allocations: 7.938 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.95e-05/0.3485, allocations: 11.88 kB / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006836/0.3492, allocations: 123.6 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001398/0.3494, allocations: 75.77 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.3495, allocations: 11.95 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.3496, allocations: 35.91 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.817e-05/0.3497, allocations: 43.83 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.3497, allocations: 4 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002147/0.35, allocations: 99.84 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.031e-05/0.35, allocations: 23.91 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.101e-05/0.3501, allocations: 31.86 kB / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.3503, allocations: 143.8 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3503, allocations: 0 / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3504, allocations: 0 / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.3504, allocations: 0 / 1.21 GB, free: 7.352 MB / 0.9669 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.0006668/0.351, allocations: 417 kB / 1.21 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3511, allocations: 12.62 kB / 1.21 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.865e-05/0.3511, allocations: 30.75 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.331e-05/0.3512, allocations: 8.844 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.3513, allocations: 180.2 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.3514, allocations: 4.359 kB / 1.211 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.3514, allocations: 4.375 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.3516, allocations: 73.78 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3516, allocations: 0 / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.3516, allocations: 7.938 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3516, allocations: 3.938 kB / 1.211 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.3518, allocations: 43.97 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006798/0.3525, allocations: 312.7 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.3527, allocations: 46.56 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.432e-05/0.3528, allocations: 32.97 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.3528, allocations: 3.984 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.353, allocations: 79.31 kB / 1.211 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.353, allocations: 0 / 1.211 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004026/0.3534, allocations: 137.7 kB / 1.211 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.3535, allocations: 59.41 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.75e-05/0.3536, allocations: 121.8 kB / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3536, allocations: 29.7 kB / 1.212 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.257e-05/0.3537, allocations: 96.06 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.3537, allocations: 15.75 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.3538, allocations: 33.64 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001931/0.354, allocations: 322.8 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.903e-05/0.3541, allocations: 31.98 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.208e-05/0.3542, allocations: 46.94 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.3543, allocations: 70.55 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3543, allocations: 0 / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002529/0.3546, allocations: 121.8 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3546, allocations: 7.938 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.3546, allocations: 0 / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3547, allocations: 4 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.214e-05/0.3548, allocations: 15.92 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3548, allocations: 80 / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.422e-05/0.3548, allocations: 4 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.3549, allocations: 11.98 kB / 1.212 GB, free: 4.754 MB / 0.9669 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.0001115/0.355, allocations: 125.8 kB / 1.212 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.355, allocations: 7.906 kB / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.66e-05/0.355, allocations: 8.375 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3551, allocations: 4 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3551, allocations: 3.938 kB / 1.212 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3551, allocations: 0 / 1.212 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004572/0.3555, allocations: 374.4 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3556, allocations: 4 kB / 1.213 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.236e-05/0.3556, allocations: 7.984 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3556, allocations: 0 / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.3556, allocations: 0 / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.3556, allocations: 3.938 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3556, allocations: 4 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.356, allocations: 215.3 kB / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.711e-05/0.3561, allocations: 89.02 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.3561, allocations: 0 / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.023e-05/0.3562, allocations: 11.94 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.3563, allocations: 7.984 kB / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.3563, allocations: 4 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.519e-05/0.3564, allocations: 91.27 kB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3564, allocations: 0 / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004474/0.3568, allocations: 39.98 kB / 1.213 GB, free: 3.668 MB / 0.9669 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.001059/0.3579, allocations: 0.8085 MB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002848/0.3582, allocations: 83.88 kB / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3582, allocations: 0 / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.3583, allocations: 31.98 kB / 1.214 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.3586, allocations: 18.53 kB / 1.214 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.3603, allocations: 1.493 MB / 1.216 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3606, allocations: 0.6857 MB / 1.216 GB, free: 432 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.868e-05/0.3606, allocations: 7.984 kB / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.3607, allocations: 19.44 kB / 1.216 GB, free: 404 kB / 0.9669 GB Notification: Performance of SimCode: time 5.21e-07/0.3607, allocations: 0 / 1.216 GB, free: 404 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.3826, allocations: 2.689 MB / 1.219 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.865/8.247, allocations: 11.91 kB / 1.219 GB, free: 13.84 MB / 0.9825 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