Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.00151/0.00151, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001839/0.001839, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.325/1.325, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.571/2.571, allocations: 461.8 MB / 0.7342 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 68.52 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2573, allocations: 157.4 MB / 1.052 GB, free: 8.164 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.00273/0.2601, allocations: 1.56 MB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.2613, allocations: 0.7439 MB / 1.054 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.041e-05/0.2614, allocations: 0 / 1.054 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.249e-05/0.2614, allocations: 7.984 kB / 1.054 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.426e-05/0.2615, allocations: 3.938 kB / 1.054 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004825/0.262, allocations: 103.8 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.585e-05/0.2621, allocations: 67.78 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.142e-05/0.2622, allocations: 19.97 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.269e-05/0.2623, allocations: 27.86 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.565e-05/0.2624, allocations: 43.88 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.2624, allocations: 4 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001882/0.2626, allocations: 87.86 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.663e-05/0.2626, allocations: 19.91 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.503e-05/0.2627, allocations: 27.86 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.2629, allocations: 139.9 kB / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2629, allocations: 0 / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2629, allocations: 0 / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.286e-06/0.2629, allocations: 0 / 1.055 GB, free: 5.297 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.0005835/0.2635, allocations: 417 kB / 1.055 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2635, allocations: 11.97 kB / 1.055 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.652e-05/0.2636, allocations: 34.73 kB / 1.055 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.2636, allocations: 8.844 kB / 1.055 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.2638, allocations: 188 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.2638, allocations: 8.375 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.2638, allocations: 4.375 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.264, allocations: 65.78 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.264, allocations: 0 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.264, allocations: 12 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.264, allocations: 0 / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.2642, allocations: 35.97 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.2647, allocations: 312.7 kB / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.2649, allocations: 58.56 kB / 1.056 GB, free: 4 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.76e-05/0.265, allocations: 28.97 kB / 1.056 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.265, allocations: 4 kB / 1.056 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.2652, allocations: 71.45 kB / 1.056 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.2652, allocations: 3.938 kB / 1.056 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003753/0.2656, allocations: 149.5 kB / 1.056 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.2656, allocations: 51.41 kB / 1.056 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.395e-05/0.2657, allocations: 121.8 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.2657, allocations: 33.7 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.2658, allocations: 88.05 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.2658, allocations: 19.83 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.2659, allocations: 25.7 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.266, allocations: 322.8 kB / 1.057 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.829e-05/0.2661, allocations: 27.98 kB / 1.057 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.553e-05/0.2662, allocations: 50.55 kB / 1.057 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.2663, allocations: 74.42 kB / 1.057 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2664, allocations: 4 kB / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000235/0.2666, allocations: 113.8 kB / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2666, allocations: 11.98 kB / 1.057 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2666, allocations: 80 / 1.057 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.2666, allocations: 0 / 1.057 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.103e-05/0.2667, allocations: 8 kB / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.2668, allocations: 11.92 kB / 1.057 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.706e-05/0.2668, allocations: 11.89 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.2669, allocations: 4.062 kB / 1.057 GB, free: 2.695 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 8.055e-05/0.2669, allocations: 121.8 kB / 1.057 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.267, allocations: 7.906 kB / 1.057 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.496e-05/0.267, allocations: 12.36 kB / 1.057 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.267, allocations: 0 / 1.057 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.267, allocations: 0 / 1.057 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.267, allocations: 0 / 1.057 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004278/0.2674, allocations: 390.3 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2675, allocations: 0 / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.93e-05/0.2675, allocations: 7.984 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.2675, allocations: 4 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.2675, allocations: 3.984 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2675, allocations: 3.938 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2675, allocations: 0 / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.2678, allocations: 211.4 kB / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.2679, allocations: 77.11 kB / 1.058 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.2679, allocations: 3.938 kB / 1.058 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.025e-05/0.268, allocations: 11.92 kB / 1.058 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.268, allocations: 4 kB / 1.058 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.2681, allocations: 7.984 kB / 1.058 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.165e-05/0.2681, allocations: 99.27 kB / 1.058 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2681, allocations: 0 / 1.058 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002897/0.2684, allocations: 39.84 kB / 1.058 GB, free: 1.609 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.0007808/0.2692, allocations: 0.8005 MB / 1.059 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000221/0.2694, allocations: 71.89 kB / 1.059 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2694, allocations: 0 / 1.059 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.2695, allocations: 43.91 kB / 1.059 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/0.2698, allocations: 9.312 kB / 1.059 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.2713, allocations: 1.49 MB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.2715, allocations: 0.6888 MB / 1.061 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.925e-05/0.2716, allocations: 7.984 kB / 1.061 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.243e-05/0.2716, allocations: 19.44 kB / 1.061 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2716, allocations: 0 / 1.061 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.2841, allocations: 2.431 MB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.2844, allocations: 269.9 kB / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/1.931, allocations: 0 / 1.064 GB, free: 11.71 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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