Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002558/0.002558, allocations: 84.05 kB / 19.44 MB, free: 320 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003131/0.003131, allocations: 169.3 kB / 22.76 MB, free: 1.641 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.378/3.378, allocations: 429.5 MB / 0.6729 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.8774 GB, free: 6.543 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.075e-05/3.251e-05, allocations: 8.844 kB / 0.8774 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.004381/0.004414, allocations: 1.566 MB / 0.879 GB, free: 4.984 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0004678/0.004882, allocations: 116.5 kB / 0.8791 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.518e-05/0.004937, allocations: 1.062 kB / 0.8791 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.005077, allocations: 8.578 kB / 0.8791 GB, free: 4.863 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.344e-05/0.00513, allocations: 17.17 kB / 0.8791 GB, free: 4.848 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.005413, allocations: 23.97 kB / 0.8791 GB, free: 4.824 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000145/0.005558, allocations: 59.77 kB / 0.8792 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.005688, allocations: 16.58 kB / 0.8792 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.00579, allocations: 29.44 kB / 0.8792 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.918e-05/0.005889, allocations: 27.91 kB / 0.8793 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.005916, allocations: 4 kB / 0.8793 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.936e-05/0.005995, allocations: 19.92 kB / 0.8793 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.243e-05/0.006058, allocations: 17.23 kB / 0.8793 GB, free: 4.656 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.425e-05/0.006102, allocations: 11.98 kB / 0.8793 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000196/0.006298, allocations: 67.78 kB / 0.8794 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.006301, allocations: 0 / 0.8794 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.002e-06/0.006302, allocations: 0.875 kB / 0.8794 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.006307, allocations: 0 / 0.8794 GB, free: 4.578 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007382/0.007045, allocations: 405.5 kB / 0.8798 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.00709, allocations: 12.03 kB / 0.8798 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.024e-05/0.00715, allocations: 4.938 kB / 0.8798 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.007387, allocations: 128.5 kB / 0.8799 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.007405, allocations: 5.719 kB / 0.8799 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.007425, allocations: 8.375 kB / 0.8799 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.007726, allocations: 58.23 kB / 0.88 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.007736, allocations: 1.281 kB / 0.88 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.007752, allocations: 4.375 kB / 0.88 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.007757, allocations: 384 / 0.88 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.008061, allocations: 55.28 kB / 0.88 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007299/0.008791, allocations: 311.6 kB / 0.8803 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.009014, allocations: 47.05 kB / 0.8804 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.009175, allocations: 31.8 kB / 0.8804 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.612e-05/0.009221, allocations: 15.92 kB / 0.8804 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.009269, allocations: 33.39 kB / 0.8804 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.00927, allocations: 0 / 0.8804 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0006091/0.009879, allocations: 93.61 kB / 0.8805 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.009943, allocations: 55.41 kB / 0.8806 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.01017, allocations: 189.8 kB / 0.8808 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.0102, allocations: 25.7 kB / 0.8808 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.01032, allocations: 138.8 kB / 0.8809 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.01035, allocations: 11.94 kB / 0.8809 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.776e-05/0.01043, allocations: 23.38 kB / 0.881 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0003644/0.01079, allocations: 0.4884 MB / 0.8814 GB, free: 2.273 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.01095, allocations: 23.92 kB / 0.8815 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.01108, allocations: 15.98 kB / 0.8815 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.01134, allocations: 47.66 kB / 0.8815 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.01135, allocations: 0 / 0.8815 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000374/0.01172, allocations: 89.48 kB / 0.8816 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.01174, allocations: 8 kB / 0.8816 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.01174, allocations: 0 / 0.8816 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.01176, allocations: 0 / 0.8816 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.0119, allocations: 11.98 kB / 0.8816 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.01191, allocations: 0 / 0.8816 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.271e-05/0.01199, allocations: 11.88 kB / 0.8816 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.01202, allocations: 8 kB / 0.8816 GB, free: 2.051 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001608/0.01218, allocations: 160.6 kB / 0.8818 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.204e-05/0.01224, allocations: 7.938 kB / 0.8818 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003985/0.01264, allocations: 81.66 kB / 0.8819 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.01264, allocations: 4 kB / 0.8819 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.01265, allocations: 0 / 0.8819 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.01265, allocations: 0 / 0.8819 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.01293, allocations: 140.6 kB / 0.882 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01294, allocations: 0 / 0.882 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.01304, allocations: 11.98 kB / 0.882 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.01305, allocations: 3.938 kB / 0.882 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.01306, allocations: 0 / 0.882 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.01306, allocations: 4 kB / 0.882 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01306, allocations: 0 / 0.882 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004847/0.01355, allocations: 228.2 kB / 0.8823 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.402e-05/0.01357, allocations: 11.92 kB / 0.8823 GB, free: 1.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.01359, allocations: 0 / 0.8823 GB, free: 1.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.01372, allocations: 4 kB / 0.8823 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.01379, allocations: 11.98 kB / 0.8823 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.527e-06/0.0138, allocations: 0 / 0.8823 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001308/0.01393, allocations: 139.2 kB / 0.8824 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.81e-07/0.01393, allocations: 0 / 0.8824 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004333/0.01436, allocations: 12 kB / 0.8824 GB, free: 1.176 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001948/0.01456, allocations: 91.25 kB / 0.8825 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003699/0.01493, allocations: 63.58 kB / 0.8826 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01493, allocations: 3.938 kB / 0.8826 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.01511, allocations: 31.67 kB / 0.8826 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.01553, allocations: 4 kB / 0.8826 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005088/0.01604, allocations: 169.9 kB / 0.8828 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.01616, allocations: 71.33 kB / 0.8828 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.043e-05/0.01622, allocations: 7.984 kB / 0.8829 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/0.01627, allocations: 16.5 kB / 0.8829 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of SimCode: time 5.91e-07/0.01627, allocations: 0 / 0.8829 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of Templates: time 0.005524/0.0218, allocations: 0.8144 MB / 0.8837 GB, free: 15.85 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.42118353699334]