Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 99.25 kB / 16.35 MB, free: 5.824 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.001767/0.001767, allocations: 193.3 kB / 17.29 MB, free: 5.48 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 / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.444/2.444, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 68.75 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2874, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002726/0.2902, allocations: 1.512 MB / 1.028 GB, free: 0.5078 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.2914, allocations: 0.736 MB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.046e-05/0.2915, allocations: 4 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.079e-05/0.2915, allocations: 7.922 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.349e-05/0.2916, allocations: 11.88 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.2921, allocations: 123.6 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.2923, allocations: 67.84 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.328e-05/0.2924, allocations: 15.97 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.122e-05/0.2924, allocations: 39.86 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.275e-05/0.2925, allocations: 39.83 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.2925, allocations: 4 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.2927, allocations: 103.8 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.2928, allocations: 19.92 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.867e-05/0.2928, allocations: 27.86 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.293, allocations: 139.6 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.293, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.293, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.286e-06/0.2931, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 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.0005782/0.2936, allocations: 418.2 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.2937, allocations: 8.031 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.2937, allocations: 8.844 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.2939, allocations: 180.2 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.2939, allocations: 12.31 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.2939, allocations: 4.375 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.2941, allocations: 69.91 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.2941, allocations: 4 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.2941, allocations: 4 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2941, allocations: 3.938 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.2943, allocations: 39.97 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005555/0.2948, allocations: 304.8 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.295, allocations: 62.48 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.885e-05/0.2951, allocations: 36.97 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.2951, allocations: 0 / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.2952, allocations: 71.45 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.835e-06/0.2953, allocations: 3.984 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003791/0.2956, allocations: 149.5 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.2957, allocations: 55.41 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.2958, allocations: 117.8 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.2958, allocations: 29.7 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.67e-05/0.2959, allocations: 92.05 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.2959, allocations: 11.84 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.2959, allocations: 29.7 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.2961, allocations: 326.8 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.782e-05/0.2962, allocations: 27.98 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.036e-05/0.2963, allocations: 54.98 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.2964, allocations: 66.5 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.2964, allocations: 0 / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002282/0.2967, allocations: 121.7 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2967, allocations: 8 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2967, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.2967, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.387e-05/0.2968, allocations: 15.98 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.2968, allocations: 8.062 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.526e-05/0.2969, allocations: 7.906 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.2969, allocations: 3.984 kB / 1.032 GB, free: 12.62 MB / 0.8106 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.345e-05/0.297, allocations: 133.7 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/0.297, allocations: 7.906 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.492e-05/0.2971, allocations: 8.375 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2971, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2971, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2971, allocations: 3.984 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004286/0.2975, allocations: 382.4 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2975, allocations: 7.938 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.876e-05/0.2976, allocations: 3.984 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.2976, allocations: 4 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.2976, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2976, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.2976, allocations: 3.938 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.2979, allocations: 215.4 kB / 1.032 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.2979, allocations: 81.05 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.2979, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.298, allocations: 7.984 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.2981, allocations: 7.938 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.2981, allocations: 0 / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.126e-05/0.2982, allocations: 99.42 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2982, allocations: 0 / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002991/0.2985, allocations: 47.83 kB / 1.033 GB, free: 11.52 MB / 0.8106 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.0003039/0.2988, allocations: 159 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002367/0.299, allocations: 67.95 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2991, allocations: 3.938 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.014e-05/0.2991, allocations: 31.98 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.2994, allocations: 10.91 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.2998, allocations: 180.4 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.3001, allocations: 0.6885 MB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.49e-05/0.3001, allocations: 7.984 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.627e-05/0.3001, allocations: 15.38 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of SimCode: time 1.473e-06/0.3002, allocations: 4 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of Templates: time 0.003863/0.304, allocations: 1.446 MB / 1.035 GB, free: 8.871 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0