Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001332, allocations: 104.3 kB / 16.36 MB, free: 5.824 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.001347/0.001347, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 66.02 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2898, allocations: 140.4 MB / 0.9511 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002588/0.2924, allocations: 1.508 MB / 0.9526 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2936, allocations: 0.7245 MB / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.97e-05/0.2936, allocations: 0 / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.732e-05/0.2936, allocations: 3.938 kB / 0.9533 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.692e-05/0.2937, allocations: 11.86 kB / 0.9533 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.2942, allocations: 127.6 kB / 0.9534 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.2944, allocations: 75.77 kB / 0.9535 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.944e-05/0.2945, allocations: 12 kB / 0.9535 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.544e-05/0.2946, allocations: 43.83 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.095e-05/0.2946, allocations: 31.84 kB / 0.9536 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.2947, allocations: 8 kB / 0.9536 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001691/0.2948, allocations: 95.91 kB / 0.9537 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.335e-05/0.2949, allocations: 11.98 kB / 0.9537 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.706e-05/0.2949, allocations: 39.78 kB / 0.9537 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.2951, allocations: 147.5 kB / 0.9539 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2951, allocations: 0 / 0.9539 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2951, allocations: 0 / 0.9539 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.2952, allocations: 0 / 0.9539 GB, free: 5.164 MB / 0.7325 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.000598/0.2958, allocations: 420.9 kB / 0.9543 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.2958, allocations: 8.031 kB / 0.9543 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.94e-05/0.2958, allocations: 8.844 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.296, allocations: 172.3 kB / 0.9545 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.296, allocations: 8.359 kB / 0.9545 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.891e-05/0.296, allocations: 8.375 kB / 0.9545 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.2962, allocations: 65.97 kB / 0.9545 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2962, allocations: 7.938 kB / 0.9545 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.2962, allocations: 0 / 0.9545 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.2962, allocations: 4 kB / 0.9545 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.2964, allocations: 35.97 kB / 0.9546 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.2969, allocations: 316.7 kB / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.2971, allocations: 54.56 kB / 0.9549 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.04e-05/0.2971, allocations: 32.97 kB / 0.955 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.2972, allocations: 7.938 kB / 0.955 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.2973, allocations: 71.38 kB / 0.955 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 3.787e-06/0.2974, allocations: 0 / 0.955 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003696/0.2977, allocations: 149.7 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.2978, allocations: 55.47 kB / 0.9552 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.2979, allocations: 117.8 kB / 0.9554 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.2979, allocations: 25.7 kB / 0.9554 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.2979, allocations: 100.1 kB / 0.9555 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.298, allocations: 15.75 kB / 0.9555 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.62e-05/0.298, allocations: 29.7 kB / 0.9555 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.552e-05/0.2981, allocations: 326.8 kB / 0.9558 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.079e-05/0.2982, allocations: 31.98 kB / 0.9559 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.031e-05/0.2983, allocations: 42.56 kB / 0.9559 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.2984, allocations: 74.61 kB / 0.956 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2985, allocations: 7.938 kB / 0.956 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002193/0.2987, allocations: 109.5 kB / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.2987, allocations: 8 kB / 0.9561 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2987, allocations: 0 / 0.9561 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2987, allocations: 0 / 0.9561 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.395e-05/0.2988, allocations: 15.98 kB / 0.9561 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.2988, allocations: 4 kB / 0.9561 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.2989, allocations: 7.906 kB / 0.9561 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2989, allocations: 4.062 kB / 0.9561 GB, free: 2.617 MB / 0.7325 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.395e-05/0.299, allocations: 127.7 kB / 0.9562 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.487e-05/0.299, allocations: 0 / 0.9562 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.364e-05/0.2991, allocations: 16.31 kB / 0.9563 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2991, allocations: 0 / 0.9563 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2991, allocations: 0 / 0.9563 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.2991, allocations: 3.938 kB / 0.9563 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004004/0.2995, allocations: 390.3 kB / 0.9566 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2995, allocations: 0 / 0.9566 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.887e-05/0.2996, allocations: 11.92 kB / 0.9566 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2996, allocations: 0 / 0.9566 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.2996, allocations: 4 kB / 0.9566 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2996, allocations: 0 / 0.9566 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2996, allocations: 11.86 kB / 0.9567 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002464/0.2999, allocations: 207.5 kB / 0.9569 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.359e-05/0.2999, allocations: 89.02 kB / 0.9569 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.2999, allocations: 0 / 0.9569 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.3, allocations: 4 kB / 0.9569 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.3001, allocations: 11.92 kB / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.3001, allocations: 0 / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.481e-05/0.3001, allocations: 91.27 kB / 0.957 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3001, allocations: 4 kB / 0.957 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00029/0.3004, allocations: 36 kB / 0.9571 GB, free: 1.527 MB / 0.7325 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.0003279/0.3008, allocations: 163.6 kB / 0.9572 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.301, allocations: 72.12 kB / 0.9573 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.301, allocations: 0 / 0.9573 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.137e-05/0.3011, allocations: 40.19 kB / 0.9573 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.3014, allocations: 17.98 kB / 0.9574 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003751/0.3017, allocations: 188.3 kB / 0.9575 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.302, allocations: 0.6922 MB / 0.9582 GB, free: 320 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.308e-05/0.302, allocations: 4 kB / 0.9582 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.735e-05/0.3021, allocations: 19.42 kB / 0.9582 GB, free: 296 kB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.3021, allocations: 0 / 0.9582 GB, free: 296 kB / 0.7325 GB Notification: Performance of Templates: time 0.003901/0.306, allocations: 1.443 MB / 0.9596 GB, free: 14.85 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0