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.001072/0.001072, allocations: 108 kB / 15.61 MB, free: 148 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.001054/0.001054, allocations: 196.2 kB / 16.53 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.245/1.245, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.471/2.471, allocations: 461.9 MB / 0.7346 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.89 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2311, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002467/0.2336, allocations: 1.491 MB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001147/0.2347, allocations: 0.7443 MB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.525e-05/0.2348, allocations: 7.938 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.774e-05/0.2348, allocations: 7.875 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.926e-05/0.2349, allocations: 3.938 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.2353, allocations: 123.6 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.061e-05/0.2354, allocations: 71.78 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.825e-05/0.2355, allocations: 15.98 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.359e-05/0.2356, allocations: 35.91 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.324e-05/0.2357, allocations: 35.84 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.2357, allocations: 8 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.2359, allocations: 91.84 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.56e-05/0.2359, allocations: 31.89 kB / 1.056 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.935e-05/0.2359, allocations: 31.86 kB / 1.056 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001966/0.2361, allocations: 139.9 kB / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2362, allocations: 0 / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2362, allocations: 0 / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.2362, allocations: 0 / 1.056 GB, free: 5.453 MB / 0.8106 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.000536/0.2367, allocations: 417 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.2368, allocations: 8.625 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.564e-05/0.2368, allocations: 34.73 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.2368, allocations: 12.84 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.45e-05/0.2369, allocations: 176.2 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.237, allocations: 8.375 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.237, allocations: 4.375 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.2371, allocations: 73.75 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.2372, allocations: 4 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.2372, allocations: 4 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2372, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.2373, allocations: 47.91 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005235/0.2378, allocations: 312.7 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.238, allocations: 50.56 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.667e-05/0.2381, allocations: 36.97 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.2381, allocations: 4 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001601/0.2383, allocations: 71.38 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2383, allocations: 3.938 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003715/0.2386, allocations: 145.6 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.2387, allocations: 51.41 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.083e-05/0.2388, allocations: 125.8 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.2388, allocations: 33.7 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.2389, allocations: 88.05 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.2389, allocations: 15.83 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.2389, allocations: 33.64 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.879e-05/0.239, allocations: 318.8 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.751e-05/0.2391, allocations: 27.98 kB / 1.058 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.933e-05/0.2392, allocations: 54.55 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.2394, allocations: 70.48 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2394, allocations: 0 / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002334/0.2396, allocations: 113.5 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.2396, allocations: 9.719 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2397, allocations: 3.984 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.2397, allocations: 0 / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.885e-05/0.2398, allocations: 15.94 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.2398, allocations: 4 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.375e-05/0.2398, allocations: 15.83 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.958e-06/0.2399, allocations: 0 / 1.058 GB, free: 2.852 MB / 0.8106 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.464e-05/0.24, allocations: 125.8 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.362e-05/0.24, allocations: 3.906 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.474e-05/0.24, allocations: 16.36 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.24, allocations: 0 / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.24, allocations: 0 / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.24, allocations: 0 / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004166/0.2404, allocations: 382.4 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2405, allocations: 0 / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.686e-05/0.2405, allocations: 4 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2405, allocations: 8 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-06/0.2405, allocations: 0 / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.2405, allocations: 7.922 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2405, allocations: 0 / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.2408, allocations: 215.8 kB / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.762e-05/0.2409, allocations: 77.11 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.2409, allocations: 4 kB / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-05/0.241, allocations: 15.92 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.068e-05/0.241, allocations: 4 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.241, allocations: 3.984 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.481e-05/0.2411, allocations: 95.92 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2411, allocations: 0 / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002764/0.2414, allocations: 39.91 kB / 1.059 GB, free: 1.77 MB / 0.8106 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.0006664/0.242, allocations: 0.8047 MB / 1.06 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002069/0.2422, allocations: 71.89 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.2423, allocations: 4.125 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.214e-05/0.2424, allocations: 39.91 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.2426, allocations: 7.938 kB / 1.06 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.244, allocations: 1.476 MB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.2443, allocations: 0.6922 MB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.306e-05/0.2443, allocations: 7.984 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.2444, allocations: 19.44 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2444, allocations: 4 kB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.2617, allocations: 2.62 MB / 1.065 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.44/8.702, allocations: 6.859 kB / 1.065 GB, free: 12.02 MB / 0.8262 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