Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Zhang2012WindowsWest,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.005869/0.005869, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001281/0.001281, allocations: 194 kB / 16.68 MB, free: 5.969 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.688/2.688, allocations: 437 MB / 0.7105 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3196, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002643/0.3222, allocations: 1.5 MB / 1.168 GB, free: 5.801 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001341/0.3236, allocations: 0.7323 MB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.072e-05/0.3237, allocations: 0 / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.315e-05/0.3237, allocations: 3.938 kB / 1.168 GB, free: 5.059 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.737e-05/0.3238, allocations: 7.875 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.3245, allocations: 123.6 kB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001429/0.3247, allocations: 83.69 kB / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.3248, allocations: 12 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.3249, allocations: 31.92 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.629e-05/0.325, allocations: 43.81 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.325, allocations: 8 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.3253, allocations: 91.84 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.173e-05/0.3253, allocations: 15.98 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.234e-05/0.3254, allocations: 31.86 kB / 1.169 GB, free: 4.617 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.3257, allocations: 155.8 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3257, allocations: 0 / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.715e-06/0.3257, allocations: 0 / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.3257, allocations: 0 / 1.169 GB, free: 4.465 MB / 0.92 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.0007255/0.3264, allocations: 424.7 kB / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.3265, allocations: 8.031 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.799e-05/0.3265, allocations: 34.75 kB / 1.169 GB, free: 3.945 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.262e-05/0.3266, allocations: 12.83 kB / 1.169 GB, free: 3.934 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.3267, allocations: 172.3 kB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.3268, allocations: 12.36 kB / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.3268, allocations: 4.375 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.327, allocations: 69.78 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.327, allocations: 4 kB / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.327, allocations: 0 / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.327, allocations: 0 / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.3271, allocations: 35.97 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000622/0.3278, allocations: 320.7 kB / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.3279, allocations: 46.56 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.01e-05/0.328, allocations: 36.97 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.328, allocations: 0 / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.3283, allocations: 91.25 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 2.896e-06/0.3283, allocations: 3.984 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0003782/0.3287, allocations: 137.6 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3287, allocations: 59.41 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.3288, allocations: 121.7 kB / 1.17 GB, free: 2.695 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.3288, allocations: 29.7 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.95e-05/0.3289, allocations: 96.08 kB / 1.171 GB, free: 2.562 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.3289, allocations: 23.91 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.57e-05/0.329, allocations: 29.7 kB / 1.171 GB, free: 2.504 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3291, allocations: 326.8 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.954e-05/0.3292, allocations: 19.98 kB / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.053e-05/0.3293, allocations: 46.56 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.3295, allocations: 74.48 kB / 1.171 GB, free: 2.02 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3295, allocations: 4 kB / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002323/0.3297, allocations: 109.5 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3297, allocations: 10.03 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3297, allocations: 0 / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3298, allocations: 4.062 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-05/0.3299, allocations: 15.92 kB / 1.171 GB, free: 1.875 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3299, allocations: 4 kB / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.543e-05/0.3299, allocations: 8 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.33, allocations: 4.391 kB / 1.171 GB, free: 1.859 MB / 0.92 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 0.0001013/0.3301, allocations: 125.3 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.3301, allocations: 7.953 kB / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.3301, allocations: 8.375 kB / 1.171 GB, free: 1.715 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3301, allocations: 4 kB / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3302, allocations: 0 / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3302, allocations: 0 / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004367/0.3306, allocations: 390.3 kB / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3306, allocations: 3.938 kB / 1.172 GB, free: 1.27 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.748e-05/0.3307, allocations: 3.984 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3307, allocations: 4 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.3307, allocations: 4 kB / 1.172 GB, free: 1.258 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3307, allocations: 7.938 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3307, allocations: 0 / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002835/0.331, allocations: 207.4 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.223e-05/0.331, allocations: 85 kB / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.3311, allocations: 0 / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.643e-05/0.3312, allocations: 11.94 kB / 1.172 GB, free: 0.918 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-05/0.3312, allocations: 7.984 kB / 1.172 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.3312, allocations: 4 kB / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.536e-05/0.3313, allocations: 95.27 kB / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3313, allocations: 3.938 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003285/0.3316, allocations: 35.94 kB / 1.172 GB, free: 0.7734 MB / 0.92 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.0008902/0.3325, allocations: 0.8008 MB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002399/0.3328, allocations: 67.95 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3328, allocations: 0 / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.374e-05/0.3329, allocations: 35.92 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.3332, allocations: 20.05 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.3347, allocations: 1.487 MB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.3349, allocations: 0.6923 MB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.057e-05/0.335, allocations: 7.984 kB / 1.175 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.774e-05/0.335, allocations: 19.44 kB / 1.175 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.335, allocations: 0 / 1.175 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/0.3531, allocations: 2.641 MB / 1.178 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.316/7.67, allocations: 12.5 kB / 1.178 GB, free: 11 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.occ from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv failed! Error: Could not read variable win.on in file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.on from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_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