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.002156/0.002156, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.003353/0.003353, allocations: 192.7 kB / 16.25 MB, free: 6.621 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.792/1.792, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.927/2.927, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 64.58 kB / 0.8987 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3105, allocations: 157.4 MB / 1.052 GB, free: 8.688 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002929/0.3135, allocations: 1.57 MB / 1.054 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.3148, allocations: 0.7283 MB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.019e-05/0.3149, allocations: 3.938 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.412e-05/0.315, allocations: 0 / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.96e-05/0.315, allocations: 11.92 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006427/0.3157, allocations: 111.8 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.3158, allocations: 71.78 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.981e-05/0.3159, allocations: 15.97 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.87e-05/0.316, allocations: 31.92 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.513e-05/0.3161, allocations: 39.77 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.3161, allocations: 12 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.3163, allocations: 103.8 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.3164, allocations: 15.92 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.3165, allocations: 27.86 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.3167, allocations: 147.9 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3167, allocations: 0 / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3167, allocations: 0 / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.972e-06/0.3167, allocations: 0 / 1.055 GB, free: 5.789 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.0006274/0.3174, allocations: 409 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3174, allocations: 12.62 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.954e-05/0.3175, allocations: 38.73 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.3175, allocations: 8.844 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.3177, allocations: 180.2 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.3177, allocations: 4.312 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.3177, allocations: 4.375 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.3179, allocations: 77.77 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.3179, allocations: 0 / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3179, allocations: 0 / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.3179, allocations: 11.92 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.3181, allocations: 31.98 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005918/0.3187, allocations: 316.8 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.3188, allocations: 50.5 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.868e-05/0.3189, allocations: 32.97 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.3189, allocations: 0 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.3192, allocations: 83.42 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.3192, allocations: 0 / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003868/0.3196, allocations: 137.5 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.3196, allocations: 59.41 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.687e-05/0.3197, allocations: 121.8 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.3197, allocations: 29.7 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.156e-05/0.3198, allocations: 88.05 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.3198, allocations: 19.83 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.395e-05/0.3199, allocations: 29.7 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.32, allocations: 318.8 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.07e-05/0.3201, allocations: 27.98 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.411e-05/0.3202, allocations: 50.55 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.3204, allocations: 78.48 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3204, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002542/0.3206, allocations: 117.5 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3207, allocations: 9.703 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3207, allocations: 0 / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3207, allocations: 7.938 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.666e-05/0.3208, allocations: 8 kB / 1.057 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3208, allocations: 3.938 kB / 1.057 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.023e-05/0.3209, allocations: 11.89 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.3209, allocations: 8 kB / 1.057 GB, free: 3.195 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 9.913e-05/0.321, allocations: 127.3 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.321, allocations: 7.906 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.3211, allocations: 12.36 kB / 1.058 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3211, allocations: 0 / 1.058 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3211, allocations: 4 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3211, allocations: 0 / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000453/0.3216, allocations: 386.3 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.3216, allocations: 0 / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.307e-05/0.3216, allocations: 4 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3216, allocations: 0 / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.3217, allocations: 3.984 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3217, allocations: 3.938 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3217, allocations: 0 / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.322, allocations: 207.4 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.322, allocations: 81.11 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.322, allocations: 7.984 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.199e-05/0.3221, allocations: 3.938 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/0.3222, allocations: 8 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.3222, allocations: 7.984 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.448e-05/0.3223, allocations: 95.2 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3223, allocations: 0 / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003112/0.3226, allocations: 39.91 kB / 1.058 GB, free: 2.117 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.0008304/0.3234, allocations: 0.8112 MB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000383/0.3238, allocations: 75.89 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3238, allocations: 4 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.324, allocations: 39.91 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.3242, allocations: 7.938 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.3259, allocations: 1.492 MB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.3262, allocations: 0.69 MB / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.246e-05/0.3262, allocations: 11.98 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.086e-05/0.3263, allocations: 19.44 kB / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of SimCode: time 1.613e-06/0.3263, allocations: 0 / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.446/2.772, allocations: 2.485 MB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003756/2.773, allocations: 274.2 kB / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.765/6.538, allocations: 3.938 kB / 1.064 GB, free: 12.16 MB / 0.8262 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