Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",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.004587/0.004587, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001343/0.001343, allocations: 195.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.249/1.249, 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 12.0.0-master/package.mo): time 2.483/2.483, allocations: 482.6 MB / 0.7551 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 68.47 kB / 1.083 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2553, allocations: 162.3 MB / 1.242 GB, free: 8.852 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002243/0.2576, allocations: 1.505 MB / 1.243 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.2587, allocations: 0.726 MB / 1.244 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.134e-05/0.2587, allocations: 0 / 1.244 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.682e-05/0.2588, allocations: 3.938 kB / 1.244 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.59e-05/0.2588, allocations: 15.86 kB / 1.244 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004496/0.2593, allocations: 115.6 kB / 1.244 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.2594, allocations: 79.75 kB / 1.244 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.245e-05/0.2595, allocations: 19.97 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.355e-05/0.2596, allocations: 35.86 kB / 1.244 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.517e-05/0.2596, allocations: 39.83 kB / 1.244 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.2597, allocations: 4 kB / 1.244 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.2598, allocations: 95.91 kB / 1.244 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.2599, allocations: 15.98 kB / 1.244 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.423e-05/0.2599, allocations: 35.78 kB / 1.244 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.2601, allocations: 147.7 kB / 1.245 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.2601, allocations: 0 / 1.245 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.41e-07/0.2601, allocations: 0 / 1.245 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.2602, allocations: 4 kB / 1.245 GB, free: 6 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.0005527/0.2607, allocations: 426.2 kB / 1.245 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.2607, allocations: 8.031 kB / 1.245 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.2608, allocations: 42.73 kB / 1.245 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.017e-05/0.2608, allocations: 8.891 kB / 1.245 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.2609, allocations: 172.3 kB / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.261, allocations: 384 / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.261, allocations: 4.375 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.2611, allocations: 81.72 kB / 1.245 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.2612, allocations: 0 / 1.245 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.2612, allocations: 0 / 1.245 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.2612, allocations: 3.984 kB / 1.245 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.2613, allocations: 39.97 kB / 1.245 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005166/0.2618, allocations: 320.8 kB / 1.246 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.262, allocations: 50.5 kB / 1.246 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.875e-05/0.2621, allocations: 32.97 kB / 1.246 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.2621, allocations: 4.062 kB / 1.246 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/0.2622, allocations: 79.38 kB / 1.246 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.2623, allocations: 4 kB / 1.246 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003513/0.2626, allocations: 129.6 kB / 1.246 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.2627, allocations: 59.34 kB / 1.246 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.839e-05/0.2628, allocations: 129.8 kB / 1.246 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.2628, allocations: 25.7 kB / 1.246 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.2628, allocations: 92.09 kB / 1.246 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.2629, allocations: 23.81 kB / 1.246 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.2629, allocations: 29.72 kB / 1.246 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.263, allocations: 326.8 kB / 1.247 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.438e-05/0.2631, allocations: 23.98 kB / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.722e-05/0.2632, allocations: 46.55 kB / 1.247 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.2634, allocations: 78.48 kB / 1.247 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2634, allocations: 0 / 1.247 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002218/0.2636, allocations: 109.6 kB / 1.247 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.2636, allocations: 4 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.2636, allocations: 0 / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.2636, allocations: 7.984 kB / 1.247 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.789e-05/0.2637, allocations: 8 kB / 1.247 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.2637, allocations: 0 / 1.247 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.198e-05/0.2638, allocations: 16.05 kB / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.2638, allocations: 7.938 kB / 1.247 GB, free: 3.398 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 8.409e-05/0.2639, allocations: 125.6 kB / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.549e-05/0.2639, allocations: 7.953 kB / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.353e-05/0.264, allocations: 8.375 kB / 1.247 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.264, allocations: 7.984 kB / 1.247 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.264, allocations: 0 / 1.247 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.264, allocations: 0 / 1.247 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004216/0.2644, allocations: 382.8 kB / 1.247 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2644, allocations: 0 / 1.247 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.2645, allocations: 4 kB / 1.247 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.2645, allocations: 3.938 kB / 1.247 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.2645, allocations: 4 kB / 1.247 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.593e-06/0.2645, allocations: 7.922 kB / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2645, allocations: 80 / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.2648, allocations: 211.5 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.2648, allocations: 89 kB / 1.248 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.2648, allocations: 0 / 1.248 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.587e-05/0.2649, allocations: 15.92 kB / 1.248 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.265, allocations: 4 kB / 1.248 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.265, allocations: 7.984 kB / 1.248 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.875e-05/0.265, allocations: 91.27 kB / 1.248 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2651, allocations: 4 kB / 1.248 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002573/0.2653, allocations: 35.94 kB / 1.248 GB, free: 2.312 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.0007335/0.2661, allocations: 0.8064 MB / 1.249 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002112/0.2663, allocations: 71.91 kB / 1.249 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2663, allocations: 0 / 1.249 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.076e-05/0.2664, allocations: 35.97 kB / 1.249 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.2666, allocations: 9.812 kB / 1.249 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.2681, allocations: 1.499 MB / 1.25 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.2683, allocations: 0.6885 MB / 1.251 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.365e-05/0.2684, allocations: 8.469 kB / 1.251 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.172e-05/0.2684, allocations: 19.42 kB / 1.251 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.2684, allocations: 0 / 1.251 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.103/3.372, allocations: 2.641 MB / 1.253 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.55/26.93, allocations: 8.125 kB / 1.254 GB, free: 12.55 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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