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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001621/0.001621, allocations: 192.6 kB / 16.25 MB, free: 6.621 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.4/1.4, allocations: 222.9 MB / 239.9 MB, free: 4.461 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.273/2.273, allocations: 390.2 MB / 0.6644 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 63.91 kB / 0.8122 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.592/0.5938, allocations: 140.4 MB / 0.9492 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002214/0.596, allocations: 1.549 MB / 0.9507 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000888/0.5969, allocations: 0.7173 MB / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.457e-05/0.597, allocations: 5.375 kB / 0.9515 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.693e-05/0.597, allocations: 0 / 0.9515 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.471e-05/0.5971, allocations: 17.25 kB / 0.9515 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004357/0.5975, allocations: 111.3 kB / 0.9516 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.234e-05/0.5976, allocations: 74.88 kB / 0.9516 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.833e-05/0.5977, allocations: 21.69 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.972e-05/0.5978, allocations: 33.19 kB / 0.9517 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.883e-05/0.5978, allocations: 35.16 kB / 0.9517 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.5979, allocations: 10.44 kB / 0.9517 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.598, allocations: 98.12 kB / 0.9518 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.952e-05/0.598, allocations: 18.5 kB / 0.9519 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.5981, allocations: 36.59 kB / 0.9519 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.5983, allocations: 135.7 kB / 0.952 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.5983, allocations: 5.125 kB / 0.952 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.963e-06/0.5983, allocations: 0 / 0.952 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.339e-06/0.5983, allocations: 3.938 kB / 0.952 GB, free: 6.973 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.0004549/0.5987, allocations: 420 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.5988, allocations: 10.19 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.616e-05/0.5988, allocations: 36.14 kB / 0.9525 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.5988, allocations: 4.625 kB / 0.9525 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.011e-05/0.5989, allocations: 175.9 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.5989, allocations: 2.688 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.5989, allocations: 4.5 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.5991, allocations: 76.11 kB / 0.9527 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.5991, allocations: 0 / 0.9527 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.5991, allocations: 0 / 0.9527 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.5991, allocations: 5.469 kB / 0.9527 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.5993, allocations: 36.66 kB / 0.9528 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000456/0.5997, allocations: 325.7 kB / 0.9531 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.5998, allocations: 52 kB / 0.9531 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.969e-05/0.5999, allocations: 32.22 kB / 0.9532 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.5999, allocations: 1.406 kB / 0.9532 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001404/0.6001, allocations: 77.56 kB / 0.9532 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.6001, allocations: 0 / 0.9532 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003357/0.6004, allocations: 147.4 kB / 0.9534 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.424e-05/0.6005, allocations: 53.31 kB / 0.9534 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.278e-05/0.6005, allocations: 125.8 kB / 0.9535 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.6006, allocations: 30.95 kB / 0.9536 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.821e-05/0.6006, allocations: 91.08 kB / 0.9537 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.6006, allocations: 17.17 kB / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-05/0.6007, allocations: 30.52 kB / 0.9537 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.681e-05/0.6007, allocations: 317.2 kB / 0.954 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.073e-05/0.6008, allocations: 30.48 kB / 0.954 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/0.6009, allocations: 48.23 kB / 0.9541 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.601, allocations: 77.69 kB / 0.9542 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.601, allocations: 1.156 kB / 0.9542 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000207/0.6012, allocations: 113.2 kB / 0.9543 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.6012, allocations: 8.984 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.6012, allocations: 1.281 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.6013, allocations: 1.344 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.486e-05/0.6013, allocations: 7.656 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.6014, allocations: 1.125 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.262e-05/0.6014, allocations: 12.27 kB / 0.9543 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.6014, allocations: 6.844 kB / 0.9543 GB, free: 4.789 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 5.483e-05/0.6015, allocations: 127.3 kB / 0.9544 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.6015, allocations: 7.062 kB / 0.9544 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.6015, allocations: 9.797 kB / 0.9544 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.6016, allocations: 1.219 kB / 0.9544 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.6016, allocations: 0 / 0.9544 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.6016, allocations: 1.312 kB / 0.9544 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003272/0.6019, allocations: 390.4 kB / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.6019, allocations: 0 / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.621e-05/0.6019, allocations: 3.094 kB / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.602, allocations: 1.531 kB / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.602, allocations: 5.891 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.602, allocations: 3.938 kB / 0.9548 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.602, allocations: 3.938 kB / 0.9548 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002127/0.6022, allocations: 209.9 kB / 0.955 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.814e-05/0.6022, allocations: 82.52 kB / 0.9551 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.6022, allocations: 1.562 kB / 0.9551 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-05/0.6023, allocations: 10.2 kB / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.6024, allocations: 6.75 kB / 0.9551 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.6024, allocations: 10.58 kB / 0.9551 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.042e-05/0.6024, allocations: 96.86 kB / 0.9552 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6024, allocations: 0 / 0.9552 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002694/0.6027, allocations: 35.62 kB / 0.9553 GB, free: 3.875 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.0005226/0.6032, allocations: 0.8043 MB / 0.956 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002071/0.6035, allocations: 82.33 kB / 0.9561 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.6035, allocations: 0 / 0.9561 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.267e-05/0.6035, allocations: 39.62 kB / 0.9562 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.6038, allocations: 12.03 kB / 0.9562 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.6049, allocations: 1.487 MB / 0.9576 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.965e-05/0.605, allocations: 0.685 MB / 0.9583 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.515e-05/0.6051, allocations: 11.05 kB / 0.9583 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.835e-05/0.6051, allocations: 19.09 kB / 0.9583 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6051, allocations: 3.938 kB / 0.9583 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.012/0.6171, allocations: 2.482 MB / 0.9608 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.6173, allocations: 265.2 kB / 0.961 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.313, allocations: 4 kB / 0.961 GB, free: 15.41 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > 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,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed