Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00154/0.001539, allocations: 195 kB / 16.14 MB, free: 6.656 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.471/1.471, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.881/2.881, allocations: 472.6 MB / 0.7447 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.73 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3732, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.003422/0.3767, allocations: 1.566 MB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00139/0.3781, allocations: 0.7361 MB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.3781, allocations: 0 / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.906e-05/0.3782, allocations: 7.984 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.586e-05/0.3783, allocations: 11.86 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005177/0.3788, allocations: 99.83 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.647e-05/0.3789, allocations: 67.78 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.379, allocations: 15.97 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.46e-05/0.3791, allocations: 39.91 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.797e-05/0.3792, allocations: 39.77 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.3792, allocations: 0 / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003032/0.3795, allocations: 95.84 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.463e-05/0.3796, allocations: 15.92 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.22e-05/0.3796, allocations: 31.84 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.3799, allocations: 139.9 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3799, allocations: 0 / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.82e-07/0.3799, allocations: 0 / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.3799, allocations: 0 / 1.07 GB, free: 8.055 MB / 0.8262 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.0007866/0.3807, allocations: 413 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.3807, allocations: 8.031 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.731e-05/0.3808, allocations: 8.844 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.3809, allocations: 180.2 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.381, allocations: 4.375 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.381, allocations: 8.375 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.3812, allocations: 65.97 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3812, allocations: 11.94 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.3812, allocations: 0 / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3813, allocations: 0 / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.3814, allocations: 39.95 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006549/0.382, allocations: 316.7 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.3822, allocations: 58.55 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.945e-05/0.3823, allocations: 32.97 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.3823, allocations: 0 / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002479/0.3826, allocations: 71.38 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.3826, allocations: 0 / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004143/0.383, allocations: 145.5 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.3831, allocations: 55.41 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.3832, allocations: 121.7 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.3832, allocations: 29.7 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.289e-05/0.3833, allocations: 92.2 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.3833, allocations: 15.75 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.3834, allocations: 29.7 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3835, allocations: 330.8 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.901e-05/0.3836, allocations: 23.98 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.788e-05/0.3837, allocations: 50.55 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.3839, allocations: 66.5 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3839, allocations: 8 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002225/0.3841, allocations: 105.8 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.3841, allocations: 8 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3842, allocations: 0 / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3842, allocations: 3.938 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.64e-05/0.3843, allocations: 19.92 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.3843, allocations: 8.062 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.358e-05/0.3844, allocations: 8 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.3845, allocations: 15.98 kB / 1.073 GB, free: 5.5 MB / 0.8262 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.816e-05/0.3846, allocations: 117.8 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.3846, allocations: 7.906 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.3847, allocations: 8.375 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3847, allocations: 0 / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3847, allocations: 0 / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.3847, allocations: 3.984 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005411/0.3852, allocations: 390.4 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3852, allocations: 0 / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.841e-05/0.3853, allocations: 3.984 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.3853, allocations: 4 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.3853, allocations: 0 / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3853, allocations: 0 / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3853, allocations: 3.938 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.3857, allocations: 211.4 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.324e-05/0.3858, allocations: 81.02 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.3858, allocations: 4 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.691e-05/0.3859, allocations: 7.984 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.3861, allocations: 11.88 kB / 1.073 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.3861, allocations: 0 / 1.073 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.28e-05/0.3861, allocations: 95.27 kB / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3862, allocations: 0 / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003154/0.3865, allocations: 43.98 kB / 1.074 GB, free: 4.426 MB / 0.8262 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.0003817/0.3869, allocations: 166.9 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002466/0.3871, allocations: 71.88 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3871, allocations: 0 / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.874e-05/0.3872, allocations: 40.11 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.3875, allocations: 4.75 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004515/0.388, allocations: 196.1 kB / 1.074 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.3883, allocations: 0.6926 MB / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.841e-05/0.3883, allocations: 3.984 kB / 1.075 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.818e-05/0.3883, allocations: 11.44 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3883, allocations: 0 / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of Templates: time 0.004304/0.3926, allocations: 1.367 MB / 1.076 GB, free: 1.836 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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