Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001183/0.001183, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001283, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.41/1.41, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.413/2.413, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7857/0.7871, allocations: 140.4 MB / 0.9496 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.003571/0.7907, allocations: 1.492 MB / 0.951 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.7923, allocations: 0.7384 MB / 0.9518 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.834e-05/0.7924, allocations: 0 / 0.9518 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.108e-05/0.7924, allocations: 7.922 kB / 0.9518 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.983e-05/0.7925, allocations: 9.125 kB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007662/0.7933, allocations: 127.1 kB / 0.9519 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.7935, allocations: 74.91 kB / 0.952 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.7936, allocations: 13.34 kB / 0.952 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.7937, allocations: 36.94 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.55e-05/0.7938, allocations: 44.23 kB / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.7939, allocations: 6.156 kB / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.7941, allocations: 94.22 kB / 0.9522 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.605e-05/0.7941, allocations: 14.7 kB / 0.9522 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.759e-05/0.7942, allocations: 35.83 kB / 0.9522 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.7945, allocations: 135 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7945, allocations: 1.156 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.402e-06/0.7945, allocations: 0 / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.7945, allocations: 0 / 0.9523 GB, free: 7.055 MB / 0.7169 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.0006933/0.7952, allocations: 427.5 kB / 0.9527 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.7953, allocations: 10.22 kB / 0.9527 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.871e-05/0.7953, allocations: 7.75 kB / 0.9528 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.7954, allocations: 184.3 kB / 0.9529 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.116e-05/0.7955, allocations: 3.125 kB / 0.9529 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.7955, allocations: 4.094 kB / 0.9529 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.7957, allocations: 72.09 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.7957, allocations: 0 / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.7958, allocations: 1.375 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.7958, allocations: 5.406 kB / 0.953 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000136/0.7959, allocations: 36.5 kB / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006333/0.7965, allocations: 321.5 kB / 0.9534 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.7967, allocations: 44.75 kB / 0.9534 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.748e-05/0.7968, allocations: 34.92 kB / 0.9534 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.7968, allocations: 5.344 kB / 0.9534 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.797, allocations: 77.08 kB / 0.9535 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.797, allocations: 0 / 0.9535 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003789/0.7974, allocations: 140.8 kB / 0.9536 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.7975, allocations: 53.34 kB / 0.9537 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.605e-05/0.7975, allocations: 125.5 kB / 0.9538 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.7976, allocations: 30.77 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.7976, allocations: 86.27 kB / 0.9539 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.7976, allocations: 14.03 kB / 0.9539 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-05/0.7977, allocations: 38.98 kB / 0.954 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.374e-05/0.7977, allocations: 323.9 kB / 0.9543 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.616e-05/0.7978, allocations: 26.42 kB / 0.9543 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.569e-05/0.7979, allocations: 48.72 kB / 0.9544 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.7981, allocations: 69.89 kB / 0.9544 GB, free: 5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.7981, allocations: 0 / 0.9544 GB, free: 5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002237/0.7983, allocations: 117.5 kB / 0.9545 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.7984, allocations: 14.41 kB / 0.9545 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.7984, allocations: 1.344 kB / 0.9545 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.7984, allocations: 1.25 kB / 0.9546 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.56e-05/0.7985, allocations: 12.92 kB / 0.9546 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.7985, allocations: 1.188 kB / 0.9546 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.759e-05/0.7986, allocations: 7.656 kB / 0.9546 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.7986, allocations: 6.562 kB / 0.9546 GB, free: 4.906 MB / 0.7169 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 7.766e-05/0.7987, allocations: 123 kB / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.829e-05/0.7987, allocations: 11.62 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.7987, allocations: 9.719 kB / 0.9547 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.7987, allocations: 1.719 kB / 0.9547 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.7988, allocations: 3.938 kB / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.7988, allocations: 0 / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003746/0.7991, allocations: 378.9 kB / 0.9551 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.7992, allocations: 0 / 0.9551 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.003e-05/0.7992, allocations: 8.047 kB / 0.9551 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.7992, allocations: 4.812 kB / 0.9551 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.7992, allocations: 5.062 kB / 0.9551 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.7992, allocations: 80 / 0.9551 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7992, allocations: 9.016 kB / 0.9551 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002485/0.7995, allocations: 209.6 kB / 0.9553 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.7995, allocations: 86.2 kB / 0.9554 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.7996, allocations: 1.219 kB / 0.9554 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.631e-05/0.7996, allocations: 7.594 kB / 0.9554 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.225e-05/0.7997, allocations: 14.3 kB / 0.9554 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.7997, allocations: 2.469 kB / 0.9554 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.148e-05/0.7998, allocations: 92.14 kB / 0.9555 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7998, allocations: 1.062 kB / 0.9555 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003309/0.8001, allocations: 39.86 kB / 0.9555 GB, free: 3.992 MB / 0.7169 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.0003664/0.8005, allocations: 164.6 kB / 0.9557 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002496/0.8007, allocations: 70.91 kB / 0.9558 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.8008, allocations: 0 / 0.9558 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.786e-05/0.8009, allocations: 40.34 kB / 0.9558 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.8011, allocations: 9.406 kB / 0.9558 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004031/0.8015, allocations: 184 kB / 0.956 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000146/0.8017, allocations: 0.6875 MB / 0.9567 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.241e-05/0.8018, allocations: 7.703 kB / 0.9567 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.631e-05/0.8018, allocations: 18.72 kB / 0.9567 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of SimCode: time 3.61e-07/0.8018, allocations: 0 / 0.9567 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of Templates: time 0.004593/0.8064, allocations: 1.457 MB / 0.9581 GB, free: 2.18 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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