Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Haldi2008WindowsTIn,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",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.001611/0.001611, 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.00179/0.00179, allocations: 198.8 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.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.853/2.853, allocations: 469.4 MB / 0.742 GB, free: 7.766 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002498/0.002498, allocations: 65.84 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3019, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.002639/0.3045, allocations: 1.489 MB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.3058, allocations: 0.7301 MB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.841e-05/0.3058, allocations: 7.875 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.862e-05/0.3059, allocations: 3.938 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.665e-05/0.306, allocations: 19.84 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005295/0.3065, allocations: 119.6 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.3066, allocations: 75.83 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.66e-05/0.3067, allocations: 12 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.402e-05/0.3068, allocations: 35.89 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.473e-05/0.3069, allocations: 35.84 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.3069, allocations: 8 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001959/0.3071, allocations: 95.84 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.002e-05/0.3071, allocations: 23.91 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.269e-05/0.3072, allocations: 31.8 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.3074, allocations: 147.9 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3074, allocations: 3.984 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.133e-06/0.3074, allocations: 0 / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3074, allocations: 0 / 1.066 GB, free: 11.68 MB / 0.8262 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.0005698/0.308, allocations: 416.9 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3081, allocations: 8.031 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.3081, allocations: 34.73 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.559e-05/0.3081, allocations: 8.844 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.3083, allocations: 176.2 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.3083, allocations: 8.375 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.3083, allocations: 4.375 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.3085, allocations: 73.77 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.3085, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.3085, allocations: 4 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.3085, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001326/0.3087, allocations: 51.83 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000573/0.3092, allocations: 312.8 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.3094, allocations: 50.55 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.18e-05/0.3095, allocations: 32.97 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.3095, allocations: 0 / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/0.3097, allocations: 83.31 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.3097, allocations: 0 / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.000374/0.3101, allocations: 141.6 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.3101, allocations: 51.41 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.791e-05/0.3102, allocations: 125.8 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3102, allocations: 29.7 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.3103, allocations: 96.05 kB / 1.068 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.027e-05/0.3103, allocations: 23.73 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.3104, allocations: 25.72 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.744e-05/0.3105, allocations: 318.8 kB / 1.068 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.477e-05/0.3106, allocations: 27.98 kB / 1.068 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.3107, allocations: 59.34 kB / 1.068 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.3109, allocations: 79.34 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3109, allocations: 0 / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002416/0.3111, allocations: 109.6 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3111, allocations: 8.062 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.3111, allocations: 4 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.3112, allocations: 0 / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.497e-05/0.3113, allocations: 11.98 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.3113, allocations: 4 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.681e-05/0.3114, allocations: 15.84 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.3114, allocations: 11.88 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 (win.curSeed,$PRE.win.curSeed,occ.y,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.634e-05/0.3115, allocations: 123.9 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.793e-05/0.3115, allocations: 11.91 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.394e-05/0.3115, allocations: 8.375 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3115, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3115, allocations: 4 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3116, allocations: 0 / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004338/0.312, allocations: 382.3 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.312, allocations: 0 / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.236e-05/0.3121, allocations: 7.984 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3121, allocations: 64 / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.3121, allocations: 12 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.3121, allocations: 3.938 kB / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3121, allocations: 0 / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002715/0.3124, allocations: 207.4 kB / 1.069 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.936e-05/0.3124, allocations: 81.02 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/0.3124, allocations: 4 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.729e-05/0.3126, allocations: 11.98 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.3126, allocations: 15.91 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.3126, allocations: 4 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.926e-05/0.3127, allocations: 91.27 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3127, allocations: 0 / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003018/0.313, allocations: 39.98 kB / 1.07 GB, free: 7.973 MB / 0.8262 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,occ.y,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.0007282/0.3137, allocations: 0.8004 MB / 1.07 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002346/0.314, allocations: 71.89 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.314, allocations: 7.938 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.619e-05/0.3141, allocations: 40.05 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.3143, allocations: 13.48 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.3159, allocations: 1.495 MB / 1.072 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.3162, allocations: 0.6922 MB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.101e-05/0.3162, allocations: 7.984 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.613e-05/0.3163, allocations: 23.44 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3163, allocations: 0 / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.3352, allocations: 2.611 MB / 1.075 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.373/7.708, allocations: 3.031 kB / 1.075 GB, free: 2.203 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[553]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv failed! " Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:time,win.TIn,win.p,TIn.amplitude,TIn.f,TIn.offset