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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.004186/0.004186, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001235/0.001235, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.938/2.938, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 67.89 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2793, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout): time 0.002706/0.282, allocations: 1.587 MB / 1.243 GB, free: 8.637 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.2834, allocations: 0.779 MB / 1.244 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.235e-05/0.2834, allocations: 0 / 1.244 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.539e-05/0.2835, allocations: 11.86 kB / 1.244 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.921e-05/0.2836, allocations: 23.8 kB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.2841, allocations: 147.5 kB / 1.244 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.2843, allocations: 135.6 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.347e-05/0.2844, allocations: 27.94 kB / 1.244 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.2845, allocations: 51.84 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.2846, allocations: 79.78 kB / 1.244 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.2847, allocations: 12 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.2849, allocations: 103.8 kB / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.423e-05/0.2849, allocations: 31.91 kB / 1.244 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.177e-05/0.285, allocations: 55.7 kB / 1.244 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.2853, allocations: 187.3 kB / 1.245 GB, free: 7 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2853, allocations: 4 kB / 1.245 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2853, allocations: 3.938 kB / 1.245 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.2853, allocations: 0 / 1.245 GB, free: 6.992 MB / 0.9981 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.000785/0.2861, allocations: 0.4903 MB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.2862, allocations: 8.031 kB / 1.245 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.253e-05/0.2862, allocations: 34.75 kB / 1.245 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/0.2862, allocations: 12.83 kB / 1.245 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.2864, allocations: 184.8 kB / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.2864, allocations: 4.375 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.663e-05/0.2865, allocations: 15.88 kB / 1.245 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.2867, allocations: 101.6 kB / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.2868, allocations: 0 / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.2868, allocations: 0 / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2868, allocations: 4 kB / 1.245 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.287, allocations: 63.89 kB / 1.245 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008709/0.2879, allocations: 368.7 kB / 1.246 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.2881, allocations: 62.55 kB / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.2882, allocations: 56.83 kB / 1.246 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.2883, allocations: 4.141 kB / 1.246 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.2885, allocations: 111.2 kB / 1.246 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.2885, allocations: 0 / 1.246 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.0006064/0.2891, allocations: 213.5 kB / 1.246 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.2892, allocations: 55.41 kB / 1.246 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.2893, allocations: 140 kB / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.2894, allocations: 33.7 kB / 1.246 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.868e-05/0.2894, allocations: 104.3 kB / 1.247 GB, free: 4.73 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.446e-05/0.2895, allocations: 19.83 kB / 1.247 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.51e-05/0.2895, allocations: 33.7 kB / 1.247 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.2897, allocations: 326.8 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.2898, allocations: 32.47 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.29, allocations: 88.19 kB / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.2903, allocations: 112.1 kB / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2903, allocations: 0 / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003765/0.2907, allocations: 165.4 kB / 1.247 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2907, allocations: 9.094 kB / 1.247 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.2907, allocations: 0 / 1.247 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.2907, allocations: 4 kB / 1.247 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.2909, allocations: 23.86 kB / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.2909, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.291, allocations: 23.88 kB / 1.247 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.291, allocations: 4 kB / 1.247 GB, free: 3.855 MB / 0.9981 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.0001072/0.2911, allocations: 121.9 kB / 1.247 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.2912, allocations: 7.953 kB / 1.248 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.217e-05/0.2912, allocations: 16.7 kB / 1.248 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.2912, allocations: 11.88 kB / 1.248 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.2912, allocations: 0 / 1.248 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2912, allocations: 0 / 1.248 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006796/0.2919, allocations: 458.4 kB / 1.248 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2919, allocations: 0 / 1.248 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.104e-05/0.292, allocations: 15.97 kB / 1.248 GB, free: 3.168 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.292, allocations: 3.984 kB / 1.248 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.292, allocations: 0 / 1.248 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.292, allocations: 4 kB / 1.248 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.292, allocations: 0 / 1.248 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004507/0.2925, allocations: 271.3 kB / 1.248 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.729e-05/0.2926, allocations: 89 kB / 1.248 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.2926, allocations: 4 kB / 1.248 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.2927, allocations: 8.047 kB / 1.248 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.2928, allocations: 8 kB / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.2928, allocations: 7.984 kB / 1.248 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.65e-05/0.2929, allocations: 105.1 kB / 1.248 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2929, allocations: 192 / 1.248 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003124/0.2932, allocations: 55.86 kB / 1.249 GB, free: 2.59 MB / 0.9981 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.001009/0.2942, allocations: 0.868 MB / 1.249 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003523/0.2946, allocations: 111.8 kB / 1.249 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2946, allocations: 0 / 1.249 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.2948, allocations: 55.97 kB / 1.25 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.2951, allocations: 10.34 kB / 1.25 GB, free: 1.539 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4575/0.7526, allocations: 1.718 MB / 1.251 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.7527, allocations: 0.6957 MB / 1.252 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.598e-05/0.7528, allocations: 7.797 kB / 1.252 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.977e-05/0.7529, allocations: 31.48 kB / 1.252 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of SimCode: time 6.71e-07/0.7529, allocations: 0 / 1.252 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02417/0.7771, allocations: 3.394 MB / 1.255 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.846/8.623, allocations: 20.98 kB / 1.255 GB, free: 13.25 MB / 0.9981 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 400 --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