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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01038/0.01038, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001978/0.001978, allocations: 193.6 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.835/2.835, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002004, allocations: 60.12 kB / 1.054 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3345, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002613/0.3372, allocations: 1.495 MB / 1.209 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001311/0.3385, allocations: 0.7327 MB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.4e-05/0.3386, allocations: 0 / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.867e-05/0.3386, allocations: 3.938 kB / 1.209 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.936e-05/0.3387, allocations: 15.86 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.3393, allocations: 127.5 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.3394, allocations: 71.78 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.466e-05/0.3395, allocations: 19.94 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.129e-05/0.3396, allocations: 35.91 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.804e-05/0.3397, allocations: 35.84 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.3397, allocations: 4 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001964/0.3399, allocations: 103.8 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.871e-05/0.34, allocations: 27.89 kB / 1.21 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.649e-05/0.34, allocations: 31.86 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.3403, allocations: 139.9 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3403, allocations: 0 / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3403, allocations: 0 / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.3403, allocations: 0 / 1.21 GB, free: 7.285 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.0006907/0.341, allocations: 413 kB / 1.21 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3411, allocations: 12.62 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.722e-05/0.3411, allocations: 34.73 kB / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/0.3412, allocations: 12.84 kB / 1.21 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.3413, allocations: 176.2 kB / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.3413, allocations: 384 / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.3413, allocations: 8.375 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.3416, allocations: 81.77 kB / 1.211 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3416, allocations: 3.938 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3416, allocations: 0 / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3416, allocations: 0 / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.3417, allocations: 39.97 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006224/0.3424, allocations: 320.6 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.3425, allocations: 50.55 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.732e-05/0.3426, allocations: 32.97 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.3426, allocations: 0 / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/0.3429, allocations: 79.38 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.3429, allocations: 0 / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004047/0.3433, allocations: 141.6 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.3433, allocations: 51.41 kB / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3435, allocations: 129.7 kB / 1.212 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.3435, allocations: 29.7 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.465e-05/0.3435, allocations: 88.14 kB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.3436, allocations: 19.73 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.946e-05/0.3436, allocations: 29.7 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3438, allocations: 322.8 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.264e-05/0.3438, allocations: 27.98 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.108e-05/0.3439, allocations: 46.55 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.3441, allocations: 78.8 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3441, allocations: 0 / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002408/0.3444, allocations: 117.5 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.3444, allocations: 5.562 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3444, allocations: 3.984 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.3444, allocations: 7.938 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.015e-05/0.3445, allocations: 11.94 kB / 1.212 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3445, allocations: 3.938 kB / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.635e-05/0.3446, allocations: 12.05 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.3446, allocations: 8 kB / 1.212 GB, free: 4.68 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 9.126e-05/0.3447, allocations: 117.8 kB / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.657e-05/0.3447, allocations: 7.906 kB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.3448, allocations: 12.36 kB / 1.212 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3448, allocations: 4 kB / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.3448, allocations: 0 / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3448, allocations: 0 / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004465/0.3453, allocations: 382.4 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3453, allocations: 0 / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.928e-05/0.3453, allocations: 4 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3453, allocations: 0 / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.3453, allocations: 0 / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.3453, allocations: 11.92 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3454, allocations: 0 / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.3456, allocations: 211.4 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.786e-05/0.3457, allocations: 85.02 kB / 1.213 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.3457, allocations: 4 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.035e-05/0.3458, allocations: 11.92 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.3458, allocations: 7.938 kB / 1.213 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3459, allocations: 7.984 kB / 1.213 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.716e-05/0.3459, allocations: 91.27 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3459, allocations: 0 / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003028/0.3462, allocations: 40 kB / 1.213 GB, free: 3.598 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.0008638/0.3471, allocations: 0.8086 MB / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000256/0.3474, allocations: 72.22 kB / 1.214 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3474, allocations: 0 / 1.214 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.3475, allocations: 44.05 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.3478, allocations: 16.08 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.3497, allocations: 1.484 MB / 1.216 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.3501, allocations: 0.6885 MB / 1.216 GB, free: 364 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.257e-05/0.3502, allocations: 4 kB / 1.216 GB, free: 360 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.819e-05/0.3503, allocations: 27.42 kB / 1.216 GB, free: 332 kB / 0.9669 GB Notification: Performance of SimCode: time 6.11e-07/0.3503, allocations: 0 / 1.216 GB, free: 332 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.374, allocations: 2.678 MB / 1.219 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/8.163, allocations: 18.22 kB / 1.219 GB, free: 13.77 MB / 0.9825 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