Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.001112/0.001112, allocations: 108 kB / 15.61 MB, free: 148 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.001104/0.001104, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.188/2.188, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 60.05 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5167/0.5179, allocations: 140.4 MB / 0.9497 GB, free: 9.309 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002137/0.5201, allocations: 1.471 MB / 0.9512 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009145/0.521, allocations: 0.7406 MB / 0.9519 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.521e-05/0.521, allocations: 1.312 kB / 0.9519 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.755e-05/0.5211, allocations: 7.922 kB / 0.9519 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.192e-05/0.5211, allocations: 9.031 kB / 0.9519 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.5216, allocations: 122 kB / 0.952 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.137e-05/0.5216, allocations: 76.19 kB / 0.9521 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.162e-05/0.5217, allocations: 21.48 kB / 0.9521 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.573e-05/0.5218, allocations: 37.14 kB / 0.9521 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.172e-05/0.5219, allocations: 36.28 kB / 0.9522 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.5219, allocations: 5.562 kB / 0.9522 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.522, allocations: 98.31 kB / 0.9523 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.131e-05/0.5221, allocations: 18.59 kB / 0.9523 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.564e-05/0.5221, allocations: 32.27 kB / 0.9523 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.5223, allocations: 132.1 kB / 0.9525 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.5223, allocations: 4 kB / 0.9525 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.422e-06/0.5223, allocations: 3.938 kB / 0.9525 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.5223, allocations: 0 / 0.9525 GB, free: 7.188 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.0004482/0.5228, allocations: 427.8 kB / 0.9529 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.5228, allocations: 10.56 kB / 0.9529 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.497e-05/0.5228, allocations: 31.94 kB / 0.9529 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.111e-05/0.5229, allocations: 7.797 kB / 0.9529 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.514e-05/0.5229, allocations: 168.4 kB / 0.9531 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.523, allocations: 11.16 kB / 0.9531 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.523, allocations: 8.531 kB / 0.9531 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.5231, allocations: 71.73 kB / 0.9532 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.5232, allocations: 3.984 kB / 0.9532 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.5232, allocations: 0 / 0.9532 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.5232, allocations: 1.375 kB / 0.9532 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001172/0.5233, allocations: 40.62 kB / 0.9532 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.5238, allocations: 318.3 kB / 0.9535 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.5239, allocations: 56.05 kB / 0.9536 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.199e-05/0.524, allocations: 36.12 kB / 0.9536 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.524, allocations: 1.469 kB / 0.9536 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.5241, allocations: 80.52 kB / 0.9537 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.5241, allocations: 0 / 0.9537 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003278/0.5245, allocations: 145.3 kB / 0.9538 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.207e-05/0.5245, allocations: 52.88 kB / 0.9539 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.922e-05/0.5246, allocations: 124.6 kB / 0.954 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.5246, allocations: 38.52 kB / 0.954 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.765e-05/0.5246, allocations: 90.61 kB / 0.9541 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.5246, allocations: 15.64 kB / 0.9541 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.5247, allocations: 25.81 kB / 0.9541 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.518e-05/0.5247, allocations: 324 kB / 0.9545 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.053e-05/0.5248, allocations: 27.58 kB / 0.9545 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.375e-05/0.5249, allocations: 48.33 kB / 0.9545 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.525, allocations: 73.5 kB / 0.9546 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.525, allocations: 0 / 0.9546 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001967/0.5252, allocations: 112.9 kB / 0.9547 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.5252, allocations: 7.219 kB / 0.9547 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.5253, allocations: 0 / 0.9547 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.5253, allocations: 5.438 kB / 0.9547 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.227e-05/0.5254, allocations: 16.7 kB / 0.9547 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.5254, allocations: 1.406 kB / 0.9547 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.952e-05/0.5254, allocations: 12.11 kB / 0.9547 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.5254, allocations: 2.562 kB / 0.9548 GB, free: 4.988 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.516e-05/0.5255, allocations: 127.5 kB / 0.9549 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.5255, allocations: 6.719 kB / 0.9549 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.018e-05/0.5256, allocations: 9.969 kB / 0.9549 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.5256, allocations: 5.438 kB / 0.9549 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.5256, allocations: 0 / 0.9549 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.5256, allocations: 3.984 kB / 0.9549 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003189/0.5259, allocations: 383.4 kB / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.5259, allocations: 0 / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.5259, allocations: 4.25 kB / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.526, allocations: 0 / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.526, allocations: 1.562 kB / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.526, allocations: 11.88 kB / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.526, allocations: 0 / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.5262, allocations: 209.8 kB / 0.9555 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.606e-05/0.5262, allocations: 83.39 kB / 0.9556 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.5262, allocations: 1.062 kB / 0.9556 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.5263, allocations: 10.17 kB / 0.9556 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.992e-05/0.5264, allocations: 3.125 kB / 0.9556 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.5264, allocations: 10.23 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.817e-05/0.5264, allocations: 87.91 kB / 0.9557 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.82e-07/0.5264, allocations: 0 / 0.9557 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002671/0.5267, allocations: 45.02 kB / 0.9557 GB, free: 4.082 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.0005235/0.5272, allocations: 0.8115 MB / 0.9565 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002099/0.5274, allocations: 74.92 kB / 0.9566 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.5275, allocations: 0 / 0.9566 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.535e-05/0.5275, allocations: 39.56 kB / 0.9566 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.5278, allocations: 17.53 kB / 0.9566 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.5289, allocations: 1.476 MB / 0.9581 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.391e-05/0.529, allocations: 0.6844 MB / 0.9587 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.107e-05/0.529, allocations: 7.859 kB / 0.9587 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.529, allocations: 19.5 kB / 0.9588 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.5291, allocations: 0 / 0.9588 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.5448, allocations: 2.613 MB / 0.9613 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.47/7.015, allocations: 12.52 kB / 0.9613 GB, free: 15.81 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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