Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.005385/0.005385, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001088/0.001088, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 64.11 kB / 1.054 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.33, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.003063/0.3331, allocations: 1.491 MB / 1.209 GB, free: 8.66 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3347, allocations: 0.7404 MB / 1.209 GB, free: 7.914 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.118e-05/0.3348, allocations: 3.938 kB / 1.209 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.884e-05/0.3348, allocations: 3.938 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.252e-05/0.3349, allocations: 15.86 kB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000696/0.3356, allocations: 119.6 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.3358, allocations: 71.84 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3359, allocations: 11.94 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.336, allocations: 39.91 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.169e-05/0.3361, allocations: 39.84 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.3362, allocations: 4 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.3364, allocations: 99.84 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.3364, allocations: 23.89 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.14e-05/0.3365, allocations: 27.86 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.3368, allocations: 151.8 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3368, allocations: 0 / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3368, allocations: 0 / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.219e-05/0.3369, allocations: 0 / 1.21 GB, free: 7.312 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.0007417/0.3376, allocations: 413 kB / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.3377, allocations: 8.625 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.636e-05/0.3377, allocations: 42.73 kB / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.884e-05/0.3378, allocations: 8.844 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.338, allocations: 176.2 kB / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.338, allocations: 384 / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.338, allocations: 8.375 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002213/0.3383, allocations: 77.75 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3383, allocations: 7.938 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.3383, allocations: 0 / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.3383, allocations: 0 / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.3385, allocations: 35.97 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006777/0.3392, allocations: 320.7 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.3393, allocations: 50.56 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.039e-05/0.3394, allocations: 36.95 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.3394, allocations: 7.938 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002345/0.3397, allocations: 75.38 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.793e-06/0.3397, allocations: 0 / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004123/0.3401, allocations: 137.7 kB / 1.211 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.3402, allocations: 55.41 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.3403, allocations: 125.7 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.3403, allocations: 25.7 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.3405, allocations: 96.08 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.3405, allocations: 15.73 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/0.3406, allocations: 29.7 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002317/0.3408, allocations: 326.8 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.615e-05/0.3409, allocations: 23.98 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.3411, allocations: 50.55 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.3413, allocations: 70.55 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3413, allocations: 11.88 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002676/0.3416, allocations: 109.5 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3416, allocations: 4 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3417, allocations: 3.984 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.922e-05/0.3417, allocations: 4 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.3418, allocations: 8 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3419, allocations: 0 / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.432e-05/0.3419, allocations: 11.98 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.342, allocations: 8.062 kB / 1.212 GB, free: 4.719 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 0.0001056/0.3421, allocations: 121.7 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.324e-05/0.3421, allocations: 7.906 kB / 1.212 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.501e-05/0.3421, allocations: 16.3 kB / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3422, allocations: 4 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3422, allocations: 0 / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3422, allocations: 0 / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006575/0.3428, allocations: 382.4 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3429, allocations: 0 / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.024e-05/0.3429, allocations: 4 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.3429, allocations: 0 / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.3429, allocations: 0 / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.178e-05/0.343, allocations: 7.922 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.343, allocations: 3.938 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/0.3433, allocations: 211.9 kB / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/0.3434, allocations: 85.02 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.3434, allocations: 4 kB / 1.213 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.981e-05/0.3435, allocations: 7.922 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.3436, allocations: 4 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.3436, allocations: 11.98 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.671e-05/0.3437, allocations: 91.27 kB / 1.213 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.204e-06/0.3437, allocations: 0 / 1.213 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003271/0.344, allocations: 39.94 kB / 1.213 GB, free: 3.633 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.001019/0.3451, allocations: 0.8166 MB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002438/0.3453, allocations: 71.89 kB / 1.214 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3453, allocations: 4 kB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.3454, allocations: 35.97 kB / 1.214 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.3457, allocations: 9.812 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.00202/0.3478, allocations: 1.492 MB / 1.216 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.3482, allocations: 0.6885 MB / 1.216 GB, free: 392 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.844e-05/0.3482, allocations: 4 kB / 1.216 GB, free: 388 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.787e-05/0.3483, allocations: 23.42 kB / 1.216 GB, free: 364 kB / 0.9669 GB Notification: Performance of SimCode: time 7.32e-07/0.3483, allocations: 4 kB / 1.216 GB, free: 360 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02051/0.3688, allocations: 2.676 MB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.831/8.2, allocations: 11.5 kB / 1.219 GB, free: 13.81 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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