Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_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.0008776/0.0008778, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005239/0.00524, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.295/1.295, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.122/2.122, allocations: 390.9 MB / 0.6664 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003075, allocations: 8 kB / 0.8161 GB, free: 13.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5562/0.5565, allocations: 142.4 MB / 0.9552 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.00118/0.5577, allocations: 1.214 MB / 0.9564 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008981/0.5586, allocations: 0.7167 MB / 0.9571 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.826e-05/0.5587, allocations: 5.062 kB / 0.9571 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.5587, allocations: 3.984 kB / 0.9571 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.749e-05/0.5588, allocations: 5.344 kB / 0.9571 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.5591, allocations: 101 kB / 0.9572 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.828e-05/0.5592, allocations: 74.38 kB / 0.9572 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.28e-05/0.5593, allocations: 21 kB / 0.9573 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.666e-05/0.5594, allocations: 37.53 kB / 0.9573 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.348e-05/0.5594, allocations: 31.59 kB / 0.9573 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.5595, allocations: 3.156 kB / 0.9573 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.5596, allocations: 89.47 kB / 0.9574 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.737e-05/0.5596, allocations: 17 kB / 0.9574 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.875e-05/0.5597, allocations: 55.3 kB / 0.9575 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.5598, allocations: 131.4 kB / 0.9576 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.5599, allocations: 0 / 0.9576 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5599, allocations: 5.125 kB / 0.9576 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.5599, allocations: 0 / 0.9576 GB, free: 5.766 MB / 0.7169 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.0004102/0.5603, allocations: 413 kB / 0.958 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.5603, allocations: 10.75 kB / 0.958 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.778e-05/0.5604, allocations: 38.73 kB / 0.958 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.5604, allocations: 8.438 kB / 0.9581 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.839e-05/0.5604, allocations: 171.8 kB / 0.9582 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.5605, allocations: 11.95 kB / 0.9582 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.5605, allocations: 7.969 kB / 0.9582 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.5606, allocations: 74.61 kB / 0.9583 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.5607, allocations: 0 / 0.9583 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.5607, allocations: 1.625 kB / 0.9583 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.5607, allocations: 0 / 0.9583 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.5608, allocations: 46 kB / 0.9584 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004452/0.5613, allocations: 321.8 kB / 0.9587 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.5614, allocations: 55.19 kB / 0.9587 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.498e-05/0.5615, allocations: 35.09 kB / 0.9587 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.5615, allocations: 5.688 kB / 0.9588 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.5616, allocations: 75.78 kB / 0.9588 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.5616, allocations: 0 / 0.9588 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003305/0.562, allocations: 156.3 kB / 0.959 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.001e-05/0.562, allocations: 53.59 kB / 0.959 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.931e-05/0.5621, allocations: 125.7 kB / 0.9591 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.5621, allocations: 26.95 kB / 0.9592 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.607e-05/0.5621, allocations: 93.67 kB / 0.9593 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.413e-05/0.5621, allocations: 14.45 kB / 0.9593 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.5622, allocations: 21.78 kB / 0.9593 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.782e-05/0.5622, allocations: 325.5 kB / 0.9596 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.535e-05/0.5623, allocations: 29.05 kB / 0.9596 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.966e-05/0.5624, allocations: 55.48 kB / 0.9597 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.5625, allocations: 79.38 kB / 0.9598 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.5625, allocations: 0 / 0.9598 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001995/0.5627, allocations: 127.1 kB / 0.9599 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.5628, allocations: 5.406 kB / 0.9599 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.5628, allocations: 3.938 kB / 0.9599 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.5628, allocations: 1.844 kB / 0.9599 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.978e-05/0.5629, allocations: 13.17 kB / 0.9599 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.5629, allocations: 5.688 kB / 0.9599 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.991e-05/0.5629, allocations: 9.781 kB / 0.9599 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.563, allocations: 11.08 kB / 0.9599 GB, free: 3.57 MB / 0.7169 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 5.485e-05/0.563, allocations: 122.1 kB / 0.96 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.563, allocations: 11.47 kB / 0.9601 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.009e-05/0.5631, allocations: 5.469 kB / 0.9601 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.5631, allocations: 1.75 kB / 0.9601 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5631, allocations: 0 / 0.9601 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.5631, allocations: 0 / 0.9601 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.5634, allocations: 389.1 kB / 0.9604 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.5634, allocations: 0 / 0.9604 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.509e-05/0.5634, allocations: 8.109 kB / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.5635, allocations: 1.375 kB / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.5635, allocations: 0 / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.5635, allocations: 5.312 kB / 0.9605 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5635, allocations: 0 / 0.9605 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002117/0.5637, allocations: 223.8 kB / 0.9607 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.5637, allocations: 82.39 kB / 0.9607 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.5637, allocations: 5.312 kB / 0.9607 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-05/0.5638, allocations: 8.062 kB / 0.9608 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.5639, allocations: 6.734 kB / 0.9608 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.5639, allocations: 10.69 kB / 0.9608 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.799e-05/0.5639, allocations: 96.17 kB / 0.9609 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5639, allocations: 0 / 0.9609 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002545/0.5642, allocations: 36.86 kB / 0.9609 GB, free: 2.664 MB / 0.7169 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.0005209/0.5647, allocations: 0.8164 MB / 0.9617 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001925/0.5649, allocations: 82.69 kB / 0.9618 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.5649, allocations: 0 / 0.9618 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.285e-05/0.565, allocations: 39.36 kB / 0.9618 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.5652, allocations: 12.05 kB / 0.9618 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.5663, allocations: 1.511 MB / 0.9633 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.5665, allocations: 0.6852 MB / 0.964 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.141e-05/0.5665, allocations: 6.984 kB / 0.964 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.648e-05/0.5666, allocations: 18.44 kB / 0.964 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.5666, allocations: 1.031 kB / 0.964 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.218/1.784, allocations: 2.331 MB / 0.9663 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002362/1.785, allocations: 253.3 kB / 0.9665 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/3.388, allocations: 9.906 kB / 0.9665 GB, free: 14.37 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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