Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.000868/0.0008683, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.00721/0.007211, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.421/1.421, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.627/2.627, allocations: 443.4 MB / 0.7176 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003932, allocations: 8.781 kB / 0.8797 GB, free: 41.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3262, allocations: 155.2 MB / 1.031 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.001821/0.3281, allocations: 1.218 MB / 1.032 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.3293, allocations: 0.7368 MB / 1.033 GB, free: 2.234 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.215e-05/0.3294, allocations: 0 / 1.033 GB, free: 2.234 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.232e-05/0.3294, allocations: 7.922 kB / 1.033 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.356e-05/0.3295, allocations: 3.938 kB / 1.033 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.3299, allocations: 99.77 kB / 1.033 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.33, allocations: 71.78 kB / 1.033 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.441e-05/0.3301, allocations: 16.27 kB / 1.033 GB, free: 2.039 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.621e-05/0.3302, allocations: 35.84 kB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.309e-05/0.3303, allocations: 31.84 kB / 1.033 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.3303, allocations: 0 / 1.033 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.3305, allocations: 91.91 kB / 1.033 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.598e-05/0.3305, allocations: 15.91 kB / 1.034 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.074e-05/0.3306, allocations: 57.56 kB / 1.034 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.3308, allocations: 139.5 kB / 1.034 GB, free: 1.668 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.3308, allocations: 3.938 kB / 1.034 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3308, allocations: 0 / 1.034 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.596e-06/0.3308, allocations: 4 kB / 1.034 GB, free: 1.66 MB / 0.7794 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.0005584/0.3314, allocations: 401.1 kB / 1.034 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3314, allocations: 12.03 kB / 1.034 GB, free: 1.203 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.899e-05/0.3315, allocations: 30.75 kB / 1.034 GB, free: 1.164 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.645e-05/0.3315, allocations: 8.844 kB / 1.034 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.3316, allocations: 176.2 kB / 1.034 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.3317, allocations: 4.375 kB / 1.034 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.3317, allocations: 8.375 kB / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.3319, allocations: 77.77 kB / 1.034 GB, free: 0.8516 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.3319, allocations: 3.938 kB / 1.034 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3319, allocations: 0 / 1.034 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3319, allocations: 0 / 1.034 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.3321, allocations: 47.97 kB / 1.034 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005996/0.3327, allocations: 316.7 kB / 1.035 GB, free: 452 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.3328, allocations: 58.55 kB / 1.035 GB, free: 384 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.053e-05/0.3329, allocations: 40.91 kB / 1.035 GB, free: 340 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.333, allocations: 0 / 1.035 GB, free: 340 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.3332, allocations: 75.38 kB / 1.035 GB, free: 252 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3332, allocations: 3.938 kB / 1.035 GB, free: 248 kB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003901/0.3336, allocations: 149.7 kB / 1.035 GB, free: 92 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.3336, allocations: 51.41 kB / 1.035 GB, free: 28 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.3337, allocations: 129.7 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.3338, allocations: 29.64 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.746e-05/0.3338, allocations: 96.08 kB / 1.035 GB, free: 15.76 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.3339, allocations: 15.81 kB / 1.035 GB, free: 15.74 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.3339, allocations: 21.7 kB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.334, allocations: 322.8 kB / 1.036 GB, free: 15.39 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.167e-05/0.3341, allocations: 31.98 kB / 1.036 GB, free: 15.36 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.878e-05/0.3342, allocations: 46.56 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.3344, allocations: 82.48 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3344, allocations: 0 / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002322/0.3346, allocations: 125.5 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.3346, allocations: 9.562 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.3346, allocations: 0 / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-06/0.3347, allocations: 0 / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.645e-05/0.3347, allocations: 15.98 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3348, allocations: 400 / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.159e-05/0.3348, allocations: 4 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.3348, allocations: 4 kB / 1.036 GB, free: 15.05 MB / 0.795 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.537e-05/0.3349, allocations: 139.2 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.335, allocations: 15.78 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.279e-05/0.335, allocations: 8.359 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.335, allocations: 8 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.335, allocations: 0 / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.335, allocations: 3.938 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004091/0.3354, allocations: 386.5 kB / 1.037 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3354, allocations: 4 kB / 1.037 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.98e-05/0.3355, allocations: 7.984 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3355, allocations: 0 / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.3355, allocations: 0 / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3355, allocations: 7.875 kB / 1.037 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3355, allocations: 0 / 1.037 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.3358, allocations: 219.4 kB / 1.037 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.021e-05/0.3358, allocations: 89 kB / 1.037 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.3359, allocations: 0 / 1.037 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.583e-05/0.336, allocations: 7.938 kB / 1.037 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.336, allocations: 7.984 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.336, allocations: 0 / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.838e-05/0.3361, allocations: 103.3 kB / 1.037 GB, free: 13.97 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3361, allocations: 0 / 1.037 GB, free: 13.97 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002716/0.3364, allocations: 39.98 kB / 1.037 GB, free: 13.93 MB / 0.795 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.0007473/0.3371, allocations: 0.7968 MB / 1.038 GB, free: 13.12 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002272/0.3373, allocations: 79.88 kB / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3374, allocations: 8.125 kB / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.466e-05/0.3375, allocations: 35.98 kB / 1.038 GB, free: 13 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.3377, allocations: 7.875 kB / 1.038 GB, free: 12.99 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.3392, allocations: 1.526 MB / 1.039 GB, free: 11.36 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.3395, allocations: 0.6848 MB / 1.04 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.466e-05/0.3395, allocations: 7.984 kB / 1.04 GB, free: 10.64 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.052e-05/0.3396, allocations: 19.44 kB / 1.04 GB, free: 10.63 MB / 0.795 GB Notification: Performance of SimCode: time 3.9e-07/0.3396, allocations: 0 / 1.04 GB, free: 10.63 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01114/0.3507, allocations: 2.342 MB / 1.042 GB, free: 8.465 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/0.3509, allocations: 269.3 kB / 1.043 GB, free: 8.105 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/2.186, allocations: 0 / 1.043 GB, free: 8.105 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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