Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.006405/0.006405, allocations: 103.4 kB / 15.74 MB, free: 6.484 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.001342/0.001342, allocations: 196.3 kB / 16.68 MB, free: 6.375 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.388/2.388, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 61.72 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2708, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002189/0.273, allocations: 1.497 MB / 1.089 GB, free: 472 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.274, allocations: 0.7337 MB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.952e-05/0.2741, allocations: 0 / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.576e-05/0.2741, allocations: 3.938 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.023e-05/0.2742, allocations: 11.88 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004959/0.2747, allocations: 119.6 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.2748, allocations: 83.75 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.062e-05/0.2749, allocations: 15.98 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.737e-05/0.275, allocations: 39.91 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.414e-05/0.2751, allocations: 39.83 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.2751, allocations: 4 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.2753, allocations: 95.84 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.314e-05/0.2754, allocations: 19.92 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.749e-05/0.2754, allocations: 23.86 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.2757, allocations: 142.5 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2757, allocations: 4 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2757, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.2757, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 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.0005746/0.2763, allocations: 421.8 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.2763, allocations: 12.03 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.283e-05/0.2764, allocations: 30.75 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.32e-05/0.2764, allocations: 8.844 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.2765, allocations: 188.1 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.2766, allocations: 8.375 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.2766, allocations: 8.312 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.2768, allocations: 69.78 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.2768, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.2768, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2768, allocations: 3.984 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.2769, allocations: 39.97 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005137/0.2775, allocations: 316.7 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.2776, allocations: 54.55 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.856e-05/0.2777, allocations: 32.97 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.2777, allocations: 0 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.2778, allocations: 83.44 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2779, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003527/0.2782, allocations: 137.5 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.2783, allocations: 55.41 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.142e-05/0.2783, allocations: 125.8 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.2784, allocations: 29.7 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.2784, allocations: 92.05 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.2784, allocations: 15.81 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.2785, allocations: 25.7 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.922e-05/0.2786, allocations: 326.8 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.708e-05/0.2787, allocations: 27.98 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.453e-05/0.2787, allocations: 46.55 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.2789, allocations: 78.48 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2789, allocations: 3.938 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002213/0.2791, allocations: 105.6 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.2792, allocations: 4 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2792, allocations: 0 / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2792, allocations: 8 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.47e-05/0.2793, allocations: 23.98 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.2793, allocations: 0 / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.982e-05/0.2793, allocations: 7.906 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.2794, allocations: 7.984 kB / 1.093 GB, free: 12.53 MB / 0.8575 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.019e-05/0.2794, allocations: 121.7 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.2795, allocations: 7.906 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.174e-05/0.2795, allocations: 8.375 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2795, allocations: 4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2795, allocations: 4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2795, allocations: 3.984 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.2799, allocations: 378.4 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2799, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-05/0.2799, allocations: 7.984 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.28, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.28, allocations: 3.938 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.28, allocations: 3.938 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.28, allocations: 8.469 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002401/0.2802, allocations: 215.3 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.2803, allocations: 85.02 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.2803, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.72e-05/0.2804, allocations: 11.92 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.2804, allocations: 0 / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.2804, allocations: 4 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.444e-05/0.2805, allocations: 99.27 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.375e-06/0.2805, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002542/0.2808, allocations: 39.92 kB / 1.093 GB, free: 11.44 MB / 0.8575 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.0006236/0.2814, allocations: 0.7953 MB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002013/0.2816, allocations: 75.88 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2816, allocations: 0 / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.25e-05/0.2817, allocations: 39.92 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.2819, allocations: 15.86 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.2832, allocations: 1.482 MB / 1.096 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.2834, allocations: 0.6885 MB / 1.096 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.147e-05/0.2835, allocations: 11.75 kB / 1.096 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/0.2835, allocations: 23.42 kB / 1.097 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of SimCode: time 1.813e-06/0.2835, allocations: 0 / 1.097 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.843/5.127, allocations: 2.635 MB / 1.099 GB, free: 5.684 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.745/12.87, allocations: 5.875 kB / 1.099 GB, free: 5.68 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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