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.001611/0.001611, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001961/0.001962, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.342/1.342, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.655/2.655, allocations: 461.9 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 61.97 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3105, allocations: 157.4 MB / 1.052 GB, free: 8.207 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002407/0.3129, allocations: 1.559 MB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.314, allocations: 0.7322 MB / 1.054 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.305e-05/0.314, allocations: 4 kB / 1.054 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.327e-05/0.3141, allocations: 3.938 kB / 1.054 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.022e-05/0.3141, allocations: 15.91 kB / 1.054 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.3146, allocations: 103.8 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.407e-05/0.3147, allocations: 63.84 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.833e-05/0.3147, allocations: 11.98 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.2e-05/0.3148, allocations: 39.78 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.536e-05/0.3149, allocations: 31.91 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.3149, allocations: 4 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.3151, allocations: 91.91 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.354e-05/0.3151, allocations: 15.92 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.296e-05/0.3152, allocations: 31.84 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.3154, allocations: 143.8 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3154, allocations: 0 / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.62e-07/0.3154, allocations: 0 / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.116e-06/0.3154, allocations: 0 / 1.055 GB, free: 5.348 MB / 0.8106 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.0005599/0.316, allocations: 413 kB / 1.055 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.316, allocations: 19.97 kB / 1.055 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.514e-05/0.316, allocations: 30.75 kB / 1.055 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.3161, allocations: 16.81 kB / 1.055 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.3162, allocations: 180.2 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.3162, allocations: 384 / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.3162, allocations: 4.375 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.3164, allocations: 73.78 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.3164, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.3164, allocations: 3.938 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3165, allocations: 0 / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.3166, allocations: 39.97 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005411/0.3171, allocations: 316.8 kB / 1.056 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/0.3173, allocations: 46.55 kB / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.603e-05/0.3174, allocations: 36.97 kB / 1.056 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.3174, allocations: 3.938 kB / 1.056 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/0.3175, allocations: 75.38 kB / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.3176, allocations: 0 / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003643/0.3179, allocations: 137.6 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.318, allocations: 63.39 kB / 1.056 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.548e-05/0.3181, allocations: 122.2 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.3181, allocations: 29.7 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.756e-05/0.3181, allocations: 92.05 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.3182, allocations: 19.77 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.3182, allocations: 29.66 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3183, allocations: 322.8 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.91e-05/0.3184, allocations: 31.98 kB / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.731e-05/0.3185, allocations: 50.59 kB / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.3187, allocations: 70.5 kB / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3187, allocations: 0 / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002291/0.3189, allocations: 121.4 kB / 1.057 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.3189, allocations: 4 kB / 1.057 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3189, allocations: 0 / 1.057 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.3189, allocations: 4 kB / 1.057 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.089e-05/0.319, allocations: 11.98 kB / 1.057 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.3191, allocations: 0 / 1.057 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.929e-05/0.3191, allocations: 11.89 kB / 1.057 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.3192, allocations: 8 kB / 1.057 GB, free: 2.75 MB / 0.8106 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.605e-05/0.3192, allocations: 121.8 kB / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.725e-05/0.3193, allocations: 7.906 kB / 1.057 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.609e-05/0.3193, allocations: 8.375 kB / 1.057 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3193, allocations: 7.938 kB / 1.057 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.3193, allocations: 0 / 1.057 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3193, allocations: 3.984 kB / 1.057 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004243/0.3197, allocations: 378.4 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3198, allocations: 4 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.684e-05/0.3198, allocations: 4 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.3198, allocations: 4 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.3198, allocations: 0 / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.3198, allocations: 3.938 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3199, allocations: 7.938 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000267/0.3201, allocations: 211.4 kB / 1.058 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.3202, allocations: 85.11 kB / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.3202, allocations: 0 / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.245e-05/0.3203, allocations: 11.92 kB / 1.058 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.3203, allocations: 4 kB / 1.058 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.3203, allocations: 7.984 kB / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.222e-05/0.3204, allocations: 87.28 kB / 1.058 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3204, allocations: 0 / 1.058 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002836/0.3207, allocations: 43.89 kB / 1.058 GB, free: 1.668 MB / 0.8106 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.0007109/0.3214, allocations: 0.8041 MB / 1.059 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002148/0.3216, allocations: 75.91 kB / 1.059 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3216, allocations: 0 / 1.059 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.24e-05/0.3217, allocations: 35.97 kB / 1.059 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.322, allocations: 3.938 kB / 1.059 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3234, allocations: 1.498 MB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.3237, allocations: 0.6887 MB / 1.061 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.911e-05/0.3238, allocations: 11.98 kB / 1.061 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.3238, allocations: 19.44 kB / 1.061 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.3238, allocations: 0 / 1.061 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01279/0.3366, allocations: 2.427 MB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002109/0.3369, allocations: 271.8 kB / 1.064 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/1.957, allocations: 0 / 1.064 GB, free: 11.77 MB / 0.8262 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