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 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: "" <> 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.0009129/0.0009129, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005482/0.005482, allocations: 169.4 kB / 16.26 MB, free: 6.648 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.309/1.309, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.025/3.025, allocations: 462.6 MB / 0.7364 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003076, allocations: 9.281 kB / 0.9029 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2573, allocations: 159.6 MB / 1.059 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.001623/0.259, allocations: 1.225 MB / 1.06 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2602, allocations: 0.7168 MB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.563e-05/0.2603, allocations: 0 / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.824e-05/0.2603, allocations: 3.938 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.887e-05/0.2604, allocations: 11.92 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004797/0.2609, allocations: 103.8 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.789e-05/0.261, allocations: 63.84 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.364e-05/0.2611, allocations: 19.97 kB / 1.061 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.688e-05/0.2612, allocations: 27.86 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.936e-05/0.2612, allocations: 35.83 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.2613, allocations: 4 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.2615, allocations: 87.91 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.519e-05/0.2615, allocations: 23.86 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.543e-05/0.2616, allocations: 53.56 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.2618, allocations: 139.8 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2618, allocations: 0 / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2618, allocations: 4 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.2618, allocations: 0 / 1.061 GB, free: 2.379 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.0005537/0.2624, allocations: 405 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2624, allocations: 15.97 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.97e-05/0.2625, allocations: 30.75 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.2625, allocations: 4.938 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.2626, allocations: 184.2 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.2627, allocations: 8.375 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.2627, allocations: 4.375 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.2629, allocations: 69.78 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.2629, allocations: 0 / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.2629, allocations: 7.938 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.2629, allocations: 11.94 kB / 1.062 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.263, allocations: 39.97 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005939/0.2636, allocations: 316.7 kB / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.2638, allocations: 58.55 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.527e-05/0.2639, allocations: 32.97 kB / 1.062 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.2639, allocations: 3.938 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.2641, allocations: 83.44 kB / 1.062 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.2641, allocations: 4 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003834/0.2645, allocations: 145.5 kB / 1.063 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.2646, allocations: 59.41 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.72e-05/0.2647, allocations: 121.8 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.2647, allocations: 29.7 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.2648, allocations: 88.14 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.2648, allocations: 19.69 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.2648, allocations: 17.7 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.2649, allocations: 326.8 kB / 1.063 GB, free: 104 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-05/0.265, allocations: 31.98 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.635e-05/0.2651, allocations: 46.56 kB / 1.063 GB, free: 16 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.2653, allocations: 78.55 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2653, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002518/0.2656, allocations: 129.4 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2656, allocations: 4 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.2656, allocations: 0 / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2656, allocations: 4 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.327e-05/0.2657, allocations: 20.05 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.2657, allocations: 0 / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.484e-05/0.2658, allocations: 15.88 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.2658, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 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.069e-05/0.2659, allocations: 129.8 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.2659, allocations: 3.906 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.629e-05/0.266, allocations: 8.375 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.266, allocations: 7.938 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.266, allocations: 0 / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.266, allocations: 0 / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004585/0.2665, allocations: 390.4 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2665, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.151e-05/0.2665, allocations: 7.984 kB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2665, allocations: 4 kB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.2666, allocations: 0 / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.2666, allocations: 7.938 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2666, allocations: 3.938 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.2669, allocations: 211.4 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.2669, allocations: 89 kB / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.2669, allocations: 0 / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.267, allocations: 7.938 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.258e-05/0.2671, allocations: 7.984 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.2671, allocations: 8 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.017e-05/0.2671, allocations: 91.92 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2672, allocations: 0 / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000285/0.2674, allocations: 36 kB / 1.065 GB, free: 14.66 MB / 0.8262 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.0007448/0.2682, allocations: 0.8205 MB / 1.065 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002245/0.2684, allocations: 87.81 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2684, allocations: 0 / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.497e-05/0.2685, allocations: 35.98 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.2688, allocations: 7.938 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.2703, allocations: 1.52 MB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2706, allocations: 0.6848 MB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.863e-05/0.2706, allocations: 7.984 kB / 1.068 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.2707, allocations: 19.44 kB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2707, allocations: 0 / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01297/0.2837, allocations: 2.326 MB / 1.07 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/0.2839, allocations: 267.4 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/1.991, allocations: 0 / 1.07 GB, free: 8.84 MB / 0.8262 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=50 --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