Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.009354/0.009354, allocations: 99.31 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.001791/0.001791, allocations: 186.3 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.562/1.562, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.796/2.796, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 1.054 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3149, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.00279/0.3177, allocations: 1.502 MB / 1.209 GB, free: 8.688 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001562/0.3193, allocations: 0.721 MB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.786e-05/0.3194, allocations: 8 kB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.602e-05/0.3195, allocations: 11.86 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.468e-05/0.3196, allocations: 3.938 kB / 1.209 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008475/0.3205, allocations: 131.5 kB / 1.21 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001664/0.3206, allocations: 71.77 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3208, allocations: 19.94 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.3209, allocations: 31.92 kB / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.947e-05/0.321, allocations: 43.81 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.321, allocations: 8 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002629/0.3213, allocations: 95.84 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.283e-05/0.3213, allocations: 19.92 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.52e-05/0.3214, allocations: 35.8 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003821/0.3218, allocations: 147.9 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3218, allocations: 0 / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.014e-06/0.3218, allocations: 0 / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.3218, allocations: 0 / 1.21 GB, free: 7.344 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.0008797/0.3227, allocations: 413 kB / 1.21 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.3228, allocations: 12.56 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.639e-05/0.3228, allocations: 34.73 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.3229, allocations: 8.844 kB / 1.21 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.3231, allocations: 176.2 kB / 1.211 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.3231, allocations: 4.375 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.3231, allocations: 4.375 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.3234, allocations: 69.78 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3234, allocations: 7.938 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.3234, allocations: 11.97 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.3234, allocations: 0 / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.3235, allocations: 35.92 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00069/0.3242, allocations: 320.7 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.3244, allocations: 50.56 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.781e-05/0.3245, allocations: 28.97 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.3245, allocations: 4 kB / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.3248, allocations: 79.31 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.3248, allocations: 0 / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004051/0.3252, allocations: 133.6 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.3253, allocations: 55.39 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.3254, allocations: 125.7 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.3254, allocations: 29.7 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.892e-05/0.3255, allocations: 92.12 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.3256, allocations: 23.81 kB / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-05/0.3256, allocations: 29.7 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3258, allocations: 314.8 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.589e-05/0.3259, allocations: 35.97 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.326, allocations: 50.5 kB / 1.212 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.3262, allocations: 66.55 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3262, allocations: 4 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002542/0.3265, allocations: 113.5 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.3265, allocations: 8 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3265, allocations: 0 / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3265, allocations: 3.938 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.3266, allocations: 15.92 kB / 1.212 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3267, allocations: 4 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.87e-05/0.3267, allocations: 7.938 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.3268, allocations: 8.062 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.0001088/0.3269, allocations: 124 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.3269, allocations: 3.906 kB / 1.212 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.3269, allocations: 16.36 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3269, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.327, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.327, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004768/0.3274, allocations: 390.7 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3275, allocations: 0 / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.75e-05/0.3275, allocations: 4 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3275, allocations: 4 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3275, allocations: 3.984 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3275, allocations: 3.938 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3275, allocations: 80 / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002584/0.3278, allocations: 219.3 kB / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.3278, allocations: 81.02 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.3279, allocations: 3.984 kB / 1.213 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.684e-05/0.328, allocations: 7.938 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.328, allocations: 11.98 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.328, allocations: 0 / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.154e-05/0.3281, allocations: 95.27 kB / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3281, allocations: 0 / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000291/0.3284, allocations: 36 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.0008436/0.3292, allocations: 0.8147 MB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.3295, allocations: 71.95 kB / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3295, allocations: 0 / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.273e-05/0.3296, allocations: 35.92 kB / 1.214 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.3299, allocations: 13.19 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.001638/0.3315, allocations: 1.49 MB / 1.216 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.3318, allocations: 0.6885 MB / 1.216 GB, free: 428 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.962e-05/0.3319, allocations: 4.453 kB / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.566e-05/0.3319, allocations: 21.94 kB / 1.216 GB, free: 404 kB / 0.9669 GB Notification: Performance of SimCode: time 2.7e-07/0.3319, allocations: 4 kB / 1.216 GB, free: 400 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.3494, allocations: 2.681 MB / 1.219 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.076, allocations: 7.875 kB / 1.219 GB, free: 13.85 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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