Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008396/0.0008394, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.006988/0.006987, allocations: 173.6 kB / 16.27 MB, free: 6.613 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.373/1.373, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.373/2.373, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.000346, allocations: 8 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7259/0.7263, allocations: 142.4 MB / 0.955 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.001933/0.7283, allocations: 1.22 MB / 0.9562 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.7297, allocations: 0.7141 MB / 0.9569 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.128e-05/0.7297, allocations: 1.188 kB / 0.9569 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.738e-05/0.7298, allocations: 3.984 kB / 0.9569 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.145e-05/0.7299, allocations: 4.938 kB / 0.9569 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005386/0.7304, allocations: 109 kB / 0.957 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.7305, allocations: 74.88 kB / 0.9571 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.7307, allocations: 13.34 kB / 0.9571 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.405e-05/0.7307, allocations: 32.88 kB / 0.9572 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.402e-05/0.7308, allocations: 31.81 kB / 0.9572 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.7308, allocations: 3.125 kB / 0.9572 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.731, allocations: 92.47 kB / 0.9573 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.23e-05/0.731, allocations: 19.56 kB / 0.9573 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.637e-05/0.7311, allocations: 58.55 kB / 0.9574 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.7313, allocations: 130 kB / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.7313, allocations: 1.188 kB / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.345e-06/0.7313, allocations: 0 / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.7313, allocations: 0 / 0.9575 GB, free: 5.867 MB / 0.7169 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.000529/0.7319, allocations: 408.6 kB / 0.9579 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.7319, allocations: 13.53 kB / 0.9579 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.875e-05/0.732, allocations: 8.875 kB / 0.9579 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.714e-05/0.7321, allocations: 175.8 kB / 0.9581 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.7321, allocations: 7.156 kB / 0.9581 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.7321, allocations: 4.188 kB / 0.9581 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.7323, allocations: 75.03 kB / 0.9581 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.7323, allocations: 0 / 0.9581 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.7323, allocations: 9.422 kB / 0.9581 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.7323, allocations: 0 / 0.9581 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.7325, allocations: 50.39 kB / 0.9582 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005373/0.733, allocations: 321.9 kB / 0.9585 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.7332, allocations: 55.08 kB / 0.9586 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.486e-05/0.7333, allocations: 34.5 kB / 0.9586 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.7333, allocations: 1.344 kB / 0.9586 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.7335, allocations: 80.06 kB / 0.9587 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.7335, allocations: 0 / 0.9587 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004268/0.7339, allocations: 153.7 kB / 0.9588 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.734, allocations: 52.69 kB / 0.9589 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.377e-05/0.7341, allocations: 125.5 kB / 0.959 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.7341, allocations: 31.52 kB / 0.959 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.672e-05/0.7342, allocations: 90.05 kB / 0.9591 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.7342, allocations: 15.47 kB / 0.9591 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.197e-05/0.7342, allocations: 21.64 kB / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.15e-05/0.7343, allocations: 328.8 kB / 0.9594 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.046e-05/0.7344, allocations: 23.8 kB / 0.9595 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.7345, allocations: 56.17 kB / 0.9595 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.7346, allocations: 83.47 kB / 0.9596 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.7347, allocations: 4 kB / 0.9596 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002361/0.7349, allocations: 123 kB / 0.9597 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.7349, allocations: 5.5 kB / 0.9597 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.7349, allocations: 0 / 0.9597 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.735, allocations: 1.375 kB / 0.9597 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.432e-05/0.735, allocations: 13.61 kB / 0.9597 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.7351, allocations: 5.438 kB / 0.9597 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.557e-05/0.7351, allocations: 9.438 kB / 0.9598 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.7352, allocations: 10.69 kB / 0.9598 GB, free: 3.715 MB / 0.7169 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 7.662e-05/0.7352, allocations: 119.3 kB / 0.9599 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.7353, allocations: 10.64 kB / 0.9599 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.7353, allocations: 9.75 kB / 0.9599 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.7353, allocations: 1.375 kB / 0.9599 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7353, allocations: 4 kB / 0.9599 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.7353, allocations: 0 / 0.9599 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003702/0.7357, allocations: 380.4 kB / 0.9603 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7357, allocations: 1.375 kB / 0.9603 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.608e-05/0.7358, allocations: 4.125 kB / 0.9603 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.7358, allocations: 3.984 kB / 0.9603 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.7358, allocations: 5.375 kB / 0.9603 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.7358, allocations: 5.312 kB / 0.9603 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7358, allocations: 3.938 kB / 0.9603 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002537/0.736, allocations: 219.8 kB / 0.9605 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.369e-05/0.7361, allocations: 86.38 kB / 0.9606 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.7361, allocations: 5.375 kB / 0.9606 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.511e-05/0.7362, allocations: 8.062 kB / 0.9606 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.7363, allocations: 18.61 kB / 0.9606 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.7363, allocations: 1.375 kB / 0.9606 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.369e-05/0.7363, allocations: 92.89 kB / 0.9607 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7363, allocations: 0 / 0.9607 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002854/0.7366, allocations: 36.88 kB / 0.9607 GB, free: 2.805 MB / 0.7169 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.0003082/0.7369, allocations: 160.5 kB / 0.9609 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002234/0.7371, allocations: 80.25 kB / 0.961 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.7372, allocations: 0 / 0.961 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.306e-05/0.7373, allocations: 39.64 kB / 0.961 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.7375, allocations: 14.67 kB / 0.961 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003308/0.7378, allocations: 208.5 kB / 0.9612 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.738, allocations: 0.6926 MB / 0.9619 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.419e-05/0.738, allocations: 7.422 kB / 0.9619 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.7381, allocations: 10.94 kB / 0.9619 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7381, allocations: 3.938 kB / 0.9619 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of Templates: time 0.003922/0.742, allocations: 1.346 MB / 0.9632 GB, free: 1.031 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0