Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.001024/0.001024, allocations: 108 kB / 15.61 MB, free: 152 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.001064/0.001064, 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.293/1.293, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.134/2.134, allocations: 390.3 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001212, allocations: 67.89 kB / 0.8126 GB, free: 14.41 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7503/0.7515, allocations: 140.4 MB / 0.9497 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002458/0.754, allocations: 1.499 MB / 0.9512 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.7551, allocations: 0.7302 MB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.972e-05/0.7552, allocations: 0 / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.066e-05/0.7552, allocations: 7.875 kB / 0.9519 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.553e-05/0.7553, allocations: 17.58 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.7558, allocations: 122 kB / 0.952 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.7559, allocations: 75.62 kB / 0.9521 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.756, allocations: 13.75 kB / 0.9521 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.8e-05/0.7561, allocations: 42.06 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.348e-05/0.7561, allocations: 39.36 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.7562, allocations: 6.594 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001866/0.7564, allocations: 97.12 kB / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.7564, allocations: 11.58 kB / 0.9523 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.013e-05/0.7565, allocations: 39.09 kB / 0.9523 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.7567, allocations: 135.7 kB / 0.9525 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.7567, allocations: 0 / 0.9525 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.565e-06/0.7567, allocations: 1.125 kB / 0.9525 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.7567, allocations: 3.938 kB / 0.9525 GB, free: 6.977 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.00053/0.7572, allocations: 419.8 kB / 0.9529 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.7573, allocations: 10.16 kB / 0.9529 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.125e-05/0.7573, allocations: 44.39 kB / 0.9529 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.7574, allocations: 3.344 kB / 0.9529 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.338e-05/0.7574, allocations: 168.1 kB / 0.9531 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.7575, allocations: 2.938 kB / 0.9531 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.7575, allocations: 8.094 kB / 0.9531 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.7577, allocations: 68.72 kB / 0.9532 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.7577, allocations: 0 / 0.9532 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.7577, allocations: 9.016 kB / 0.9532 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.7577, allocations: 1.094 kB / 0.9532 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.7578, allocations: 35.95 kB / 0.9532 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.7583, allocations: 325.7 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.7584, allocations: 48.53 kB / 0.9536 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.41e-05/0.7585, allocations: 39.67 kB / 0.9536 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.7586, allocations: 5.281 kB / 0.9536 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001494/0.7587, allocations: 73.19 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.7587, allocations: 0 / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003633/0.7591, allocations: 141.5 kB / 0.9538 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.7591, allocations: 61.14 kB / 0.9539 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.548e-05/0.7592, allocations: 115.9 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.7592, allocations: 27.64 kB / 0.954 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.265e-05/0.7593, allocations: 94.48 kB / 0.9541 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.676e-05/0.7593, allocations: 18.05 kB / 0.9541 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.7593, allocations: 31.61 kB / 0.9541 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.081e-05/0.7594, allocations: 319.8 kB / 0.9545 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.34e-05/0.7595, allocations: 26.55 kB / 0.9545 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.757e-05/0.7596, allocations: 57.11 kB / 0.9545 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.7597, allocations: 68.7 kB / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7597, allocations: 0 / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000212/0.7599, allocations: 118 kB / 0.9547 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.7599, allocations: 5.5 kB / 0.9547 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.76, allocations: 0 / 0.9547 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.76, allocations: 2.562 kB / 0.9547 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.7601, allocations: 11.25 kB / 0.9547 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.7601, allocations: 5.625 kB / 0.9547 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.195e-05/0.7602, allocations: 8.188 kB / 0.9547 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.7602, allocations: 7.016 kB / 0.9548 GB, free: 4.793 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 7.814e-05/0.7603, allocations: 122.2 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.7603, allocations: 7.594 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.676e-05/0.7604, allocations: 13.55 kB / 0.9549 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.7604, allocations: 5.219 kB / 0.9549 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.7604, allocations: 0 / 0.9549 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.7604, allocations: 1 kB / 0.9549 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004537/0.7609, allocations: 382.8 kB / 0.9553 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.7609, allocations: 4 kB / 0.9553 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.386e-05/0.7609, allocations: 4.406 kB / 0.9553 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.7609, allocations: 0 / 0.9553 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.7609, allocations: 9.391 kB / 0.9553 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.761, allocations: 3.938 kB / 0.9553 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.761, allocations: 9.375 kB / 0.9553 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002296/0.7612, allocations: 200.5 kB / 0.9555 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.043e-05/0.7612, allocations: 87.39 kB / 0.9556 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.7613, allocations: 9.016 kB / 0.9556 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.319e-05/0.7613, allocations: 7.344 kB / 0.9556 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.7614, allocations: 2.25 kB / 0.9556 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-06/0.7614, allocations: 6.766 kB / 0.9556 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.49e-05/0.7614, allocations: 91.64 kB / 0.9557 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7614, allocations: 0 / 0.9557 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002823/0.7617, allocations: 36.78 kB / 0.9557 GB, free: 3.883 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.0006186/0.7624, allocations: 0.811 MB / 0.9565 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000229/0.7626, allocations: 78.27 kB / 0.9566 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7626, allocations: 0 / 0.9566 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.88e-05/0.7627, allocations: 32.39 kB / 0.9566 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.7629, allocations: 6.969 kB / 0.9566 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.7642, allocations: 1.488 MB / 0.9581 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.7643, allocations: 0.6843 MB / 0.9587 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.503e-05/0.7644, allocations: 11.48 kB / 0.9587 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.7644, allocations: 18.97 kB / 0.9588 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7644, allocations: 0 / 0.9588 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.846/3.61, allocations: 2.604 MB / 0.9613 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.247/12.86, allocations: 13.41 kB / 0.9613 GB, free: 15.59 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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