Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Zhang2012WindowsEast,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.0009353/0.0009352, allocations: 91.84 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.008005/0.008005, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.39/1.39, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.566/2.566, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003029/0.0003031, allocations: 11.94 kB / 0.8729 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8082/0.8085, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.001848/0.8104, allocations: 1.211 MB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.8118, allocations: 0.7169 MB / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.791e-05/0.8118, allocations: 0 / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.656e-05/0.8119, allocations: 4 kB / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.82e-05/0.812, allocations: 11.92 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005928/0.8126, allocations: 103.8 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.8127, allocations: 79.7 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.699e-05/0.8128, allocations: 8 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.8129, allocations: 27.92 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.719e-05/0.813, allocations: 35.81 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.813, allocations: 4 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.8133, allocations: 99.84 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.8133, allocations: 11.92 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.763e-05/0.8134, allocations: 61.48 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.8136, allocations: 137.9 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8136, allocations: 0 / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8137, allocations: 0 / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.8137, allocations: 0 / 1.026 GB, free: 13.3 MB / 0.7794 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.0006099/0.8143, allocations: 413 kB / 1.026 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.8143, allocations: 8.031 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.21e-05/0.8144, allocations: 34.75 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.487e-05/0.8144, allocations: 8.844 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.8145, allocations: 172.2 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.8146, allocations: 4.375 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.8146, allocations: 8.359 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.8148, allocations: 69.78 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.8148, allocations: 0 / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.8148, allocations: 11.98 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.8148, allocations: 0 / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.815, allocations: 43.97 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005963/0.8156, allocations: 332.5 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.8157, allocations: 50.56 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.373e-05/0.8158, allocations: 32.97 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.8159, allocations: 7.938 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.8161, allocations: 79.38 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.8161, allocations: 0 / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003894/0.8165, allocations: 157.5 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.8165, allocations: 51.41 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.605e-05/0.8166, allocations: 121.8 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.8166, allocations: 29.7 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.8167, allocations: 92.12 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.8167, allocations: 19.88 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.8168, allocations: 13.72 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.8169, allocations: 322.8 kB / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.233e-05/0.817, allocations: 31.98 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.832e-05/0.817, allocations: 54.55 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.8172, allocations: 82.48 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.8172, allocations: 0 / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002254/0.8175, allocations: 113.5 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.8175, allocations: 4 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.8175, allocations: 4 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.8175, allocations: 8.047 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.609e-05/0.8176, allocations: 8 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.8176, allocations: 7.938 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.545e-05/0.8177, allocations: 11.92 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.8177, allocations: 7.938 kB / 1.028 GB, free: 10.68 MB / 0.7794 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.28e-05/0.8178, allocations: 122.3 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.453e-05/0.8178, allocations: 7.906 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.8179, allocations: 8.375 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.8179, allocations: 7.922 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.8179, allocations: 4 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.8179, allocations: 0 / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000425/0.8183, allocations: 386.4 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.8183, allocations: 0 / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-05/0.8184, allocations: 8 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.778e-06/0.8184, allocations: 4 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.8184, allocations: 0 / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.8184, allocations: 7.938 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.8184, allocations: 3.984 kB / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.8187, allocations: 215.4 kB / 1.029 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.09e-05/0.8187, allocations: 85.02 kB / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.8188, allocations: 3.938 kB / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.709e-05/0.8188, allocations: 11.92 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.8189, allocations: 4 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.8189, allocations: 7.984 kB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.251e-05/0.819, allocations: 91.92 kB / 1.029 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.819, allocations: 0 / 1.029 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00027/0.8192, allocations: 36 kB / 1.029 GB, free: 9.582 MB / 0.7794 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.0007667/0.82, allocations: 0.826 MB / 1.03 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002242/0.8203, allocations: 75.91 kB / 1.03 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.8203, allocations: 0 / 1.03 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.662e-05/0.8204, allocations: 43.91 kB / 1.03 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.8206, allocations: 9.781 kB / 1.03 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.8222, allocations: 1.512 MB / 1.031 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.8224, allocations: 0.6887 MB / 1.032 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.416e-05/0.8224, allocations: 8 kB / 1.032 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.433e-05/0.8225, allocations: 23.42 kB / 1.032 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.8225, allocations: 0 / 1.032 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9236/1.746, allocations: 2.327 MB / 1.034 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/1.746, allocations: 256.7 kB / 1.034 GB, free: 3.82 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.918/4.664, allocations: 4 kB / 1.034 GB, free: 3.816 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.fmu > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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