Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004848/0.004848, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.001112/0.001112, allocations: 198.2 kB / 16.68 MB, free: 5.98 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.289 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.524/2.524, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 66.33 kB / 0.9508 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3484, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002701/0.3512, allocations: 1.501 MB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00122/0.3524, allocations: 0.7258 MB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.276e-05/0.3525, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.944e-05/0.3525, allocations: 11.86 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.5e-05/0.3526, allocations: 3.938 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006034/0.3532, allocations: 127.6 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.3533, allocations: 79.77 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.3534, allocations: 11.97 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.396e-05/0.3535, allocations: 27.92 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.869e-05/0.3536, allocations: 43.83 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.3536, allocations: 8 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.3538, allocations: 107.8 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.584e-05/0.3538, allocations: 11.92 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.273e-05/0.3539, allocations: 35.86 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.3541, allocations: 143.5 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3542, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3542, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.3542, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 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.0006441/0.3548, allocations: 416.7 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.3549, allocations: 11.97 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.3549, allocations: 12.89 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.3551, allocations: 184.3 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.3551, allocations: 8.312 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.3551, allocations: 4.375 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.3553, allocations: 69.97 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3553, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3553, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3554, allocations: 4 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.3555, allocations: 35.97 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006076/0.3561, allocations: 324.7 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.3563, allocations: 54.55 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.897e-05/0.3563, allocations: 28.97 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.3564, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001998/0.3566, allocations: 87.3 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.3566, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003912/0.357, allocations: 137.6 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.357, allocations: 51.41 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.583e-05/0.3571, allocations: 121.8 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.3572, allocations: 29.7 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.3572, allocations: 92.14 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.092e-05/0.3572, allocations: 23.91 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.864e-05/0.3573, allocations: 29.7 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3574, allocations: 318.8 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.017e-05/0.3575, allocations: 27.98 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.643e-05/0.3576, allocations: 50.48 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.3578, allocations: 70.56 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.716e-06/0.3578, allocations: 0 / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002358/0.358, allocations: 117.5 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.358, allocations: 5.562 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.358, allocations: 4 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.3581, allocations: 4.062 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.416e-05/0.3582, allocations: 15.92 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3582, allocations: 3.938 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.444e-05/0.3582, allocations: 7.953 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.3583, allocations: 11.98 kB / 1.093 GB, free: 12.09 MB / 0.8575 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 9.1e-05/0.3584, allocations: 117.8 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/0.3584, allocations: 7.953 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.3584, allocations: 16.38 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3584, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.3584, allocations: 3.984 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3584, allocations: 3.984 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.3589, allocations: 374.4 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3589, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.983e-05/0.3589, allocations: 7.984 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3589, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.359, allocations: 4 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.359, allocations: 4 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.359, allocations: 7.938 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.3593, allocations: 211.4 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.3593, allocations: 89 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.3594, allocations: 0 / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.864e-05/0.3594, allocations: 7.984 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.3595, allocations: 7.938 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.3595, allocations: 8 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.924e-05/0.3596, allocations: 95.86 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3596, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002934/0.3599, allocations: 43.86 kB / 1.094 GB, free: 11 MB / 0.8575 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.0003311/0.3602, allocations: 156.6 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000253/0.3605, allocations: 79.88 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3605, allocations: 0 / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.38e-05/0.3606, allocations: 31.98 kB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.3609, allocations: 10.03 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003895/0.3613, allocations: 180.3 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.3615, allocations: 0.6904 MB / 1.095 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.73e-05/0.3616, allocations: 11.73 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.954e-05/0.3616, allocations: 11.44 kB / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3616, allocations: 0 / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of Templates: time 0.00419/0.3658, allocations: 1.454 MB / 1.096 GB, free: 8.34 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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