Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.004995/0.004995, allocations: 101.1 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.001444/0.001444, allocations: 189.5 kB / 16.67 MB, free: 5.973 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.58/2.58, allocations: 482.6 MB / 0.7551 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 67.41 kB / 1.083 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2597, allocations: 162.3 MB / 1.242 GB, free: 9.012 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.00231/0.2621, allocations: 1.493 MB / 1.243 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.2632, allocations: 0.7259 MB / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.046e-05/0.2632, allocations: 0 / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.686e-05/0.2633, allocations: 3.938 kB / 1.244 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.414e-05/0.2633, allocations: 15.86 kB / 1.244 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.2638, allocations: 123.6 kB / 1.244 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.2639, allocations: 75.77 kB / 1.244 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.166e-05/0.264, allocations: 15.98 kB / 1.244 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.685e-05/0.264, allocations: 43.83 kB / 1.244 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.248e-05/0.2641, allocations: 35.84 kB / 1.244 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.2641, allocations: 4 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.2643, allocations: 95.91 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.575e-05/0.2644, allocations: 15.98 kB / 1.244 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.609e-05/0.2644, allocations: 39.78 kB / 1.244 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.2646, allocations: 143.8 kB / 1.245 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2646, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of FrontEnd: time 8.82e-07/0.2646, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.2646, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9669 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.0005574/0.2652, allocations: 424.7 kB / 1.245 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2652, allocations: 12.03 kB / 1.245 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.363e-05/0.2653, allocations: 30.75 kB / 1.245 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.2653, allocations: 12.89 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.2654, allocations: 176.3 kB / 1.245 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2655, allocations: 4.375 kB / 1.245 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.2655, allocations: 4.375 kB / 1.245 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.2657, allocations: 81.7 kB / 1.245 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.2657, allocations: 0 / 1.245 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.2657, allocations: 0 / 1.245 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.2657, allocations: 0 / 1.245 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.2658, allocations: 39.97 kB / 1.245 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005316/0.2664, allocations: 320.8 kB / 1.246 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.2665, allocations: 54.48 kB / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.071e-05/0.2666, allocations: 32.97 kB / 1.246 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.2666, allocations: 0 / 1.246 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/0.2668, allocations: 83.38 kB / 1.246 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 3.166e-06/0.2668, allocations: 0 / 1.246 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003564/0.2671, allocations: 137.5 kB / 1.246 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.2672, allocations: 59.36 kB / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.763e-05/0.2673, allocations: 121.8 kB / 1.246 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.2673, allocations: 29.7 kB / 1.246 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.2674, allocations: 96.08 kB / 1.246 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.2674, allocations: 19.84 kB / 1.246 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.433e-05/0.2675, allocations: 33.7 kB / 1.246 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.2676, allocations: 318.8 kB / 1.247 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.912e-05/0.2677, allocations: 27.98 kB / 1.247 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.045e-05/0.2678, allocations: 46.98 kB / 1.247 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.268, allocations: 74.5 kB / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.268, allocations: 0 / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002323/0.2682, allocations: 113.9 kB / 1.247 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.2682, allocations: 6.031 kB / 1.247 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2682, allocations: 4 kB / 1.247 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.2682, allocations: 0 / 1.247 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.226e-05/0.2683, allocations: 16.05 kB / 1.247 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.2683, allocations: 80 / 1.247 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.958e-05/0.2684, allocations: 7.984 kB / 1.247 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.2684, allocations: 11.98 kB / 1.247 GB, free: 3.57 MB / 0.9669 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.482e-05/0.2685, allocations: 123.2 kB / 1.247 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.2685, allocations: 7.953 kB / 1.247 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.2686, allocations: 8.375 kB / 1.247 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2686, allocations: 4 kB / 1.247 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2686, allocations: 4 kB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.2686, allocations: 7.922 kB / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.269, allocations: 370.5 kB / 1.247 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.269, allocations: 3.984 kB / 1.247 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.719e-05/0.2691, allocations: 7.938 kB / 1.247 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2691, allocations: 0 / 1.247 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.2691, allocations: 0 / 1.247 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.2691, allocations: 7.938 kB / 1.247 GB, free: 2.973 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2691, allocations: 4 kB / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.2694, allocations: 207.5 kB / 1.248 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.2694, allocations: 89 kB / 1.248 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.2695, allocations: 0 / 1.248 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.581e-05/0.2695, allocations: 11.92 kB / 1.248 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.138e-05/0.2696, allocations: 4 kB / 1.248 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.2696, allocations: 8 kB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.167e-05/0.2697, allocations: 99.42 kB / 1.248 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.2697, allocations: 0 / 1.248 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002561/0.2699, allocations: 39.92 kB / 1.248 GB, free: 2.484 MB / 0.9669 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.0007384/0.2707, allocations: 0.7995 MB / 1.249 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002217/0.2709, allocations: 75.89 kB / 1.249 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2709, allocations: 0 / 1.249 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.082e-05/0.271, allocations: 31.98 kB / 1.249 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.2712, allocations: 15.92 kB / 1.249 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.2727, allocations: 1.499 MB / 1.25 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.273, allocations: 0.6885 MB / 1.251 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.346e-05/0.2731, allocations: 8 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.263e-05/0.2731, allocations: 23.42 kB / 1.251 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.2731, allocations: 0 / 1.251 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8588/1.132, allocations: 2.64 MB / 1.253 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.76, allocations: 15.02 kB / 1.254 GB, free: 12.71 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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