Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 108.6 kB / 15.73 MB, free: 72 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.002056/0.002056, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.946/2.946, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.91 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3214, allocations: 159.9 MB / 1.226 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002756/0.3242, allocations: 1.505 MB / 1.227 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.3256, allocations: 0.736 MB / 1.228 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.007e-05/0.3257, allocations: 0 / 1.228 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.753e-05/0.3258, allocations: 7.875 kB / 1.228 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.717e-05/0.3258, allocations: 15.86 kB / 1.228 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006033/0.3265, allocations: 119.6 kB / 1.228 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.3266, allocations: 83.75 kB / 1.228 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.3267, allocations: 19.94 kB / 1.228 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.656e-05/0.3268, allocations: 31.91 kB / 1.228 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.985e-05/0.3269, allocations: 39.83 kB / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.3269, allocations: 8 kB / 1.228 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.3271, allocations: 95.84 kB / 1.228 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.666e-05/0.3272, allocations: 19.92 kB / 1.228 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.07e-05/0.3272, allocations: 31.86 kB / 1.228 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000253/0.3275, allocations: 139.5 kB / 1.228 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3275, allocations: 0 / 1.228 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3275, allocations: 4 kB / 1.228 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.034e-06/0.3275, allocations: 3.938 kB / 1.228 GB, free: 6.336 MB / 0.9825 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.0006294/0.3282, allocations: 420.7 kB / 1.229 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3282, allocations: 12.03 kB / 1.229 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.3283, allocations: 8.891 kB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.3284, allocations: 176.3 kB / 1.229 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.3284, allocations: 4.375 kB / 1.229 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.3284, allocations: 8.375 kB / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.3286, allocations: 73.91 kB / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.3286, allocations: 0 / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.3287, allocations: 0 / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3287, allocations: 0 / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.3288, allocations: 35.97 kB / 1.229 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.3294, allocations: 328.6 kB / 1.229 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.3295, allocations: 46.55 kB / 1.229 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.153e-05/0.3296, allocations: 32.97 kB / 1.229 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.3297, allocations: 3.984 kB / 1.229 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.3299, allocations: 79.39 kB / 1.23 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 2.765e-06/0.3299, allocations: 0 / 1.23 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0003793/0.3303, allocations: 141.5 kB / 1.23 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.3303, allocations: 55.41 kB / 1.23 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.3304, allocations: 121.8 kB / 1.23 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.3305, allocations: 25.7 kB / 1.23 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.3305, allocations: 100.1 kB / 1.23 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.3306, allocations: 11.97 kB / 1.23 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.3306, allocations: 29.7 kB / 1.23 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3307, allocations: 326.8 kB / 1.23 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.771e-05/0.3308, allocations: 19.98 kB / 1.23 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.757e-05/0.3309, allocations: 50.56 kB / 1.23 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.3311, allocations: 78.48 kB / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3311, allocations: 0 / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002157/0.3313, allocations: 109.5 kB / 1.231 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3313, allocations: 4 kB / 1.231 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.3313, allocations: 3.938 kB / 1.231 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3314, allocations: 8 kB / 1.231 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.356e-05/0.3315, allocations: 19.98 kB / 1.231 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.3315, allocations: 0 / 1.231 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.3315, allocations: 11.94 kB / 1.231 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.3316, allocations: 4.391 kB / 1.231 GB, free: 3.785 MB / 0.9825 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.593e-05/0.3317, allocations: 125.5 kB / 1.231 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.3317, allocations: 7.953 kB / 1.231 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.731e-05/0.3317, allocations: 8.375 kB / 1.231 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3317, allocations: 4 kB / 1.231 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3317, allocations: 7.938 kB / 1.231 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3318, allocations: 0 / 1.231 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004231/0.3322, allocations: 390.3 kB / 1.231 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3322, allocations: 0 / 1.231 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.002e-05/0.3322, allocations: 7.984 kB / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3322, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.3323, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3323, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3323, allocations: 7.938 kB / 1.231 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.3325, allocations: 207.4 kB / 1.231 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.72e-05/0.3326, allocations: 81.06 kB / 1.231 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.3326, allocations: 8 kB / 1.231 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.068e-05/0.3327, allocations: 0 / 1.231 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.215e-05/0.3328, allocations: 11.92 kB / 1.231 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.3328, allocations: 4 kB / 1.231 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.701e-05/0.3328, allocations: 99.86 kB / 1.232 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3328, allocations: 0 / 1.232 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003153/0.3332, allocations: 43.86 kB / 1.232 GB, free: 2.691 MB / 0.9825 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.0003572/0.3335, allocations: 160.4 kB / 1.232 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00024/0.3338, allocations: 75.89 kB / 1.232 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3338, allocations: 0 / 1.232 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.476e-05/0.3339, allocations: 39.97 kB / 1.232 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.3341, allocations: 4 kB / 1.232 GB, free: 2.422 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004043/0.3346, allocations: 188.2 kB / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.3348, allocations: 0.6925 MB / 1.233 GB, free: 1.492 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.938e-05/0.3349, allocations: 4 kB / 1.233 GB, free: 1.488 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.3349, allocations: 15.42 kB / 1.233 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.3349, allocations: 0 / 1.233 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of Templates: time 0.00436/0.3393, allocations: 1.447 MB / 1.234 GB, free: 32 kB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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