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: "" <> 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.001424/0.001425, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001526/0.001526, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.281/1.281, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.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.18/2.18, allocations: 390.2 MB / 0.6643 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001253, allocations: 71.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.583/0.5843, allocations: 140.3 MB / 0.949 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.00224/0.5865, allocations: 1.563 MB / 0.9506 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009925/0.5875, allocations: 0.7288 MB / 0.9513 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.373e-05/0.5876, allocations: 1.375 kB / 0.9513 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.5876, allocations: 7.938 kB / 0.9513 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.001e-05/0.5877, allocations: 9.297 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.5881, allocations: 100.6 kB / 0.9514 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.206e-05/0.5882, allocations: 78.45 kB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.802e-05/0.5883, allocations: 13.61 kB / 0.9515 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.874e-05/0.5883, allocations: 29.2 kB / 0.9515 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.672e-05/0.5884, allocations: 48.31 kB / 0.9515 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.5884, allocations: 2.562 kB / 0.9516 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.5886, allocations: 86.59 kB / 0.9516 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.5886, allocations: 14.23 kB / 0.9516 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.053e-05/0.5887, allocations: 36.22 kB / 0.9517 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001839/0.5888, allocations: 136 kB / 0.9518 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5889, allocations: 0 / 0.9518 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.5889, allocations: 0 / 0.9518 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.5889, allocations: 0 / 0.9518 GB, free: 7.031 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.0004952/0.5894, allocations: 429.2 kB / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.5894, allocations: 8.312 kB / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.942e-05/0.5895, allocations: 36.12 kB / 0.9523 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.5895, allocations: 5.75 kB / 0.9523 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.33e-05/0.5896, allocations: 167 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.5896, allocations: 3.062 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.5896, allocations: 16.67 kB / 0.9524 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.5898, allocations: 71.69 kB / 0.9525 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.5898, allocations: 3.984 kB / 0.9525 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.5898, allocations: 4.75 kB / 0.9525 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.5898, allocations: 1.125 kB / 0.9525 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.5899, allocations: 36.31 kB / 0.9526 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004849/0.5904, allocations: 321.9 kB / 0.9529 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.5906, allocations: 52.5 kB / 0.9529 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.395e-05/0.5906, allocations: 31.22 kB / 0.9529 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.5907, allocations: 1.531 kB / 0.9529 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001546/0.5908, allocations: 81.38 kB / 0.953 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.5908, allocations: 0 / 0.953 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003668/0.5912, allocations: 144 kB / 0.9532 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.5912, allocations: 58.25 kB / 0.9532 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.355e-05/0.5913, allocations: 115.8 kB / 0.9533 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.5913, allocations: 28.11 kB / 0.9534 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.911e-05/0.5914, allocations: 89.78 kB / 0.9534 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.5914, allocations: 18.34 kB / 0.9535 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.113e-05/0.5914, allocations: 30.14 kB / 0.9535 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.059e-05/0.5915, allocations: 329.7 kB / 0.9538 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.806e-05/0.5916, allocations: 26.58 kB / 0.9538 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-05/0.5916, allocations: 45.03 kB / 0.9539 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.5918, allocations: 72.83 kB / 0.9539 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5918, allocations: 4 kB / 0.9539 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002093/0.592, allocations: 114.1 kB / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.592, allocations: 4.281 kB / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.592, allocations: 1.562 kB / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.5921, allocations: 1.375 kB / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.938e-05/0.5922, allocations: 11.95 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.5922, allocations: 5.469 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.567e-05/0.5922, allocations: 11.44 kB / 0.9541 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.5923, allocations: 8.312 kB / 0.9541 GB, free: 4.84 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.158e-05/0.5923, allocations: 122.5 kB / 0.9542 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.5923, allocations: 10.89 kB / 0.9542 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.336e-05/0.5924, allocations: 9.594 kB / 0.9542 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.5924, allocations: 4.844 kB / 0.9542 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.5924, allocations: 0.9062 kB / 0.9542 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.5924, allocations: 0 / 0.9542 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003592/0.5928, allocations: 387.1 kB / 0.9546 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5928, allocations: 0 / 0.9546 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.5928, allocations: 3.656 kB / 0.9546 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.5928, allocations: 5.266 kB / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.5928, allocations: 4 kB / 0.9546 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.5928, allocations: 9 kB / 0.9546 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5929, allocations: 0 / 0.9546 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.5931, allocations: 201.6 kB / 0.9548 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.183e-05/0.5932, allocations: 87.22 kB / 0.9549 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.5932, allocations: 1.219 kB / 0.9549 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.273e-05/0.5933, allocations: 11.12 kB / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.5933, allocations: 6.297 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.5933, allocations: 2.312 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.555e-05/0.5934, allocations: 96.67 kB / 0.955 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5934, allocations: 3.938 kB / 0.955 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002825/0.5937, allocations: 36.78 kB / 0.9551 GB, free: 3.93 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.0005795/0.5943, allocations: 0.8076 MB / 0.9558 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002113/0.5945, allocations: 77.61 kB / 0.9559 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.5945, allocations: 1.156 kB / 0.9559 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.02e-05/0.5946, allocations: 31.95 kB / 0.9559 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002418/0.5948, allocations: 15.34 kB / 0.956 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.5961, allocations: 1.493 MB / 0.9574 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.5962, allocations: 0.692 MB / 0.9581 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.84e-05/0.5962, allocations: 7.609 kB / 0.9581 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.039e-05/0.5963, allocations: 21.95 kB / 0.9581 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5963, allocations: 1.219 kB / 0.9581 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01151/0.6078, allocations: 2.414 MB / 0.9605 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.608, allocations: 260.6 kB / 0.9607 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.373, allocations: 1.125 kB / 0.9607 GB, free: 15.5 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