Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.001678/0.001678, allocations: 112.5 kB / 15.73 MB, free: 76 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.00175/0.00175, allocations: 194.5 kB / 16.67 MB, free: 6.582 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.718/2.718, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 68.11 kB / 1.083 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2999, allocations: 162.3 MB / 1.242 GB, free: 9.887 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002941/0.3029, allocations: 1.489 MB / 1.243 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.3043, allocations: 0.7284 MB / 1.244 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.547e-05/0.3044, allocations: 4 kB / 1.244 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.526e-05/0.3044, allocations: 11.86 kB / 1.244 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.802e-05/0.3045, allocations: 11.88 kB / 1.244 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.3051, allocations: 123.6 kB / 1.244 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000126/0.3052, allocations: 71.78 kB / 1.244 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.7e-05/0.3053, allocations: 19.95 kB / 1.244 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.235e-05/0.3054, allocations: 31.92 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.028e-05/0.3055, allocations: 47.81 kB / 1.244 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.3055, allocations: 4 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.3057, allocations: 99.84 kB / 1.244 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.646e-05/0.3058, allocations: 19.92 kB / 1.244 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.57e-05/0.3058, allocations: 27.86 kB / 1.244 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.3061, allocations: 139.5 kB / 1.245 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3061, allocations: 0 / 1.245 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.173e-06/0.3061, allocations: 0 / 1.245 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.3061, allocations: 0 / 1.245 GB, free: 7.047 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006407/0.3067, allocations: 428.7 kB / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3068, allocations: 12.03 kB / 1.245 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.317e-05/0.3068, allocations: 34.73 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.3069, allocations: 12.83 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.307, allocations: 172.3 kB / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.307, allocations: 4.375 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.3071, allocations: 8.312 kB / 1.245 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.3072, allocations: 73.78 kB / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.3073, allocations: 7.984 kB / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.3073, allocations: 4 kB / 1.245 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3073, allocations: 0 / 1.245 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.3074, allocations: 35.98 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.308, allocations: 320.6 kB / 1.246 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.3081, allocations: 46.56 kB / 1.246 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.022e-05/0.3082, allocations: 32.97 kB / 1.246 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.3082, allocations: 0 / 1.246 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.3084, allocations: 83.38 kB / 1.246 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.3084, allocations: 0 / 1.246 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003822/0.3088, allocations: 141.6 kB / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.3089, allocations: 59.39 kB / 1.246 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.309, allocations: 121.8 kB / 1.246 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.309, allocations: 29.7 kB / 1.246 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.818e-05/0.3091, allocations: 96.08 kB / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.3091, allocations: 11.91 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.3092, allocations: 25.7 kB / 1.246 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.3093, allocations: 322.8 kB / 1.247 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-05/0.3094, allocations: 35.97 kB / 1.247 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.3095, allocations: 42.56 kB / 1.247 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.3097, allocations: 74.48 kB / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3097, allocations: 0 / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002449/0.31, allocations: 121.5 kB / 1.247 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.31, allocations: 7.938 kB / 1.247 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.31, allocations: 400 / 1.247 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.31, allocations: 4 kB / 1.247 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.851e-05/0.3101, allocations: 15.92 kB / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3101, allocations: 0 / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.282e-05/0.3102, allocations: 7.938 kB / 1.247 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.3102, allocations: 7.938 kB / 1.247 GB, free: 4.438 MB / 0.9981 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 9.66e-05/0.3103, allocations: 125.8 kB / 1.247 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.3103, allocations: 7.953 kB / 1.247 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.239e-05/0.3103, allocations: 8.359 kB / 1.247 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3104, allocations: 4 kB / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3104, allocations: 0 / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3104, allocations: 0 / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004775/0.3108, allocations: 390.4 kB / 1.247 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3109, allocations: 0 / 1.247 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.3109, allocations: 4 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3109, allocations: 0 / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3109, allocations: 3.984 kB / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.3109, allocations: 3.938 kB / 1.247 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.3109, allocations: 4 kB / 1.247 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002998/0.3112, allocations: 211.4 kB / 1.248 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.714e-05/0.3113, allocations: 85.06 kB / 1.248 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.3113, allocations: 7.984 kB / 1.248 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.511e-05/0.3114, allocations: 7.938 kB / 1.248 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/0.3115, allocations: 3.984 kB / 1.248 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.709e-06/0.3115, allocations: 4 kB / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.08e-05/0.3115, allocations: 95.27 kB / 1.248 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3116, allocations: 0 / 1.248 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002848/0.3118, allocations: 39.88 kB / 1.248 GB, free: 3.352 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: 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.0008783/0.3127, allocations: 0.8096 MB / 1.249 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002274/0.313, allocations: 75.94 kB / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.313, allocations: 4 kB / 1.249 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.805e-05/0.3131, allocations: 35.92 kB / 1.249 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.3133, allocations: 3.938 kB / 1.249 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.315, allocations: 1.5 MB / 1.25 GB, free: 0.8164 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.3153, allocations: 0.6884 MB / 1.251 GB, free: 104 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.867e-05/0.3154, allocations: 11.97 kB / 1.251 GB, free: 92 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.3154, allocations: 15.44 kB / 1.251 GB, free: 76 kB / 0.9981 GB Notification: Performance of SimCode: time 2.71e-07/0.3154, allocations: 0 / 1.251 GB, free: 76 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.812/2.127, allocations: 2.638 MB / 1.253 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/13.82, allocations: 6.812 kB / 1.253 GB, free: 14.26 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed