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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009679/0.009679, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.491/1.491, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.856/2.856, allocations: 473.4 MB / 0.7469 GB, free: 6.082 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004043, allocations: 7.688 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3856, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002446/0.3881, allocations: 1.227 MB / 1.075 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.3896, allocations: 0.7207 MB / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.831e-05/0.3896, allocations: 0 / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.386e-05/0.3897, allocations: 3.938 kB / 1.076 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.691e-05/0.3897, allocations: 11.91 kB / 1.076 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.3903, allocations: 107.8 kB / 1.076 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.3904, allocations: 67.78 kB / 1.076 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.345e-05/0.3905, allocations: 19.97 kB / 1.076 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.25e-05/0.3906, allocations: 23.92 kB / 1.076 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.331e-05/0.3906, allocations: 39.77 kB / 1.076 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.3907, allocations: 4 kB / 1.076 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.3909, allocations: 91.84 kB / 1.076 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.806e-05/0.3909, allocations: 15.92 kB / 1.076 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.829e-05/0.391, allocations: 61.55 kB / 1.076 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002258/0.3912, allocations: 135.9 kB / 1.077 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3912, allocations: 0 / 1.077 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3912, allocations: 0 / 1.077 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.3912, allocations: 0 / 1.077 GB, free: 5.012 MB / 0.8262 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.0006521/0.3919, allocations: 405 kB / 1.077 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3919, allocations: 12.03 kB / 1.077 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.355e-05/0.392, allocations: 12.84 kB / 1.077 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.3921, allocations: 168.3 kB / 1.077 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.3922, allocations: 4.359 kB / 1.077 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.3922, allocations: 4.375 kB / 1.077 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/0.3924, allocations: 77.91 kB / 1.077 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3924, allocations: 8 kB / 1.077 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.3924, allocations: 0 / 1.077 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.3924, allocations: 0 / 1.077 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.3926, allocations: 51.91 kB / 1.077 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000653/0.3932, allocations: 320.7 kB / 1.078 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.3934, allocations: 54.5 kB / 1.078 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.749e-05/0.3935, allocations: 32.97 kB / 1.078 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.3935, allocations: 4 kB / 1.078 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.3937, allocations: 83.38 kB / 1.078 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.3938, allocations: 0 / 1.078 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004251/0.3942, allocations: 149.5 kB / 1.078 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.3942, allocations: 51.41 kB / 1.078 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.3944, allocations: 125.8 kB / 1.078 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.3944, allocations: 25.7 kB / 1.078 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.475e-05/0.3945, allocations: 92.2 kB / 1.078 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.3945, allocations: 23.73 kB / 1.078 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.3945, allocations: 21.7 kB / 1.078 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3947, allocations: 318.8 kB / 1.079 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.214e-05/0.3948, allocations: 23.98 kB / 1.079 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.3949, allocations: 58.55 kB / 1.079 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000172/0.3951, allocations: 78.48 kB / 1.079 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3951, allocations: 0 / 1.079 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002393/0.3953, allocations: 117.5 kB / 1.079 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3953, allocations: 8 kB / 1.079 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.3954, allocations: 3.984 kB / 1.079 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3954, allocations: 0 / 1.079 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.213e-05/0.3955, allocations: 11.94 kB / 1.079 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3955, allocations: 4 kB / 1.079 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.067e-05/0.3956, allocations: 19.95 kB / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.3956, allocations: 7.938 kB / 1.079 GB, free: 2.434 MB / 0.8262 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.0001039/0.3957, allocations: 121.7 kB / 1.079 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.3957, allocations: 4 kB / 1.079 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.686e-05/0.3958, allocations: 12.36 kB / 1.079 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.3958, allocations: 4 kB / 1.079 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.3958, allocations: 0 / 1.079 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3958, allocations: 4 kB / 1.079 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005002/0.3963, allocations: 390.7 kB / 1.079 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3963, allocations: 0 / 1.079 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.007e-05/0.3964, allocations: 7.938 kB / 1.079 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3964, allocations: 4 kB / 1.079 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.3964, allocations: 4 kB / 1.079 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.165e-06/0.3964, allocations: 7.984 kB / 1.079 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.3964, allocations: 3.938 kB / 1.079 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.3967, allocations: 203.5 kB / 1.08 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.047e-05/0.3968, allocations: 85.02 kB / 1.08 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.3968, allocations: 0 / 1.08 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.3969, allocations: 19.97 kB / 1.08 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.397, allocations: 7.938 kB / 1.08 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.397, allocations: 3.984 kB / 1.08 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.684e-05/0.397, allocations: 91.27 kB / 1.08 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.397, allocations: 0 / 1.08 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003113/0.3974, allocations: 40 kB / 1.08 GB, free: 1.34 MB / 0.8262 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.0004147/0.3978, allocations: 168.9 kB / 1.08 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002625/0.3981, allocations: 71.94 kB / 1.08 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3981, allocations: 3.938 kB / 1.08 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.3982, allocations: 44.05 kB / 1.08 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.3985, allocations: 8 kB / 1.08 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004433/0.3989, allocations: 201.1 kB / 1.08 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3993, allocations: 0.6926 MB / 1.081 GB, free: 108 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.105e-05/0.3993, allocations: 7.984 kB / 1.081 GB, free: 100 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.676e-05/0.3993, allocations: 11.44 kB / 1.081 GB, free: 88 kB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3994, allocations: 0 / 1.081 GB, free: 88 kB / 0.8262 GB Notification: Performance of Templates: time 0.004463/0.4038, allocations: 1.359 MB / 1.082 GB, free: 14.73 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (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 & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0