Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.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.001385/0.001385, allocations: 100.4 kB / 20.45 MB, free: 1.262 MB / 14.72 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.001497/0.001497, allocations: 210.4 kB / 23.74 MB, free: 4.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 207.7 MB / 234.6 MB, free: 9.812 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3639/0.3639, allocations: 44.27 MB / 331.1 MB, free: 9.312 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00227/0.00227, allocations: 63.91 kB / 468.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1349, allocations: 61.05 MB / 0.5174 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003827/0.1388, allocations: 2.11 MB / 0.5194 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.1404, allocations: 0.7878 MB / 0.5202 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.1406, allocations: 7.938 kB / 0.5202 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1407, allocations: 31.59 kB / 0.5202 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002546/0.141, allocations: 67.39 kB / 0.5203 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.1414, allocations: 139.8 kB / 0.5204 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004311/0.1418, allocations: 359 kB / 0.5208 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.1421, allocations: 88.78 kB / 0.5209 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002272/0.1423, allocations: 139.4 kB / 0.521 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.1425, allocations: 147.2 kB / 0.5211 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.247e-05/0.1426, allocations: 32 kB / 0.5212 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.356e-05/0.1426, allocations: 32 kB / 0.5212 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.1428, allocations: 79.73 kB / 0.5213 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.1429, allocations: 127.3 kB / 0.5214 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004434/0.1434, allocations: 358.5 kB / 0.5217 GB, free: 2.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1434, allocations: 4 kB / 0.5217 GB, free: 2.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1434, allocations: 3.938 kB / 0.5217 GB, free: 2.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1434, allocations: 0 / 0.5217 GB, free: 2.172 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001389/0.1448, allocations: 0.672 MB / 0.5224 GB, free: 1.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1448, allocations: 8.031 kB / 0.5224 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.688e-05/0.1449, allocations: 44.69 kB / 0.5224 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005294/0.1454, allocations: 265.5 kB / 0.5227 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.1455, allocations: 28.81 kB / 0.5227 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.058e-05/0.1455, allocations: 32.33 kB / 0.5228 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.146, allocations: 264.1 kB / 0.523 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.146, allocations: 0 / 0.523 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.1461, allocations: 12 kB / 0.523 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.1461, allocations: 4 kB / 0.523 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.1465, allocations: 181.9 kB / 0.5232 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.1478, allocations: 0.6204 MB / 0.5238 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004314/0.1482, allocations: 182.8 kB / 0.524 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.1484, allocations: 84.81 kB / 0.5241 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.1484, allocations: 23.91 kB / 0.5241 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004292/0.1489, allocations: 227.2 kB / 0.5243 GB, free: 15.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.1489, allocations: 0 / 0.5243 GB, free: 15.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008686/0.1497, allocations: 377.2 kB / 0.5247 GB, free: 15.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.1498, allocations: 59.39 kB / 0.5247 GB, free: 14.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.1501, allocations: 233.1 kB / 0.5249 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.203e-05/0.1501, allocations: 33.64 kB / 0.525 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1502, allocations: 176.7 kB / 0.5251 GB, free: 14.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.1504, allocations: 99.22 kB / 0.5252 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.1505, allocations: 70.06 kB / 0.5253 GB, free: 14.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.1507, allocations: 342.8 kB / 0.5256 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.1509, allocations: 92.7 kB / 0.5257 GB, free: 13.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.1512, allocations: 222.3 kB / 0.5259 GB, free: 13.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000569/0.1518, allocations: 336.9 kB / 0.5263 GB, free: 13.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.1518, allocations: 4 kB / 0.5263 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006809/0.1525, allocations: 368.9 kB / 0.5266 GB, free: 12.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.1525, allocations: 8 kB / 0.5266 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.1525, allocations: 4 kB / 0.5266 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.454e-05/0.1526, allocations: 12.41 kB / 0.5266 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.1529, allocations: 79.83 kB / 0.5267 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.1529, allocations: 8 kB / 0.5267 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.1531, allocations: 31.78 kB / 0.5267 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.1531, allocations: 23.98 kB / 0.5268 GB, free: 12.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0002185/0.1533, allocations: 165.5 kB / 0.5269 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.095e-05/0.1534, allocations: 31.8 kB / 0.527 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006815/0.154, allocations: 323.3 kB / 0.5273 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.148e-06/0.1541, allocations: 8.078 kB / 0.5273 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1541, allocations: 3.984 kB / 0.5273 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1541, allocations: 3.984 kB / 0.5273 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009693/0.155, allocations: 0.5995 MB / 0.5279 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.155, allocations: 0 / 0.5279 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/0.1553, allocations: 55.91 kB / 0.5279 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.1553, allocations: 4.031 kB / 0.5279 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.1553, allocations: 15.92 kB / 0.5279 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1553, allocations: 3.938 kB / 0.5279 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1553, allocations: 0 / 0.5279 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009222/0.1563, allocations: 0.5227 MB / 0.5285 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.754e-05/0.1563, allocations: 31.81 kB / 0.5285 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.1564, allocations: 15.94 kB / 0.5285 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.1565, allocations: 11.98 kB / 0.5285 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.417e-05/0.1566, allocations: 23.95 kB / 0.5285 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.1566, allocations: 15.98 kB / 0.5285 GB, free: 10.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.1568, allocations: 168.5 kB / 0.5287 GB, free: 10.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1568, allocations: 0 / 0.5287 GB, free: 10.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000374/0.1572, allocations: 67.84 kB / 0.5288 GB, free: 10.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001553/0.1574, allocations: 111.2 kB / 0.5289 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005864/0.1579, allocations: 251.6 kB / 0.5291 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.1579, allocations: 3.984 kB / 0.5291 GB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.1582, allocations: 116.8 kB / 0.5292 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.1586, allocations: 40.69 kB / 0.5293 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.1598, allocations: 0.6278 MB / 0.5299 GB, free: 9.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.16, allocations: 174 kB / 0.5301 GB, free: 9.219 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.1601, allocations: 35.42 kB / 0.5301 GB, free: 9.184 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1601, allocations: 0 / 0.5301 GB, free: 9.184 MB / 414.1 MB Notification: Performance of Templates: time 0.006751/0.1668, allocations: 3.731 MB / 0.5337 GB, free: 5.453 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.187039349228144]