Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 104.4 kB / 16.35 MB, free: 6.289 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.001641/0.001641, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.199/2.199, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 64.42 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3017, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.003282/0.305, allocations: 1.503 MB / 0.9526 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.3064, allocations: 0.7245 MB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.243e-05/0.3065, allocations: 0 / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.3065, allocations: 7.922 kB / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.526e-05/0.3066, allocations: 7.875 kB / 0.9533 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005634/0.3072, allocations: 127.6 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.3073, allocations: 79.7 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.3074, allocations: 15.98 kB / 0.9535 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.548e-05/0.3075, allocations: 31.92 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.588e-05/0.3076, allocations: 43.81 kB / 0.9536 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.3076, allocations: 4 kB / 0.9536 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.3078, allocations: 99.84 kB / 0.9537 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.3078, allocations: 11.98 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.905e-05/0.3079, allocations: 35.8 kB / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002367/0.3081, allocations: 143.6 kB / 0.9539 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3081, allocations: 0 / 0.9539 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3081, allocations: 4 kB / 0.9539 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.3082, allocations: 0 / 0.9539 GB, free: 5.242 MB / 0.7325 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.0006908/0.3088, allocations: 417.9 kB / 0.9543 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3089, allocations: 8.031 kB / 0.9543 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.187e-05/0.309, allocations: 16.77 kB / 0.9543 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.3091, allocations: 176.2 kB / 0.9545 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.3091, allocations: 8.375 kB / 0.9545 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.3092, allocations: 4.375 kB / 0.9545 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.3094, allocations: 69.97 kB / 0.9545 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.3094, allocations: 0 / 0.9545 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.3094, allocations: 4 kB / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3094, allocations: 0 / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.3095, allocations: 39.97 kB / 0.9546 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006684/0.3102, allocations: 308.7 kB / 0.9549 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.3103, allocations: 62.48 kB / 0.9549 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.199e-05/0.3104, allocations: 32.97 kB / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.3105, allocations: 8.062 kB / 0.955 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.3107, allocations: 71.38 kB / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.3107, allocations: 0 / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004023/0.3111, allocations: 145.7 kB / 0.9552 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.3112, allocations: 55.34 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.3113, allocations: 121.8 kB / 0.9554 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.3113, allocations: 29.7 kB / 0.9554 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.893e-05/0.3114, allocations: 88.14 kB / 0.9555 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3114, allocations: 23.72 kB / 0.9555 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.3114, allocations: 25.72 kB / 0.9555 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3116, allocations: 326.8 kB / 0.9558 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.196e-05/0.3117, allocations: 27.98 kB / 0.9559 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.3118, allocations: 50.55 kB / 0.9559 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.3119, allocations: 74.56 kB / 0.956 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.312, allocations: 0 / 0.956 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002363/0.3122, allocations: 109.5 kB / 0.9561 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3122, allocations: 8 kB / 0.9561 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.3122, allocations: 0 / 0.9561 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3122, allocations: 0 / 0.9561 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.584e-05/0.3123, allocations: 15.98 kB / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3124, allocations: 4 kB / 0.9561 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.148e-05/0.3124, allocations: 19.95 kB / 0.9561 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.3125, allocations: 3.938 kB / 0.9561 GB, free: 2.688 MB / 0.7325 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.834e-05/0.3126, allocations: 127.6 kB / 0.9562 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.3126, allocations: 0 / 0.9562 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.3126, allocations: 12.38 kB / 0.9563 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3126, allocations: 0 / 0.9563 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3126, allocations: 3.984 kB / 0.9563 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3127, allocations: 0 / 0.9563 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004667/0.3131, allocations: 402.2 kB / 0.9566 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3131, allocations: 3.938 kB / 0.9566 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.742e-05/0.3132, allocations: 4 kB / 0.9567 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.3132, allocations: 4 kB / 0.9567 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.3132, allocations: 0 / 0.9567 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3132, allocations: 0 / 0.9567 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.3132, allocations: 3.938 kB / 0.9567 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000277/0.3135, allocations: 211.5 kB / 0.9569 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.558e-05/0.3136, allocations: 81.02 kB / 0.9569 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.3136, allocations: 0 / 0.9569 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.264e-05/0.3137, allocations: 7.984 kB / 0.9569 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.3137, allocations: 11.88 kB / 0.957 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.3138, allocations: 3.984 kB / 0.957 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.506e-05/0.3138, allocations: 91.28 kB / 0.957 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3138, allocations: 0 / 0.957 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003328/0.3142, allocations: 43.98 kB / 0.9571 GB, free: 1.598 MB / 0.7325 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.0003671/0.3145, allocations: 149.8 kB / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002466/0.3148, allocations: 72.12 kB / 0.9573 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3148, allocations: 128 / 0.9573 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.3149, allocations: 52.05 kB / 0.9574 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.3152, allocations: 0 / 0.9574 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004361/0.3156, allocations: 191.4 kB / 0.9575 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.316, allocations: 0.6999 MB / 0.9582 GB, free: 396 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.648e-05/0.316, allocations: 8 kB / 0.9582 GB, free: 388 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.956e-05/0.316, allocations: 11.44 kB / 0.9582 GB, free: 376 kB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.316, allocations: 0 / 0.9582 GB, free: 376 kB / 0.7325 GB Notification: Performance of Templates: time 0.004375/0.3204, allocations: 1.45 MB / 0.9597 GB, free: 14.92 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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