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.001335/0.001335, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001189/0.001189, allocations: 194.3 kB / 17.31 MB, free: 5.613 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.18 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.27/2.27, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 61.25 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2487, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.003433/0.2522, allocations: 1.508 MB / 0.9526 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.2537, allocations: 0.7284 MB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.178e-05/0.2537, allocations: 3.938 kB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.91e-05/0.2538, allocations: 3.938 kB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.385e-05/0.2538, allocations: 7.875 kB / 0.9533 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.2544, allocations: 123.6 kB / 0.9534 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.2545, allocations: 75.81 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.894e-05/0.2546, allocations: 8 kB / 0.9535 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.319e-05/0.2547, allocations: 39.84 kB / 0.9535 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.19e-05/0.2548, allocations: 43.83 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.2548, allocations: 8 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.255, allocations: 91.91 kB / 0.9537 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.515e-05/0.255, allocations: 19.86 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.567e-05/0.2551, allocations: 31.86 kB / 0.9537 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.2553, allocations: 143.6 kB / 0.9539 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2553, allocations: 0 / 0.9539 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2553, allocations: 0 / 0.9539 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.2553, allocations: 3.938 kB / 0.9539 GB, free: 5.199 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.0005682/0.2559, allocations: 424.9 kB / 0.9543 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.2559, allocations: 8.031 kB / 0.9543 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.256, allocations: 8.844 kB / 0.9543 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.2561, allocations: 172.3 kB / 0.9545 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.2561, allocations: 8.375 kB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.2562, allocations: 8.297 kB / 0.9545 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.2564, allocations: 77.91 kB / 0.9546 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2564, allocations: 4 kB / 0.9546 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2564, allocations: 0 / 0.9546 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.2564, allocations: 4 kB / 0.9546 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.2565, allocations: 35.97 kB / 0.9546 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005695/0.2571, allocations: 312.7 kB / 0.9549 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.2572, allocations: 54.48 kB / 0.9549 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.194e-05/0.2573, allocations: 36.97 kB / 0.955 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.2574, allocations: 4.062 kB / 0.955 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.2575, allocations: 79.38 kB / 0.9551 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.2576, allocations: 0 / 0.9551 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003737/0.2579, allocations: 149.5 kB / 0.9552 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.258, allocations: 51.41 kB / 0.9553 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.257e-05/0.2581, allocations: 117.8 kB / 0.9554 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.2581, allocations: 29.7 kB / 0.9554 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.845e-05/0.2582, allocations: 92.12 kB / 0.9555 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.2582, allocations: 19.73 kB / 0.9555 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.2583, allocations: 33.7 kB / 0.9555 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2584, allocations: 322.8 kB / 0.9558 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.182e-05/0.2585, allocations: 27.98 kB / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.505e-05/0.2586, allocations: 42.56 kB / 0.9559 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.2587, allocations: 74.48 kB / 0.956 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2587, allocations: 4 kB / 0.956 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002353/0.259, allocations: 113.8 kB / 0.9561 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.259, allocations: 9.812 kB / 0.9561 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.259, allocations: 4 kB / 0.9561 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.259, allocations: 0 / 0.9561 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.591e-05/0.2591, allocations: 11.98 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.2591, allocations: 80 / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.765e-05/0.2592, allocations: 7.906 kB / 0.9561 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.2592, allocations: 16.05 kB / 0.9561 GB, free: 2.637 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 8.865e-05/0.2593, allocations: 128.6 kB / 0.9563 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/0.2594, allocations: 7.984 kB / 0.9563 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.2594, allocations: 4.375 kB / 0.9563 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2594, allocations: 4 kB / 0.9563 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2594, allocations: 3.938 kB / 0.9563 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2594, allocations: 0 / 0.9563 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/0.2599, allocations: 390.3 kB / 0.9567 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2599, allocations: 0 / 0.9567 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.027e-05/0.2599, allocations: 7.938 kB / 0.9567 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.2599, allocations: 3.984 kB / 0.9567 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.26, allocations: 0 / 0.9567 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.26, allocations: 4 kB / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.26, allocations: 3.938 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.2602, allocations: 203.5 kB / 0.9569 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.953e-05/0.2603, allocations: 89 kB / 0.9569 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.2603, allocations: 0 / 0.9569 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.258e-05/0.2604, allocations: 4 kB / 0.957 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.615e-05/0.2605, allocations: 11.92 kB / 0.957 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.2605, allocations: 4 kB / 0.957 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.071e-05/0.2605, allocations: 91.27 kB / 0.9571 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2605, allocations: 0 / 0.9571 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003006/0.2609, allocations: 36 kB / 0.9571 GB, free: 1.562 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.0003268/0.2612, allocations: 177.9 kB / 0.9573 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002334/0.2614, allocations: 67.95 kB / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.2614, allocations: 0 / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.2616, allocations: 44.03 kB / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.2618, allocations: 11.98 kB / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.2622, allocations: 180.3 kB / 0.9575 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.2625, allocations: 0.6932 MB / 0.9582 GB, free: 352 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.322e-05/0.2625, allocations: 4 kB / 0.9582 GB, free: 348 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.625e-05/0.2625, allocations: 15.42 kB / 0.9582 GB, free: 332 kB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.2625, allocations: 0 / 0.9582 GB, free: 332 kB / 0.7325 GB Notification: Performance of Templates: time 0.003932/0.2665, allocations: 1.449 MB / 0.9597 GB, free: 14.88 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 gbode -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