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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008667/0.008668, allocations: 100 kB / 15.73 MB, free: 6.023 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.002043/0.002043, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.747/2.747, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 72.11 kB / 1.054 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3033, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002802/0.3062, allocations: 1.493 MB / 1.209 GB, free: 8.652 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.3075, allocations: 0.7365 MB / 1.209 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.228e-05/0.3076, allocations: 4 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.431e-05/0.3077, allocations: 7.922 kB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.106e-05/0.3077, allocations: 15.75 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006028/0.3083, allocations: 123.6 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3085, allocations: 63.84 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.111e-05/0.3086, allocations: 27.92 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.07e-05/0.3086, allocations: 27.92 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.852e-05/0.3087, allocations: 43.81 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.961e-05/0.3087, allocations: 11.94 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.3089, allocations: 91.91 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.754e-05/0.309, allocations: 19.92 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.838e-05/0.309, allocations: 31.86 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.3093, allocations: 147.8 kB / 1.21 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3093, allocations: 0 / 1.21 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3093, allocations: 0 / 1.21 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.3093, allocations: 4 kB / 1.21 GB, free: 7.301 MB / 0.9669 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.0006215/0.3099, allocations: 409 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.31, allocations: 8.625 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.981e-05/0.31, allocations: 38.73 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.3101, allocations: 8.844 kB / 1.21 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.3102, allocations: 176.2 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.3102, allocations: 4.375 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.3102, allocations: 4.375 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.3104, allocations: 81.7 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3105, allocations: 3.938 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.3105, allocations: 4 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.3105, allocations: 0 / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.3106, allocations: 35.97 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006223/0.3112, allocations: 316.7 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.3114, allocations: 46.56 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8e-05/0.3115, allocations: 32.91 kB / 1.211 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.3115, allocations: 4 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.3117, allocations: 79.44 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.3117, allocations: 4 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003719/0.3121, allocations: 133.6 kB / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.3122, allocations: 55.39 kB / 1.211 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.424e-05/0.3123, allocations: 125.8 kB / 1.212 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.3123, allocations: 29.64 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.3123, allocations: 92.12 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.3124, allocations: 19.75 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-05/0.3124, allocations: 33.7 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3125, allocations: 318.8 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.272e-05/0.3126, allocations: 27.97 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.786e-05/0.3127, allocations: 50.5 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.3129, allocations: 78.47 kB / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3129, allocations: 0 / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002374/0.3131, allocations: 113.5 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.3132, allocations: 8 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3132, allocations: 3.938 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.3132, allocations: 0 / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.778e-05/0.3133, allocations: 15.98 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3133, allocations: 4 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.031e-05/0.3134, allocations: 12.06 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.3134, allocations: 0 / 1.212 GB, free: 4.715 MB / 0.9669 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 8.831e-05/0.3135, allocations: 121.8 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.937e-05/0.3135, allocations: 15.81 kB / 1.212 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.3136, allocations: 12.38 kB / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.3136, allocations: 0 / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3136, allocations: 0 / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3136, allocations: 0 / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004388/0.314, allocations: 382.4 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.314, allocations: 0 / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-05/0.3141, allocations: 4 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3141, allocations: 4 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.3141, allocations: 7.984 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3141, allocations: 7.875 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.3141, allocations: 0 / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.3144, allocations: 207.4 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.3145, allocations: 85 kB / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.3145, allocations: 0 / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.1e-05/0.3146, allocations: 7.938 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.115e-05/0.3146, allocations: 11.98 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.3146, allocations: 0 / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.613e-05/0.3147, allocations: 99.86 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3147, allocations: 0 / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003148/0.315, allocations: 40 kB / 1.213 GB, free: 3.625 MB / 0.9669 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.0009006/0.3159, allocations: 0.8112 MB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002657/0.3162, allocations: 75.88 kB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3162, allocations: 0 / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.48e-05/0.3163, allocations: 31.98 kB / 1.214 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.3166, allocations: 13.81 kB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.3183, allocations: 1.496 MB / 1.216 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.3186, allocations: 0.6861 MB / 1.216 GB, free: 392 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.966e-05/0.3186, allocations: 7.984 kB / 1.216 GB, free: 384 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/0.3187, allocations: 19.44 kB / 1.216 GB, free: 364 kB / 0.9669 GB Notification: Performance of SimCode: time 4e-07/0.3187, allocations: 0 / 1.216 GB, free: 364 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/0.3381, allocations: 2.682 MB / 1.219 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.747/8.085, allocations: 9.719 kB / 1.219 GB, free: 13.8 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > 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/jenkins1/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,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed