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: translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001934/0.001934, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.392/1.392, allocations: 222.9 MB / 239.8 MB, free: 4.641 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.329/2.329, allocations: 390.2 MB / 0.6642 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.91 kB / 0.8118 GB, free: 14.93 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7365/0.7377, allocations: 140.4 MB / 0.9489 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002672/0.7404, allocations: 1.557 MB / 0.9504 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001174/0.7416, allocations: 0.7321 MB / 0.9511 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.377e-05/0.7417, allocations: 1.438 kB / 0.9511 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.4e-05/0.7417, allocations: 0 / 0.9511 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.976e-05/0.7418, allocations: 17.31 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004918/0.7423, allocations: 109.5 kB / 0.9513 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.417e-05/0.7424, allocations: 66.03 kB / 0.9513 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.7425, allocations: 16.67 kB / 0.9513 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.277e-05/0.7426, allocations: 33.7 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.25e-05/0.7427, allocations: 35.78 kB / 0.9514 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.7427, allocations: 3.281 kB / 0.9514 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.7429, allocations: 90.47 kB / 0.9515 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.7429, allocations: 18.89 kB / 0.9515 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.743, allocations: 27.78 kB / 0.9515 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.7432, allocations: 139.2 kB / 0.9517 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.7432, allocations: 0 / 0.9517 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.72e-07/0.7432, allocations: 1.344 kB / 0.9517 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.7432, allocations: 7.938 kB / 0.9517 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.0005568/0.7438, allocations: 419.9 kB / 0.9521 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.7438, allocations: 8.75 kB / 0.9521 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.291e-05/0.7439, allocations: 5.219 kB / 0.9521 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.38e-05/0.744, allocations: 175.2 kB / 0.9523 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.744, allocations: 11.27 kB / 0.9523 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.744, allocations: 4.062 kB / 0.9523 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.7442, allocations: 76.91 kB / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.7442, allocations: 0 / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.7442, allocations: 0 / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.7442, allocations: 1.125 kB / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.7444, allocations: 36.41 kB / 0.9524 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005197/0.7449, allocations: 329.8 kB / 0.9527 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.745, allocations: 49.08 kB / 0.9528 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.83e-05/0.7451, allocations: 31.5 kB / 0.9528 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.7451, allocations: 5.125 kB / 0.9528 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.7453, allocations: 74.34 kB / 0.9529 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.7453, allocations: 4 kB / 0.9529 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003722/0.7457, allocations: 143.4 kB / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.7457, allocations: 57.83 kB / 0.9531 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.342e-05/0.7458, allocations: 116 kB / 0.9532 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.7458, allocations: 31.17 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.388e-05/0.7459, allocations: 91 kB / 0.9533 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.7459, allocations: 14.81 kB / 0.9533 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.746, allocations: 33.55 kB / 0.9533 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.852e-05/0.746, allocations: 321.6 kB / 0.9536 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.626e-05/0.7461, allocations: 26.02 kB / 0.9537 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-05/0.7462, allocations: 43.94 kB / 0.9537 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.7463, allocations: 78.33 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.7463, allocations: 0 / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002204/0.7466, allocations: 113.2 kB / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.7466, allocations: 6.25 kB / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.7466, allocations: 400 / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.7466, allocations: 1.375 kB / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.98e-05/0.7467, allocations: 11.86 kB / 0.9539 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.7467, allocations: 6.375 kB / 0.9539 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.285e-05/0.7468, allocations: 11.09 kB / 0.9539 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.7468, allocations: 7.344 kB / 0.9539 GB, free: 4.902 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 6.776e-05/0.7469, allocations: 125.8 kB / 0.954 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.7469, allocations: 7.281 kB / 0.9541 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.7469, allocations: 10.66 kB / 0.9541 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.7469, allocations: 0 / 0.9541 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.747, allocations: 5.094 kB / 0.9541 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.747, allocations: 4 kB / 0.9541 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003605/0.7473, allocations: 390.7 kB / 0.9544 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.7473, allocations: 1.281 kB / 0.9544 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.671e-05/0.7474, allocations: 2.5 kB / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.7474, allocations: 5.422 kB / 0.9545 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.7474, allocations: 1.531 kB / 0.9545 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.7474, allocations: 0 / 0.9545 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7474, allocations: 7.938 kB / 0.9545 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.7477, allocations: 210.4 kB / 0.9547 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.115e-05/0.7477, allocations: 86.78 kB / 0.9547 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.7477, allocations: 5.25 kB / 0.9548 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.377e-05/0.7478, allocations: 1.531 kB / 0.9548 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.7478, allocations: 11.11 kB / 0.9548 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.7479, allocations: 6.281 kB / 0.9548 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.263e-05/0.7479, allocations: 93.7 kB / 0.9549 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7479, allocations: 4 kB / 0.9549 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003014/0.7482, allocations: 36.34 kB / 0.9549 GB, free: 3.984 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.0003141/0.7485, allocations: 165.1 kB / 0.9551 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002222/0.7488, allocations: 74.22 kB / 0.9551 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7488, allocations: 0 / 0.9551 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.153e-05/0.7489, allocations: 32.73 kB / 0.9552 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002443/0.7491, allocations: 10.23 kB / 0.9552 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003427/0.7495, allocations: 191.5 kB / 0.9554 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/0.7496, allocations: 0.6926 MB / 0.956 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.486e-05/0.7496, allocations: 3.469 kB / 0.956 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.71e-05/0.7497, allocations: 14.8 kB / 0.956 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of SimCode: time 3.3e-07/0.7497, allocations: 0 / 0.956 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of Templates: time 0.003747/0.7534, allocations: 1.372 MB / 0.9574 GB, free: 2.211 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (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 & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0