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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.00121/0.00121, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.151/2.151, allocations: 390.3 MB / 0.6647 GB, free: 412 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 67.89 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5126/0.514, allocations: 140.4 MB / 0.9497 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002017/0.5161, allocations: 1.491 MB / 0.9512 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008804/0.517, allocations: 0.7337 MB / 0.9519 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.509e-05/0.517, allocations: 0.9062 kB / 0.9519 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.731e-05/0.5171, allocations: 11.88 kB / 0.9519 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.186e-05/0.5171, allocations: 5.406 kB / 0.9519 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004444/0.5176, allocations: 122.5 kB / 0.952 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.322e-05/0.5177, allocations: 79.05 kB / 0.9521 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.484e-05/0.5177, allocations: 13.64 kB / 0.9521 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.643e-05/0.5178, allocations: 33.62 kB / 0.9521 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.294e-05/0.5179, allocations: 47.23 kB / 0.9522 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.5179, allocations: 7.312 kB / 0.9522 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.518, allocations: 94.5 kB / 0.9523 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.5181, allocations: 18.62 kB / 0.9523 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.5181, allocations: 30.7 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.5183, allocations: 140.1 kB / 0.9525 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.5183, allocations: 0 / 0.9525 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.92e-07/0.5183, allocations: 1 kB / 0.9525 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.087e-06/0.5183, allocations: 0 / 0.9525 GB, free: 6.965 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.0004342/0.5188, allocations: 432.2 kB / 0.9529 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.5188, allocations: 8.812 kB / 0.9529 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.326e-05/0.5188, allocations: 36.06 kB / 0.9529 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.999e-05/0.5189, allocations: 4.75 kB / 0.9529 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.571e-05/0.5189, allocations: 172.1 kB / 0.9531 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.5189, allocations: 7.422 kB / 0.9531 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.519, allocations: 7.25 kB / 0.9531 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.5191, allocations: 72.3 kB / 0.9532 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.5191, allocations: 3.984 kB / 0.9532 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.5191, allocations: 4.781 kB / 0.9532 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.5191, allocations: 1.531 kB / 0.9532 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.5193, allocations: 36.91 kB / 0.9532 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.5197, allocations: 321 kB / 0.9535 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.5198, allocations: 49.44 kB / 0.9536 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.002e-05/0.5199, allocations: 31.84 kB / 0.9536 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.5199, allocations: 0 / 0.9536 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/0.5201, allocations: 78.09 kB / 0.9537 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.5201, allocations: 3.938 kB / 0.9537 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003192/0.5204, allocations: 144.2 kB / 0.9538 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.5204, allocations: 56.75 kB / 0.9539 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.81e-05/0.5205, allocations: 117.8 kB / 0.954 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.5205, allocations: 26.98 kB / 0.954 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.567e-05/0.5205, allocations: 91.12 kB / 0.9541 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.5206, allocations: 13.56 kB / 0.9541 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.5206, allocations: 34.02 kB / 0.9541 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.465e-05/0.5206, allocations: 329.4 kB / 0.9545 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.138e-05/0.5207, allocations: 22.77 kB / 0.9545 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.353e-05/0.5208, allocations: 43.53 kB / 0.9545 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.5209, allocations: 74.3 kB / 0.9546 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5209, allocations: 4 kB / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001928/0.5211, allocations: 116.7 kB / 0.9547 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/0.5212, allocations: 5.844 kB / 0.9547 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.5212, allocations: 5.562 kB / 0.9547 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.5212, allocations: 0 / 0.9547 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.367e-05/0.5213, allocations: 17.08 kB / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.5213, allocations: 1.25 kB / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.951e-05/0.5213, allocations: 11.28 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.5214, allocations: 7.719 kB / 0.9548 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 5.312e-05/0.5214, allocations: 129.9 kB / 0.9549 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.5214, allocations: 7.406 kB / 0.9549 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.95e-05/0.5215, allocations: 9.781 kB / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.5215, allocations: 1.094 kB / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5215, allocations: 0 / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.5215, allocations: 1.156 kB / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/0.5218, allocations: 383 kB / 0.9553 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.5218, allocations: 0 / 0.9553 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-05/0.5219, allocations: 8.297 kB / 0.9553 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.5219, allocations: 0 / 0.9553 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.108e-06/0.5219, allocations: 5.406 kB / 0.9553 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5219, allocations: 4.016 kB / 0.9553 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5219, allocations: 3.984 kB / 0.9553 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.5221, allocations: 209.6 kB / 0.9555 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.516e-05/0.5221, allocations: 91.75 kB / 0.9556 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.5221, allocations: 1.375 kB / 0.9556 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.211e-05/0.5222, allocations: 10.69 kB / 0.9556 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.5223, allocations: 6.422 kB / 0.9556 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.5223, allocations: 2.031 kB / 0.9556 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.88e-05/0.5223, allocations: 97.14 kB / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5223, allocations: 0 / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002604/0.5226, allocations: 36.66 kB / 0.9557 GB, free: 3.859 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.0005071/0.5231, allocations: 0.8078 MB / 0.9565 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000197/0.5233, allocations: 74.12 kB / 0.9566 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.5233, allocations: 0 / 0.9566 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.385e-05/0.5234, allocations: 36.98 kB / 0.9566 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.5236, allocations: 18.86 kB / 0.9566 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.5247, allocations: 1.477 MB / 0.9581 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.014e-05/0.5248, allocations: 0.6917 MB / 0.9587 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.052e-05/0.5248, allocations: 3.094 kB / 0.9587 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.5249, allocations: 23.61 kB / 0.9588 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5249, allocations: 0 / 0.9588 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.08/1.605, allocations: 2.592 MB / 0.9613 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.767/8.372, allocations: 14.06 kB / 0.9613 GB, free: 15.6 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