Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_10_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.008293/0.008293, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.001331/0.001331, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.585/2.585, allocations: 437.1 MB / 0.7105 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3301, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.003657/0.3338, allocations: 1.494 MB / 1.168 GB, free: 5.805 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001825/0.3357, allocations: 0.7362 MB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.783e-05/0.3358, allocations: 0 / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.622e-05/0.3359, allocations: 3.938 kB / 1.168 GB, free: 5.059 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.438e-05/0.336, allocations: 11.88 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007755/0.3367, allocations: 119.6 kB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001602/0.3369, allocations: 83.77 kB / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.337, allocations: 7.984 kB / 1.169 GB, free: 4.84 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.3372, allocations: 39.84 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.83e-05/0.3373, allocations: 43.83 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.3373, allocations: 4 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002383/0.3375, allocations: 91.91 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.167e-05/0.3376, allocations: 15.98 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.328e-05/0.3376, allocations: 35.8 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000267/0.3379, allocations: 142.5 kB / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3379, allocations: 0 / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.492e-06/0.3379, allocations: 3.938 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.238e-06/0.338, allocations: 0 / 1.169 GB, free: 4.473 MB / 0.92 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.0008041/0.3388, allocations: 413.8 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3388, allocations: 12.03 kB / 1.169 GB, free: 4.004 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.358e-05/0.3389, allocations: 34.75 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.3389, allocations: 8.844 kB / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.3392, allocations: 184.2 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.3392, allocations: 384 / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.3392, allocations: 12.31 kB / 1.17 GB, free: 3.723 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.3394, allocations: 69.78 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3394, allocations: 0 / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.3395, allocations: 0 / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3395, allocations: 0 / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.3396, allocations: 35.97 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006484/0.3403, allocations: 316.8 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.3405, allocations: 50.48 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.344e-05/0.3405, allocations: 36.97 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.3406, allocations: 0 / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.3408, allocations: 91.34 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.903e-06/0.3408, allocations: 0 / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004026/0.3412, allocations: 129.6 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.3413, allocations: 59.41 kB / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3414, allocations: 133.6 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.3414, allocations: 29.64 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.215e-05/0.3415, allocations: 92.14 kB / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.3415, allocations: 11.81 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-05/0.3416, allocations: 29.7 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3417, allocations: 326.8 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.277e-05/0.3418, allocations: 23.98 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.121e-05/0.3419, allocations: 46.55 kB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.3421, allocations: 74.5 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3421, allocations: 0 / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002661/0.3424, allocations: 117.5 kB / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3424, allocations: 4 kB / 1.171 GB, free: 1.922 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3424, allocations: 0 / 1.171 GB, free: 1.922 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.3424, allocations: 8.062 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.3425, allocations: 11.98 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.3426, allocations: 0 / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.64e-05/0.3426, allocations: 8 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.3426, allocations: 7.984 kB / 1.171 GB, free: 1.887 MB / 0.92 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.0001017/0.3428, allocations: 125.7 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.3428, allocations: 7.906 kB / 1.171 GB, free: 1.746 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.636e-05/0.3428, allocations: 8.375 kB / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3428, allocations: 8 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3428, allocations: 0 / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3428, allocations: 0 / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004796/0.3433, allocations: 382.4 kB / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3433, allocations: 0 / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.3434, allocations: 7.984 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.3434, allocations: 0 / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.3434, allocations: 7.938 kB / 1.172 GB, free: 1.285 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.3434, allocations: 7.938 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3434, allocations: 4 kB / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.3438, allocations: 211.8 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.3439, allocations: 85.02 kB / 1.172 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.3439, allocations: 0 / 1.172 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.305e-05/0.344, allocations: 15.92 kB / 1.172 GB, free: 0.9336 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.89e-05/0.3441, allocations: 0 / 1.172 GB, free: 0.9336 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.3441, allocations: 8 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.966e-05/0.3441, allocations: 91.92 kB / 1.172 GB, free: 0.8359 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3441, allocations: 3.938 kB / 1.172 GB, free: 0.832 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003146/0.3445, allocations: 39.98 kB / 1.172 GB, free: 0.793 MB / 0.92 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.0008612/0.3453, allocations: 0.7963 MB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002421/0.3456, allocations: 79.83 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3456, allocations: 0 / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.356e-05/0.3457, allocations: 31.98 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.346, allocations: 22.08 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.3478, allocations: 1.476 MB / 1.174 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.3482, allocations: 0.6924 MB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.707e-05/0.3482, allocations: 4 kB / 1.175 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.3483, allocations: 23.42 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.3483, allocations: 0 / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.3682, allocations: 2.653 MB / 1.178 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.26, allocations: 4 kB / 1.178 GB, free: 11.03 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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