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 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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.001132/0.001132, 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.001065/0.001065, allocations: 196.3 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.201/1.201, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.414/2.414, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 64.05 kB / 0.8992 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2235, allocations: 157.4 MB / 1.053 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002353/0.2259, allocations: 1.507 MB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.2269, allocations: 0.7442 MB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.275e-05/0.227, allocations: 4 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.309e-05/0.227, allocations: 3.938 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.638e-05/0.2271, allocations: 15.84 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.2275, allocations: 119.6 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.102e-05/0.2276, allocations: 71.78 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.123e-05/0.2277, allocations: 12 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.1e-05/0.2278, allocations: 39.89 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.701e-05/0.2278, allocations: 39.84 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.2279, allocations: 8 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.228, allocations: 91.84 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.353e-05/0.2281, allocations: 15.92 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.33e-05/0.2281, allocations: 39.84 kB / 1.056 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.2283, allocations: 143.9 kB / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.2283, allocations: 0 / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2283, allocations: 0 / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.157e-06/0.2283, 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.0005164/0.2288, allocations: 417 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.2289, allocations: 8.625 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.672e-05/0.2289, allocations: 34.75 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.054e-05/0.2289, allocations: 8.844 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.2291, allocations: 180.2 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.2291, allocations: 8.375 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.2291, allocations: 8.375 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.2293, allocations: 65.78 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-06/0.2293, allocations: 0 / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.2293, allocations: 4 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2293, allocations: 3.938 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.2294, allocations: 35.97 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005134/0.2299, allocations: 320.7 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.2301, allocations: 50.55 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.632e-05/0.2301, allocations: 32.97 kB / 1.057 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.2302, allocations: 8 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000144/0.2303, allocations: 75.38 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.2303, allocations: 0 / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003399/0.2307, allocations: 153.4 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.2307, allocations: 55.47 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.25e-05/0.2308, allocations: 121.8 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.2308, allocations: 25.7 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.655e-05/0.2309, allocations: 100 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.2309, allocations: 11.84 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.395e-05/0.2309, allocations: 29.7 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.091e-05/0.231, allocations: 322.8 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.63e-05/0.2311, allocations: 23.98 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.571e-05/0.2312, allocations: 54.55 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.2314, allocations: 70.5 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2314, allocations: 0 / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002232/0.2316, allocations: 109.5 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.2316, allocations: 8 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.2316, allocations: 0 / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.2317, allocations: 4.062 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.656e-05/0.2317, allocations: 15.92 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2318, allocations: 7.938 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.099e-05/0.2318, allocations: 11.91 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.2319, allocations: 3.984 kB / 1.058 GB, free: 2.855 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 7.723e-05/0.2319, allocations: 123.3 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.232, allocations: 3.906 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.202e-05/0.232, allocations: 16.38 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.232, allocations: 0 / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.232, allocations: 4 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.232, allocations: 0 / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003949/0.2324, allocations: 386.3 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2324, allocations: 0 / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-05/0.2325, allocations: 7.984 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2325, allocations: 0 / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.2325, allocations: 4 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2325, allocations: 7.938 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2325, allocations: 0 / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.2327, allocations: 215.3 kB / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.2328, allocations: 77.11 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.2328, allocations: 4 kB / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.43e-05/0.2329, allocations: 11.92 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.2329, allocations: 8 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.233, allocations: 0 / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.166e-05/0.233, allocations: 95.27 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.233, allocations: 0 / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002596/0.2333, allocations: 43.89 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.0006507/0.2339, allocations: 0.8027 MB / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002038/0.2341, allocations: 67.89 kB / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2342, allocations: 0 / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.193e-05/0.2342, allocations: 39.92 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.2345, allocations: 17.61 kB / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.2359, allocations: 1.479 MB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.2361, allocations: 0.6961 MB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.047e-05/0.2361, allocations: 4 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.785e-05/0.2362, allocations: 23.42 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.2362, allocations: 0 / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.455/1.691, allocations: 2.611 MB / 1.065 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/14.6, allocations: 11.23 kB / 1.065 GB, free: 12.03 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > 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/jenkins1/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,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