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 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.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.00499/0.00499, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001283/0.001283, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.777/2.777, allocations: 472.7 MB / 0.7453 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 63.89 kB / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2808, allocations: 159.9 MB / 1.225 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002694/0.2835, allocations: 1.505 MB / 1.227 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.2849, allocations: 0.7284 MB / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.206e-05/0.285, allocations: 8 kB / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.174e-05/0.285, allocations: 7.875 kB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.224e-05/0.2851, allocations: 11.86 kB / 1.227 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005981/0.2857, allocations: 123.6 kB / 1.227 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.2859, allocations: 71.83 kB / 1.228 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.977e-05/0.286, allocations: 15.94 kB / 1.228 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.2861, allocations: 39.89 kB / 1.228 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.369e-05/0.2862, allocations: 43.78 kB / 1.228 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.2862, allocations: 8 kB / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.2864, allocations: 87.91 kB / 1.228 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.218e-05/0.2865, allocations: 23.91 kB / 1.228 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.251e-05/0.2865, allocations: 31.86 kB / 1.228 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.2868, allocations: 143.5 kB / 1.228 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2868, allocations: 0 / 1.228 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2868, allocations: 0 / 1.228 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.2868, allocations: 0 / 1.228 GB, free: 6.844 MB / 0.9825 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.0005972/0.2874, allocations: 424.7 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.2874, allocations: 8.031 kB / 1.228 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.699e-05/0.2875, allocations: 34.75 kB / 1.228 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.464e-05/0.2875, allocations: 8.891 kB / 1.228 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2876, allocations: 172.3 kB / 1.229 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.2877, allocations: 8.375 kB / 1.229 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.2877, allocations: 12.31 kB / 1.229 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.2879, allocations: 69.72 kB / 1.229 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.2879, allocations: 7.938 kB / 1.229 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.2879, allocations: 4 kB / 1.229 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2879, allocations: 0 / 1.229 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.2881, allocations: 39.95 kB / 1.229 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005601/0.2886, allocations: 312.7 kB / 1.229 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.2888, allocations: 54.55 kB / 1.229 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.342e-05/0.2889, allocations: 32.91 kB / 1.229 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.2889, allocations: 4 kB / 1.229 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001836/0.2891, allocations: 75.38 kB / 1.229 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2891, allocations: 0 / 1.229 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0003869/0.2895, allocations: 141.7 kB / 1.229 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.2895, allocations: 55.41 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.516e-05/0.2896, allocations: 130 kB / 1.229 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.2897, allocations: 25.7 kB / 1.229 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.387e-05/0.2897, allocations: 88.14 kB / 1.23 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.2897, allocations: 15.91 kB / 1.23 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.2898, allocations: 29.7 kB / 1.23 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.2899, allocations: 322.8 kB / 1.23 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.228e-05/0.29, allocations: 27.98 kB / 1.23 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.195e-05/0.2901, allocations: 50.59 kB / 1.23 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.2902, allocations: 70.5 kB / 1.23 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2902, allocations: 4 kB / 1.23 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002473/0.2905, allocations: 113.9 kB / 1.23 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.2905, allocations: 13.81 kB / 1.23 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2905, allocations: 0 / 1.23 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2905, allocations: 0 / 1.23 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.152e-05/0.2906, allocations: 11.98 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.2907, allocations: 8.062 kB / 1.23 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.469e-05/0.2907, allocations: 11.94 kB / 1.23 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.2907, allocations: 4.047 kB / 1.23 GB, free: 4.246 MB / 0.9825 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 8.652e-05/0.2908, allocations: 129.7 kB / 1.23 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.557e-05/0.2909, allocations: 3.953 kB / 1.23 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.2909, allocations: 12.38 kB / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2909, allocations: 0 / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2909, allocations: 0 / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2909, allocations: 0 / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004241/0.2913, allocations: 382.4 kB / 1.231 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2914, allocations: 0 / 1.231 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.123e-05/0.2914, allocations: 7.984 kB / 1.231 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.2914, allocations: 0 / 1.231 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.2914, allocations: 8 kB / 1.231 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2914, allocations: 7.875 kB / 1.231 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2914, allocations: 3.938 kB / 1.231 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.2917, allocations: 211.5 kB / 1.231 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.2918, allocations: 89.05 kB / 1.231 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.2918, allocations: 0 / 1.231 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.332e-05/0.2919, allocations: 15.92 kB / 1.231 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.2919, allocations: 4 kB / 1.231 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.292, allocations: 0 / 1.231 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.95e-05/0.292, allocations: 95.27 kB / 1.231 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.292, allocations: 0 / 1.231 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002902/0.2923, allocations: 43.86 kB / 1.231 GB, free: 3.148 MB / 0.9825 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.0007217/0.293, allocations: 0.8019 MB / 1.232 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002363/0.2933, allocations: 75.89 kB / 1.232 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2933, allocations: 0 / 1.232 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.432e-05/0.2934, allocations: 31.98 kB / 1.232 GB, free: 2.23 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.2937, allocations: 24.19 kB / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.2952, allocations: 1.499 MB / 1.234 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.2954, allocations: 0.6885 MB / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.527e-05/0.2955, allocations: 4 kB / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.2955, allocations: 23.42 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.2955, allocations: 0 / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.3139, allocations: 2.645 MB / 1.237 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/7.849, allocations: 3.594 kB / 1.237 GB, free: 13.38 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_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_Herkel2008WindowsSmall.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:time,win.TOut,win.p,TOut.amplitude,TOut.f,TOut.offset