Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",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.001232/0.001232, 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.001268/0.001269, allocations: 192.9 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.258/1.258, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.133/2.133, allocations: 390.2 MB / 0.6647 GB, free: 248 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 63.91 kB / 0.8126 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.72/0.7212, allocations: 140.4 MB / 0.9497 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut): time 0.002976/0.7243, allocations: 1.494 MB / 0.9512 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001244/0.7255, allocations: 0.7294 MB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.245e-05/0.7256, allocations: 1.094 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.612e-05/0.7256, allocations: 3.938 kB / 0.9519 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.965e-05/0.7257, allocations: 17.16 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006064/0.7263, allocations: 122.3 kB / 0.952 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.7265, allocations: 75.3 kB / 0.9521 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.7266, allocations: 13.52 kB / 0.9521 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.26e-05/0.7267, allocations: 45.52 kB / 0.9522 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.392e-05/0.7268, allocations: 35.91 kB / 0.9522 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.7268, allocations: 6.312 kB / 0.9522 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.727, allocations: 98.03 kB / 0.9523 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.7271, allocations: 18.08 kB / 0.9523 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.345e-05/0.7271, allocations: 31.62 kB / 0.9523 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.7274, allocations: 136 kB / 0.9525 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.7274, allocations: 1.219 kB / 0.9525 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7274, allocations: 0 / 0.9525 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.7274, allocations: 0 / 0.9525 GB, free: 7.043 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.0006109/0.728, allocations: 435.5 kB / 0.9529 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.7281, allocations: 10.44 kB / 0.9529 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.459e-05/0.7281, allocations: 32.19 kB / 0.9529 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.7282, allocations: 4.188 kB / 0.9529 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.15e-05/0.7283, allocations: 172 kB / 0.9531 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.7283, allocations: 7.438 kB / 0.9531 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.817e-05/0.7283, allocations: 3.562 kB / 0.9531 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.7285, allocations: 76.34 kB / 0.9532 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.7285, allocations: 3.984 kB / 0.9532 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.7285, allocations: 4 kB / 0.9532 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.7286, allocations: 1.562 kB / 0.9532 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.7287, allocations: 36.31 kB / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.7293, allocations: 326.4 kB / 0.9535 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.7294, allocations: 48.16 kB / 0.9536 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.36e-05/0.7295, allocations: 35.55 kB / 0.9536 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.7295, allocations: 1.281 kB / 0.9536 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.7297, allocations: 73.75 kB / 0.9537 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.7297, allocations: 4 kB / 0.9537 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004082/0.7301, allocations: 140.2 kB / 0.9538 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.7302, allocations: 53.75 kB / 0.9539 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.422e-05/0.7303, allocations: 120.2 kB / 0.954 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.7303, allocations: 30.83 kB / 0.954 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.6e-05/0.7303, allocations: 90.92 kB / 0.9541 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.7304, allocations: 14.66 kB / 0.9541 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.865e-05/0.7304, allocations: 33.67 kB / 0.9541 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.182e-05/0.7305, allocations: 325 kB / 0.9545 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.07e-05/0.7306, allocations: 26.67 kB / 0.9545 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.842e-05/0.7307, allocations: 43.88 kB / 0.9545 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.7308, allocations: 77.83 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7308, allocations: 1.219 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002261/0.7311, allocations: 113 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.7311, allocations: 5 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7311, allocations: 1.438 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.7311, allocations: 1.188 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.539e-05/0.7312, allocations: 11.77 kB / 0.9547 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.7312, allocations: 1.219 kB / 0.9547 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.213e-05/0.7313, allocations: 15.69 kB / 0.9547 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.7313, allocations: 2.969 kB / 0.9547 GB, free: 4.855 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 8.418e-05/0.7314, allocations: 134.6 kB / 0.9549 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.7314, allocations: 6.125 kB / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.703e-05/0.7315, allocations: 5.781 kB / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.7315, allocations: 1.469 kB / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.7315, allocations: 0 / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.7315, allocations: 5.531 kB / 0.9549 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.7319, allocations: 381.8 kB / 0.9553 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.7319, allocations: 5 kB / 0.9553 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.038e-05/0.732, allocations: 11.45 kB / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.732, allocations: 0 / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.732, allocations: 1.312 kB / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.732, allocations: 5.344 kB / 0.9553 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.732, allocations: 0 / 0.9553 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.7323, allocations: 213.2 kB / 0.9555 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.7323, allocations: 87.73 kB / 0.9556 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.7324, allocations: 1.406 kB / 0.9556 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.511e-05/0.7324, allocations: 6.625 kB / 0.9556 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.7325, allocations: 6.984 kB / 0.9556 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.7325, allocations: 5.562 kB / 0.9556 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.122e-05/0.7326, allocations: 93.52 kB / 0.9557 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7326, allocations: 4 kB / 0.9557 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002903/0.7329, allocations: 40.05 kB / 0.9557 GB, free: 3.938 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.0006652/0.7335, allocations: 0.8072 MB / 0.9565 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002462/0.7338, allocations: 74.8 kB / 0.9566 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7338, allocations: 0 / 0.9566 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.7339, allocations: 36.52 kB / 0.9566 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.7342, allocations: 14.77 kB / 0.9566 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.7356, allocations: 1.472 MB / 0.9581 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.7357, allocations: 0.6926 MB / 0.9587 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.784e-05/0.7358, allocations: 3.375 kB / 0.9587 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.365e-05/0.7358, allocations: 22.58 kB / 0.9588 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/0.7358, allocations: 0 / 0.9588 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7536/1.489, allocations: 2.602 MB / 0.9613 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.962/11.45, allocations: 10.94 kB / 0.9613 GB, free: 15.66 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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