Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_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.001038/0.001042, allocations: 108 kB / 15.61 MB, free: 152 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.0009466/0.0009465, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.202/1.202, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.601/2.601, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 65.36 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3132, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002307/0.3155, allocations: 1.497 MB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001035/0.3166, allocations: 0.7365 MB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.696e-05/0.3166, allocations: 11.94 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.48e-05/0.3167, allocations: 3.938 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.383e-05/0.3167, allocations: 7.875 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.3172, allocations: 123.6 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.722e-05/0.3173, allocations: 67.83 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.341e-05/0.3174, allocations: 15.98 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.859e-05/0.3174, allocations: 31.92 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.874e-05/0.3175, allocations: 47.81 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.3175, allocations: 8 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.3177, allocations: 91.84 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.3177, allocations: 19.92 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.259e-05/0.3178, allocations: 31.86 kB / 1.056 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.318, allocations: 139.9 kB / 1.056 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.318, allocations: 4 kB / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.304e-06/0.318, allocations: 0 / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.318, allocations: 3.938 kB / 1.056 GB, free: 5.414 MB / 0.8106 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.0005252/0.3185, allocations: 417 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3186, allocations: 12.61 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.972e-05/0.3186, allocations: 34.69 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.3186, allocations: 8.844 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.307e-05/0.3187, allocations: 176.2 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.3188, allocations: 8.375 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.3188, allocations: 8.359 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001589/0.3189, allocations: 77.77 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.319, allocations: 4 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.319, allocations: 7.938 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.319, allocations: 0 / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.3191, allocations: 39.91 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005025/0.3196, allocations: 308.8 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.3197, allocations: 50.56 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.602e-05/0.3198, allocations: 32.97 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.3198, allocations: 4 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.32, allocations: 79.38 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.32, allocations: 0 / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003655/0.3204, allocations: 145.5 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.3204, allocations: 55.39 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.229e-05/0.3205, allocations: 121.8 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3205, allocations: 29.7 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.3206, allocations: 96.03 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.3206, allocations: 15.84 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.017e-05/0.3207, allocations: 29.7 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.645e-05/0.3208, allocations: 318.8 kB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/0.3209, allocations: 35.91 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.322e-05/0.321, allocations: 46.56 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.3211, allocations: 74.53 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3211, allocations: 0 / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002164/0.3214, allocations: 113.5 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.3214, allocations: 8 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3214, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3214, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.953e-05/0.3215, allocations: 19.86 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3215, allocations: 4 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.124e-05/0.3216, allocations: 7.969 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.3216, allocations: 4 kB / 1.058 GB, free: 2.812 MB / 0.8106 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 7.797e-05/0.3217, allocations: 125.8 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.3217, allocations: 7.891 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.133e-05/0.3217, allocations: 8.375 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.3217, allocations: 0 / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3217, allocations: 0 / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3217, allocations: 0 / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003799/0.3221, allocations: 394.3 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3221, allocations: 0 / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-05/0.3222, allocations: 4 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3222, allocations: 0 / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.3222, allocations: 7.984 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.3222, allocations: 3.938 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3222, allocations: 0 / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002442/0.3225, allocations: 215.4 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.997e-05/0.3225, allocations: 81.09 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.3225, allocations: 4 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.354e-05/0.3226, allocations: 7.938 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.516e-05/0.3227, allocations: 11.98 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.862e-06/0.3227, allocations: 0 / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.832e-05/0.3227, allocations: 95.27 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3227, allocations: 0 / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002607/0.323, allocations: 43.91 kB / 1.059 GB, free: 1.723 MB / 0.8106 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.0006306/0.3236, allocations: 0.8126 MB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002063/0.3238, allocations: 71.89 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3239, allocations: 0 / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.556e-05/0.3239, allocations: 31.98 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.3242, allocations: 13.34 kB / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.3255, allocations: 1.482 MB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/0.3257, allocations: 0.6961 MB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.147e-05/0.3257, allocations: 4 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.3258, allocations: 23.42 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3258, allocations: 0 / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.3426, allocations: 2.608 MB / 1.065 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.105/7.448, allocations: 3.859 kB / 1.065 GB, free: 11.98 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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