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.00161/0.001611, 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.001749/0.001749, allocations: 195.2 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.557/1.557, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.833/2.833, allocations: 472.6 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 68.36 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3241, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002899/0.3271, allocations: 1.491 MB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.3285, allocations: 0.7361 MB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.413e-05/0.3285, allocations: 3.938 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.288e-05/0.3286, allocations: 3.938 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.3286, allocations: 11.88 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005514/0.3292, allocations: 123.6 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001295/0.3293, allocations: 79.75 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.3294, allocations: 19.98 kB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.172e-05/0.3295, allocations: 27.92 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.01e-05/0.3296, allocations: 43.81 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.3296, allocations: 8 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.3298, allocations: 95.84 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.988e-05/0.3299, allocations: 19.92 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.772e-05/0.3299, allocations: 27.86 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.3302, allocations: 139.9 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3302, allocations: 4 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.745e-06/0.3302, allocations: 4 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.3302, allocations: 0 / 1.071 GB, free: 7.52 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.0006775/0.3309, allocations: 417 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.331, allocations: 12.03 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.854e-05/0.331, allocations: 8.844 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.3311, allocations: 176.2 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.3312, allocations: 384 / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.3312, allocations: 12.38 kB / 1.072 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.3314, allocations: 69.97 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.3314, allocations: 0 / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3314, allocations: 0 / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3314, allocations: 3.938 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.3316, allocations: 35.97 kB / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000615/0.3322, allocations: 324.7 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.3323, allocations: 42.56 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.197e-05/0.3324, allocations: 36.97 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.3325, allocations: 4.062 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001885/0.3327, allocations: 83.38 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.3327, allocations: 0 / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.000388/0.3331, allocations: 137.5 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.3331, allocations: 59.41 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.3332, allocations: 125.7 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.3332, allocations: 25.7 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.391e-05/0.3333, allocations: 88.14 kB / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.3333, allocations: 27.72 kB / 1.073 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.3334, allocations: 29.7 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3335, allocations: 322.8 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.85e-05/0.3336, allocations: 23.98 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.783e-05/0.3337, allocations: 50.48 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.3339, allocations: 78.48 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3339, allocations: 0 / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002378/0.3341, allocations: 109.5 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.3341, allocations: 7.984 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3341, allocations: 0 / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3342, allocations: 4 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.926e-05/0.3343, allocations: 12.06 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.3343, allocations: 7.875 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.353e-05/0.3343, allocations: 11.98 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.3344, allocations: 4 kB / 1.073 GB, free: 4.969 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 0.000105/0.3345, allocations: 117.8 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.3345, allocations: 7.906 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.774e-05/0.3345, allocations: 12.36 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3345, allocations: 0 / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3345, allocations: 8 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3346, allocations: 0 / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004581/0.335, allocations: 382.3 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.335, allocations: 0 / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.076e-05/0.3351, allocations: 7.984 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.3351, allocations: 4 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.3351, allocations: 7.984 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3351, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3351, allocations: 7.938 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.3354, allocations: 203.4 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.3354, allocations: 81.02 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.3355, allocations: 7.938 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.558e-05/0.3356, allocations: 7.984 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.3356, allocations: 7.938 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.3356, allocations: 7.984 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.471e-05/0.3357, allocations: 95.92 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3357, allocations: 0 / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000283/0.336, allocations: 36 kB / 1.074 GB, free: 3.887 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.0003547/0.3364, allocations: 164.7 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002583/0.3366, allocations: 91.86 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3366, allocations: 0 / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.415e-05/0.3367, allocations: 31.98 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.337, allocations: 9.797 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004083/0.3374, allocations: 180.4 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.3377, allocations: 0.6885 MB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.427e-05/0.3377, allocations: 4 kB / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.724e-05/0.3378, allocations: 11.44 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3378, allocations: 0 / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of Templates: time 0.004276/0.3421, allocations: 1.448 MB / 1.077 GB, free: 1.223 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