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.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.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.001331/0.001331, allocations: 108 kB / 15.6 MB, free: 132 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.001787/0.001787, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.631/1.631, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.541/2.541, allocations: 390.2 MB / 0.6646 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 71.89 kB / 0.8125 GB, free: 14.48 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7429/0.7442, allocations: 140.4 MB / 0.9496 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002779/0.747, allocations: 1.489 MB / 0.951 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001078/0.7481, allocations: 0.734 MB / 0.9518 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.037e-05/0.7482, allocations: 0 / 0.9518 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.666e-05/0.7483, allocations: 3.938 kB / 0.9518 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.091e-05/0.7483, allocations: 14.56 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005324/0.7489, allocations: 120.7 kB / 0.9519 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.214e-05/0.749, allocations: 75.94 kB / 0.952 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.7491, allocations: 22.2 kB / 0.952 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.02e-05/0.7492, allocations: 32.83 kB / 0.952 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.085e-05/0.7492, allocations: 43.31 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.7493, allocations: 10.69 kB / 0.9521 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.7494, allocations: 93.69 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/0.7495, allocations: 19.11 kB / 0.9522 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.828e-05/0.7495, allocations: 27.3 kB / 0.9522 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.7497, allocations: 136.5 kB / 0.9523 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.7498, allocations: 0 / 0.9523 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7498, allocations: 0 / 0.9523 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.7498, allocations: 0 / 0.9523 GB, free: 7.086 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.0005497/0.7503, allocations: 436.9 kB / 0.9527 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.7504, allocations: 8.406 kB / 0.9527 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.7504, allocations: 9.375 kB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.13e-05/0.7505, allocations: 172.2 kB / 0.9529 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.7505, allocations: 3.156 kB / 0.9529 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.758e-05/0.7506, allocations: 3.344 kB / 0.9529 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.7507, allocations: 80.47 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.7508, allocations: 0 / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.7508, allocations: 0 / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.7508, allocations: 1.094 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.7509, allocations: 41.44 kB / 0.953 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005043/0.7514, allocations: 321.8 kB / 0.9534 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.7515, allocations: 48.47 kB / 0.9534 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.471e-05/0.7516, allocations: 35.03 kB / 0.9534 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.7516, allocations: 1.344 kB / 0.9534 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.7518, allocations: 81.09 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.7518, allocations: 0 / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003665/0.7522, allocations: 136.7 kB / 0.9536 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.7523, allocations: 61.91 kB / 0.9537 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.656e-05/0.7523, allocations: 128.5 kB / 0.9538 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.7524, allocations: 26.92 kB / 0.9538 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.7524, allocations: 86.55 kB / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.7524, allocations: 18.7 kB / 0.9539 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.595e-05/0.7525, allocations: 29.7 kB / 0.954 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.119e-05/0.7525, allocations: 325.1 kB / 0.9543 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.094e-05/0.7526, allocations: 26.17 kB / 0.9543 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.151e-05/0.7527, allocations: 48.3 kB / 0.9544 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.7528, allocations: 74.73 kB / 0.9544 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.7529, allocations: 0 / 0.9544 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002139/0.7531, allocations: 116.8 kB / 0.9545 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.7531, allocations: 5.188 kB / 0.9545 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.7531, allocations: 5.359 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.7531, allocations: 1.25 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.125e-05/0.7532, allocations: 7.594 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.7532, allocations: 2.469 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.241e-05/0.7533, allocations: 14.98 kB / 0.9546 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.7533, allocations: 3.25 kB / 0.9546 GB, free: 4.93 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 6.608e-05/0.7534, allocations: 126.4 kB / 0.9547 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.7534, allocations: 7.125 kB / 0.9547 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.336e-05/0.7534, allocations: 13.95 kB / 0.9547 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.7535, allocations: 4.828 kB / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.7535, allocations: 1.062 kB / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.7535, allocations: 0 / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.7538, allocations: 379.3 kB / 0.9551 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.7539, allocations: 4 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.884e-05/0.7539, allocations: 3.219 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.7539, allocations: 5.094 kB / 0.9551 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.7539, allocations: 1.156 kB / 0.9551 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.7539, allocations: 7.922 kB / 0.9551 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.7539, allocations: 9.156 kB / 0.9551 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.7542, allocations: 201.7 kB / 0.9553 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.89e-05/0.7542, allocations: 86.17 kB / 0.9554 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.7542, allocations: 1.062 kB / 0.9554 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.471e-05/0.7543, allocations: 11.36 kB / 0.9554 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.7544, allocations: 10.25 kB / 0.9554 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.7544, allocations: 6.359 kB / 0.9554 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.481e-05/0.7544, allocations: 92.58 kB / 0.9555 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7544, allocations: 0 / 0.9555 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002975/0.7547, allocations: 36.69 kB / 0.9555 GB, free: 4.016 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.0003073/0.755, allocations: 160.9 kB / 0.9557 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002395/0.7553, allocations: 73.81 kB / 0.9558 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.7553, allocations: 0 / 0.9558 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.236e-05/0.7554, allocations: 37.02 kB / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000242/0.7556, allocations: 16.81 kB / 0.9558 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00036/0.756, allocations: 183.2 kB / 0.956 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.7561, allocations: 0.6956 MB / 0.9567 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.617e-05/0.7562, allocations: 7.969 kB / 0.9567 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.7562, allocations: 11 kB / 0.9567 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7562, allocations: 0 / 0.9567 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of Templates: time 0.004/0.7602, allocations: 1.45 MB / 0.9581 GB, free: 2.211 MB / 0.7169 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 -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/jenkins/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