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.001074/0.001074, 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.001274/0.001274, allocations: 191.7 kB / 16.13 MB, free: 6.695 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.337/1.337, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.242/2.242, allocations: 390.2 MB / 0.6643 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 55.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5138/0.5151, allocations: 140.4 MB / 0.949 GB, free: 9.473 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002391/0.5176, allocations: 1.555 MB / 0.9506 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.5186, allocations: 0.7323 MB / 0.9513 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.531e-05/0.5187, allocations: 1.469 kB / 0.9513 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.538e-05/0.5187, allocations: 7.922 kB / 0.9513 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.332e-05/0.5188, allocations: 5.125 kB / 0.9513 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.5193, allocations: 108.3 kB / 0.9514 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.562e-05/0.5194, allocations: 75.31 kB / 0.9515 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.997e-05/0.5195, allocations: 21.58 kB / 0.9515 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.016e-05/0.5196, allocations: 28.67 kB / 0.9515 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.872e-05/0.5196, allocations: 43.16 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.5196, allocations: 5.406 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.5198, allocations: 84.59 kB / 0.9516 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.301e-05/0.5199, allocations: 14.48 kB / 0.9517 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.875e-05/0.5199, allocations: 28.39 kB / 0.9517 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.5201, allocations: 140.2 kB / 0.9518 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.5201, allocations: 0 / 0.9518 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.92e-07/0.5201, allocations: 0 / 0.9518 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.5201, allocations: 0 / 0.9518 GB, free: 7.328 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.0004998/0.5206, allocations: 424.4 kB / 0.9522 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.5207, allocations: 9.906 kB / 0.9522 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.5207, allocations: 40.23 kB / 0.9523 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.5208, allocations: 3.625 kB / 0.9523 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.396e-05/0.5208, allocations: 176.2 kB / 0.9524 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.5209, allocations: 2.812 kB / 0.9524 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.5209, allocations: 13 kB / 0.9525 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.5211, allocations: 71.12 kB / 0.9525 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.5211, allocations: 0 / 0.9525 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.5211, allocations: 5.984 kB / 0.9525 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.5211, allocations: 0 / 0.9525 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.5212, allocations: 36.34 kB / 0.9526 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.5217, allocations: 326 kB / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.5219, allocations: 48.94 kB / 0.9529 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.552e-05/0.5219, allocations: 31.31 kB / 0.953 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.522, allocations: 5.469 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.5221, allocations: 76.69 kB / 0.953 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.5221, allocations: 1.75 kB / 0.953 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000366/0.5225, allocations: 143.5 kB / 0.9532 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.398e-05/0.5226, allocations: 57.33 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.787e-05/0.5226, allocations: 120.4 kB / 0.9533 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.5226, allocations: 30.77 kB / 0.9534 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.961e-05/0.5227, allocations: 94.66 kB / 0.9535 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.5227, allocations: 10.31 kB / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.341e-05/0.5227, allocations: 34.48 kB / 0.9535 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.668e-05/0.5228, allocations: 321.4 kB / 0.9538 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.045e-05/0.5229, allocations: 26.56 kB / 0.9538 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.479e-05/0.523, allocations: 52.06 kB / 0.9539 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.5231, allocations: 74.27 kB / 0.954 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5231, allocations: 0 / 0.954 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002226/0.5233, allocations: 112.4 kB / 0.9541 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.5234, allocations: 9.625 kB / 0.9541 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.5234, allocations: 1.562 kB / 0.9541 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.5234, allocations: 1.344 kB / 0.9541 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.212e-05/0.5235, allocations: 7.375 kB / 0.9541 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.5235, allocations: 5.328 kB / 0.9541 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.78e-05/0.5236, allocations: 11.72 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.5236, allocations: 3.781 kB / 0.9541 GB, free: 5.137 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.918e-05/0.5237, allocations: 123.2 kB / 0.9542 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.5237, allocations: 10.09 kB / 0.9542 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.391e-05/0.5237, allocations: 14.2 kB / 0.9542 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.5237, allocations: 1.031 kB / 0.9542 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.5237, allocations: 0 / 0.9542 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.5237, allocations: 1 kB / 0.9542 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003523/0.5241, allocations: 382.6 kB / 0.9546 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5241, allocations: 0 / 0.9546 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.083e-05/0.5242, allocations: 8.219 kB / 0.9546 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.5242, allocations: 4 kB / 0.9546 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.5242, allocations: 13.64 kB / 0.9546 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.5242, allocations: 3.938 kB / 0.9546 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5242, allocations: 1.562 kB / 0.9546 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.5244, allocations: 200.7 kB / 0.9548 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.648e-05/0.5245, allocations: 87.3 kB / 0.9549 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.5245, allocations: 9.078 kB / 0.9549 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.106e-05/0.5246, allocations: 10.59 kB / 0.9549 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.5246, allocations: 7.641 kB / 0.9549 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.5246, allocations: 1.188 kB / 0.9549 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.465e-05/0.5247, allocations: 93.39 kB / 0.955 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5247, allocations: 0 / 0.955 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003069/0.525, allocations: 35.62 kB / 0.9551 GB, free: 4.223 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.0005934/0.5256, allocations: 0.8069 MB / 0.9558 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002182/0.5258, allocations: 78.41 kB / 0.9559 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.5258, allocations: 128 / 0.9559 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.247e-05/0.5259, allocations: 36.3 kB / 0.956 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.5262, allocations: 18.12 kB / 0.956 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.5274, allocations: 1.483 MB / 0.9574 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.663e-05/0.5275, allocations: 0.6881 MB / 0.9581 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.924e-05/0.5275, allocations: 8.641 kB / 0.9581 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.929e-05/0.5276, allocations: 18.31 kB / 0.9581 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.5276, allocations: 4 kB / 0.9581 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01101/0.5386, allocations: 2.424 MB / 0.9605 GB, free: 120 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.5388, allocations: 256.5 kB / 0.9607 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/2.182, allocations: 4 kB / 0.9607 GB, free: 15.82 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