Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.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.Haldi2009WindowsTInTout,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout",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.001181/0.001181, 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.001214/0.001214, allocations: 195.5 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.851/2.851, allocations: 469.4 MB / 0.742 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 65.11 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2636, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout): time 0.002821/0.2665, allocations: 1.598 MB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.2678, allocations: 0.7768 MB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.539e-05/0.2678, allocations: 11.94 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.215e-05/0.2679, allocations: 3.938 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.815e-05/0.268, allocations: 19.78 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000587/0.2686, allocations: 147.5 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.2687, allocations: 131.6 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.2688, allocations: 27.97 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.269, allocations: 55.83 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.2691, allocations: 71.78 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.2691, allocations: 12 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.2693, allocations: 103.8 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.328e-05/0.2693, allocations: 27.91 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.691e-05/0.2694, allocations: 59.7 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.2697, allocations: 191.8 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.52e-07/0.2697, allocations: 4 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.29 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000712/0.2704, allocations: 482.4 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.2705, allocations: 12.03 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.916e-05/0.2705, allocations: 34.75 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.577e-05/0.2706, allocations: 8.844 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.2707, allocations: 197.1 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2707, allocations: 8.375 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/0.2708, allocations: 11.94 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.271, allocations: 93.56 kB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.271, allocations: 4 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.2711, allocations: 11.98 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2711, allocations: 0 / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.2713, allocations: 59.89 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008496/0.2721, allocations: 368.7 kB / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001766/0.2723, allocations: 66.55 kB / 1.068 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.2725, allocations: 56.83 kB / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.2725, allocations: 4.141 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.2727, allocations: 107.2 kB / 1.068 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.2727, allocations: 0 / 1.068 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0005533/0.2733, allocations: 213.4 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.2734, allocations: 59.41 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.2735, allocations: 148.6 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.2735, allocations: 29.7 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.369e-05/0.2736, allocations: 92.75 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.2736, allocations: 27.64 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-05/0.2737, allocations: 29.7 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2738, allocations: 322.8 kB / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.2739, allocations: 47.92 kB / 1.069 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.274, allocations: 76.25 kB / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.2743, allocations: 112.2 kB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2743, allocations: 4.047 kB / 1.069 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003409/0.2747, allocations: 157.4 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2747, allocations: 4 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2747, allocations: 4 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.2747, allocations: 0 / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.2749, allocations: 27.95 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.2749, allocations: 4 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.275, allocations: 11.89 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.275, allocations: 8 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 (win.curSeed,$PRE.win.curSeed,win.on,$PRE.win.on,win.occ,win.pClose,$PRE.win.pClose,win.pOpen,$PRE.win.pOpen,win.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 0.0001027/0.2751, allocations: 122.4 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.2752, allocations: 11.89 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.2752, allocations: 16.7 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2752, allocations: 7.938 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2752, allocations: 3.938 kB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2752, allocations: 0 / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006587/0.2759, allocations: 462.3 kB / 1.07 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2759, allocations: 0 / 1.07 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.276, allocations: 15.98 kB / 1.07 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.276, allocations: 4 kB / 1.07 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.276, allocations: 4 kB / 1.07 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.276, allocations: 4 kB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.276, allocations: 0 / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.2765, allocations: 267.3 kB / 1.07 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.2765, allocations: 88.95 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.2765, allocations: 0 / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.2767, allocations: 8.172 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.2767, allocations: 15.98 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.2767, allocations: 7.938 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.782e-05/0.2769, allocations: 109.9 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2769, allocations: 0 / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003132/0.2772, allocations: 40 kB / 1.071 GB, free: 6.906 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: 7 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008925/0.2781, allocations: 0.8635 MB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003169/0.2784, allocations: 111.8 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2784, allocations: 8.188 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.2786, allocations: 59.94 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.2788, allocations: 17.95 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.2808, allocations: 1.692 MB / 1.073 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.2811, allocations: 0.6963 MB / 1.074 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.594e-05/0.2812, allocations: 12.08 kB / 1.074 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.938e-05/0.2812, allocations: 31.42 kB / 1.074 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.2812, allocations: 4 kB / 1.074 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02228/0.3035, allocations: 3.347 MB / 1.077 GB, free: 60 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.242/7.546, allocations: 13.09 kB / 1.077 GB, free: 52 kB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_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_Haldi2009WindowsTInTout.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[552]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.pOpen,win.on Variables in the result:time,win.TIn,win.TOut,win.pClose,win.pOpen,TIn.amplitude