Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.001511/0.001511, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00167/0.00167, allocations: 199.9 kB / 16.14 MB, free: 6.645 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.324/1.324, allocations: 222.9 MB / 239.8 MB, free: 4.508 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.246/2.246, allocations: 390.2 MB / 0.6643 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5615/0.5628, allocations: 140.4 MB / 0.9491 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002356/0.5652, allocations: 1.551 MB / 0.9506 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001151/0.5664, allocations: 0.7329 MB / 0.9513 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.5665, allocations: 0.6875 kB / 0.9513 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.218e-05/0.5666, allocations: 8.797 kB / 0.9513 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.104e-05/0.5666, allocations: 5.344 kB / 0.9513 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005759/0.5672, allocations: 104.1 kB / 0.9514 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.5673, allocations: 71.98 kB / 0.9515 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.753e-05/0.5674, allocations: 20.03 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.066e-05/0.5675, allocations: 29.86 kB / 0.9515 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.354e-05/0.5676, allocations: 44.36 kB / 0.9516 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.5676, allocations: 3.031 kB / 0.9516 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001888/0.5678, allocations: 85.72 kB / 0.9516 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.5678, allocations: 14.72 kB / 0.9517 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.5679, allocations: 36.05 kB / 0.9517 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.5681, allocations: 127.1 kB / 0.9518 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.5681, allocations: 13.25 kB / 0.9518 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.5682, allocations: 0 / 0.9518 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.5682, allocations: 3.938 kB / 0.9518 GB, free: 6.949 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.0006293/0.5688, allocations: 423.9 kB / 0.9522 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.5689, allocations: 9.812 kB / 0.9522 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.65e-05/0.5689, allocations: 35.83 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.38e-05/0.5689, allocations: 4.094 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.968e-05/0.569, allocations: 172.2 kB / 0.9524 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.5691, allocations: 7.031 kB / 0.9524 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.5691, allocations: 8.75 kB / 0.9525 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.5693, allocations: 67.81 kB / 0.9525 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.5693, allocations: 0 / 0.9525 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.5693, allocations: 5.25 kB / 0.9525 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.5694, allocations: 1.219 kB / 0.9525 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.5695, allocations: 43.39 kB / 0.9526 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/0.5701, allocations: 325.7 kB / 0.9529 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.5702, allocations: 45.97 kB / 0.9529 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.381e-05/0.5703, allocations: 31.03 kB / 0.953 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.5703, allocations: 1.344 kB / 0.953 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000207/0.5706, allocations: 85.09 kB / 0.953 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.5706, allocations: 0 / 0.953 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004149/0.571, allocations: 136.7 kB / 0.9532 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.571, allocations: 52.75 kB / 0.9532 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.5711, allocations: 120.6 kB / 0.9533 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.5712, allocations: 31.42 kB / 0.9534 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.5712, allocations: 94.52 kB / 0.9534 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.5712, allocations: 18.42 kB / 0.9535 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-05/0.5713, allocations: 26.73 kB / 0.9535 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.36e-05/0.5714, allocations: 320.4 kB / 0.9538 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.697e-05/0.5715, allocations: 30.02 kB / 0.9538 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.091e-05/0.5716, allocations: 50.02 kB / 0.9539 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.5717, allocations: 77.41 kB / 0.9539 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5717, allocations: 0 / 0.9539 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002336/0.572, allocations: 108.5 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.572, allocations: 6.5 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.572, allocations: 3.984 kB / 0.9541 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.572, allocations: 5.594 kB / 0.9541 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.5721, allocations: 12.09 kB / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.5722, allocations: 1.312 kB / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.071e-05/0.5722, allocations: 11.61 kB / 0.9541 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.5722, allocations: 3.781 kB / 0.9541 GB, free: 4.77 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 7.44e-05/0.5723, allocations: 122.2 kB / 0.9542 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.926e-05/0.5724, allocations: 11.47 kB / 0.9542 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.652e-05/0.5724, allocations: 9.672 kB / 0.9542 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.5724, allocations: 5.219 kB / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5724, allocations: 0 / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.5724, allocations: 1.25 kB / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003979/0.5728, allocations: 393.9 kB / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5728, allocations: 1.375 kB / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.976e-05/0.5729, allocations: 2.594 kB / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.5729, allocations: 1.219 kB / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.5729, allocations: 1.281 kB / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.5729, allocations: 11.92 kB / 0.9546 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.5729, allocations: 3.938 kB / 0.9546 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.5732, allocations: 206.7 kB / 0.9548 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.5732, allocations: 82.48 kB / 0.9549 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.5732, allocations: 1.312 kB / 0.9549 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.5733, allocations: 11.36 kB / 0.9549 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.5734, allocations: 2.312 kB / 0.9549 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.5734, allocations: 10.2 kB / 0.9549 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.559e-05/0.5734, allocations: 100.6 kB / 0.955 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.91e-07/0.5734, allocations: 0 / 0.955 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002944/0.5737, allocations: 35.94 kB / 0.9551 GB, free: 3.848 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.0006129/0.5744, allocations: 0.8074 MB / 0.9559 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002096/0.5746, allocations: 69.72 kB / 0.9559 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.5746, allocations: 0 / 0.9559 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.992e-05/0.5747, allocations: 36.56 kB / 0.956 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.5749, allocations: 13.44 kB / 0.956 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.5762, allocations: 1.495 MB / 0.9574 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.5763, allocations: 0.6849 MB / 0.9581 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.5764, allocations: 7.422 kB / 0.9581 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.5764, allocations: 18.09 kB / 0.9581 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.5764, allocations: 1.219 kB / 0.9581 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02178/0.5982, allocations: 2.413 MB / 0.9605 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002789/0.5985, allocations: 265.4 kB / 0.9607 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.625/2.223, allocations: 0 / 0.9607 GB, free: 15.45 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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