Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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: translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00698/0.00698, allocations: 99.81 kB / 15.73 MB, free: 6.059 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.001578/0.001578, allocations: 195 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.453/2.453, allocations: 437 MB / 0.7105 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.00139, allocations: 67.84 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9522/0.9536, allocations: 151.6 MB / 1.167 GB, free: 3.871 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut): time 0.002703/0.9564, allocations: 1.498 MB / 1.168 GB, free: 2.363 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.9576, allocations: 0.7284 MB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.092e-05/0.9577, allocations: 0 / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.107e-05/0.9578, allocations: 7.922 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.963e-05/0.9578, allocations: 11.88 kB / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.9584, allocations: 119.6 kB / 1.169 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.9586, allocations: 79.77 kB / 1.169 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.9587, allocations: 15.98 kB / 1.169 GB, free: 1.398 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.537e-05/0.9588, allocations: 35.86 kB / 1.169 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.335e-05/0.9589, allocations: 47.75 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.9589, allocations: 4 kB / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.9591, allocations: 95.91 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.567e-05/0.9591, allocations: 19.92 kB / 1.169 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.004e-05/0.9592, allocations: 27.86 kB / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.9595, allocations: 144 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.9595, allocations: 0 / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9595, allocations: 0 / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.9595, allocations: 4 kB / 1.169 GB, free: 1.035 MB / 0.8887 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.0006521/0.9601, allocations: 424.7 kB / 1.17 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.9602, allocations: 12.03 kB / 1.17 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.9602, allocations: 8.875 kB / 1.17 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.9604, allocations: 168.3 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.9604, allocations: 4.375 kB / 1.17 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.9604, allocations: 4.375 kB / 1.17 GB, free: 344 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.9606, allocations: 81.91 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.9606, allocations: 3.984 kB / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.9606, allocations: 0 / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.9607, allocations: 0 / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.9608, allocations: 39.91 kB / 1.17 GB, free: 212 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005959/0.9614, allocations: 316.7 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.9615, allocations: 54.55 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.239e-05/0.9616, allocations: 36.91 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.9616, allocations: 0 / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001867/0.9618, allocations: 75.38 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.9619, allocations: 0 / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.000401/0.9623, allocations: 137.6 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.9623, allocations: 55.41 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.9624, allocations: 129.7 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.9624, allocations: 29.7 kB / 1.171 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.9625, allocations: 88.09 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.9625, allocations: 23.95 kB / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.798e-05/0.9626, allocations: 25.72 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.9627, allocations: 330.8 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.494e-05/0.9628, allocations: 19.98 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.648e-05/0.9629, allocations: 50.55 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.9631, allocations: 70.81 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.9631, allocations: 4 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002262/0.9633, allocations: 113.5 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.9633, allocations: 8 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.9633, allocations: 0 / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.9634, allocations: 3.938 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.414e-05/0.9635, allocations: 11.98 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.9635, allocations: 4 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.623e-05/0.9635, allocations: 19.92 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.9636, allocations: 8 kB / 1.172 GB, free: 14.47 MB / 0.9044 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 9.785e-05/0.9637, allocations: 122.7 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.9637, allocations: 7.953 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.534e-05/0.9637, allocations: 8.375 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.9637, allocations: 0 / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.9637, allocations: 0 / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.9637, allocations: 3.984 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.9642, allocations: 386.4 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.9642, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.578e-05/0.9642, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.9642, allocations: 4 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.9643, allocations: 8 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.9643, allocations: 3.938 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.9643, allocations: 3.938 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.9645, allocations: 207.5 kB / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.127e-05/0.9646, allocations: 81.06 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.9646, allocations: 0 / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.9647, allocations: 11.98 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.724e-05/0.9648, allocations: 7.938 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.9648, allocations: 3.984 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.461e-05/0.9648, allocations: 91.28 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9649, allocations: 0 / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002913/0.9651, allocations: 39.92 kB / 1.173 GB, free: 13.4 MB / 0.9044 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.0003444/0.9655, allocations: 176.3 kB / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002372/0.9657, allocations: 75.88 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.9658, allocations: 0 / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.65e-05/0.9659, allocations: 40.05 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.9661, allocations: 4 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.9665, allocations: 184.8 kB / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.9668, allocations: 0.6862 MB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.966e-05/0.9668, allocations: 7.984 kB / 1.174 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.889e-05/0.9669, allocations: 15.44 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.9669, allocations: 4 kB / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of Templates: time 0.004522/0.9714, allocations: 1.444 MB / 1.175 GB, free: 10.73 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & ./Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0