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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001085/0.001086, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.1 MB / 222.5 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 111.9 kB / 269.9 MB, free: 8.418 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2959/0.2959, allocations: 43.49 MB / 360.7 MB, free: 51.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009142/0.0009143, allocations: 51.92 kB / 429.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1029, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003294/0.1062, allocations: 2.276 MB / 489.3 MB, free: 10.26 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.1074, allocations: 0.7993 MB / 490.1 MB, free: 9.449 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.1076, allocations: 7.938 kB / 490.1 MB, free: 9.441 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.1077, allocations: 27.72 kB / 490.1 MB, free: 9.414 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.1079, allocations: 39.66 kB / 490.1 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.1082, allocations: 123.8 kB / 490.3 MB, free: 9.254 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.1085, allocations: 339.1 kB / 490.6 MB, free: 8.922 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.1087, allocations: 128.5 kB / 490.7 MB, free: 8.797 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.1089, allocations: 119.4 kB / 490.8 MB, free: 8.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.1091, allocations: 143.2 kB / 491 MB, free: 8.539 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.1091, allocations: 16 kB / 491 MB, free: 8.523 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.667e-05/0.1092, allocations: 16 kB / 491 MB, free: 8.508 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.666e-05/0.1092, allocations: 63.75 kB / 491.1 MB, free: 8.445 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.1094, allocations: 135.1 kB / 491.2 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.1097, allocations: 338.8 kB / 491.5 MB, free: 7.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1097, allocations: 4 kB / 491.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.1097, allocations: 0 / 491.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1097, allocations: 0 / 491.5 MB, free: 7.977 MB / 378.7 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.0009921/0.1107, allocations: 0.6106 MB / 492.2 MB, free: 7.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.1107, allocations: 8.031 kB / 492.2 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.126e-05/0.1108, allocations: 40.56 kB / 492.2 MB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.1113, allocations: 327.2 kB / 492.5 MB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.1113, allocations: 20.94 kB / 492.5 MB, free: 6.895 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-05/0.1114, allocations: 40.22 kB / 492.6 MB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004481/0.1118, allocations: 257 kB / 492.8 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1118, allocations: 0 / 492.8 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.1119, allocations: 15.98 kB / 492.8 MB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.1119, allocations: 7.938 kB / 492.9 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003867/0.1123, allocations: 190.1 kB / 493 MB, free: 6.391 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1136, allocations: 0.7717 MB / 493.8 MB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005078/0.1141, allocations: 202.8 kB / 494 MB, free: 5.363 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.1144, allocations: 104.8 kB / 494.1 MB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.1145, allocations: 3.984 kB / 494.1 MB, free: 5.254 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005902/0.1151, allocations: 231.1 kB / 494.3 MB, free: 5.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.665e-06/0.1151, allocations: 0 / 494.3 MB, free: 5.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001146/0.1163, allocations: 373.1 kB / 494.7 MB, free: 4.645 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.1163, allocations: 63.41 kB / 494.8 MB, free: 4.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/0.1167, allocations: 229 kB / 495 MB, free: 4.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.1167, allocations: 41.69 kB / 495 MB, free: 4.293 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1169, allocations: 164.6 kB / 495.2 MB, free: 4.129 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.881e-05/0.117, allocations: 102.5 kB / 495.3 MB, free: 4.027 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.1171, allocations: 74.06 kB / 495.4 MB, free: 3.945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1173, allocations: 338.8 kB / 495.7 MB, free: 3.605 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.1175, allocations: 88.69 kB / 495.8 MB, free: 3.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.1178, allocations: 226.3 kB / 496 MB, free: 3.238 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004765/0.1182, allocations: 352.7 kB / 496.3 MB, free: 2.832 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1183, allocations: 4 kB / 496.4 MB, free: 2.828 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005889/0.1189, allocations: 357.2 kB / 496.7 MB, free: 2.473 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1189, allocations: 8.094 kB / 496.7 MB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1189, allocations: 15.88 kB / 496.7 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.1189, allocations: 8 kB / 496.7 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.1192, allocations: 79.83 kB / 496.8 MB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.1192, allocations: 7.938 kB / 496.8 MB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.1194, allocations: 27.83 kB / 496.8 MB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.1194, allocations: 20 kB / 496.9 MB, free: 2.309 MB / 378.7 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.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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.0001435/0.1196, allocations: 169.6 kB / 497 MB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.874e-05/0.1196, allocations: 27.62 kB / 497.1 MB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005868/0.1202, allocations: 331.2 kB / 497.4 MB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1202, allocations: 4 kB / 497.4 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1202, allocations: 0 / 497.4 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1203, allocations: 7.938 kB / 497.4 MB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008298/0.1211, allocations: 0.6973 MB / 498.1 MB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1211, allocations: 0 / 498.1 MB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.1213, allocations: 55.89 kB / 498.1 MB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1214, allocations: 4 kB / 498.1 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.1214, allocations: 4 kB / 498.2 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.1214, allocations: 4 kB / 498.2 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.1214, allocations: 8 kB / 498.2 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/0.1239, allocations: 2.003 MB / 0.4884 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.124, allocations: 100.8 kB / 0.4885 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.1241, allocations: 12.06 kB / 0.4886 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.1242, allocations: 15.98 kB / 0.4886 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.22e-05/0.1243, allocations: 23.91 kB / 0.4886 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.1244, allocations: 15.98 kB / 0.4886 GB, free: 14.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001436/0.1245, allocations: 168.5 kB / 0.4888 GB, free: 14.44 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1245, allocations: 0 / 0.4888 GB, free: 14.44 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005013/0.125, allocations: 79.75 kB / 0.4888 GB, free: 14.36 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.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.0001426/0.1252, allocations: 119.1 kB / 0.489 GB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005804/0.1258, allocations: 251.6 kB / 0.4892 GB, free: 13.99 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1258, allocations: 4.938 kB / 0.4892 GB, free: 13.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002642/0.1261, allocations: 131.8 kB / 0.4893 GB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.1264, allocations: 32.86 kB / 0.4894 GB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.1277, allocations: 0.9138 MB / 0.4902 GB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.128, allocations: 0.7921 MB / 0.491 GB, free: 12.05 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.1282, allocations: 39.23 kB / 0.4911 GB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.307e-05/0.1283, allocations: 35.47 kB / 0.4911 GB, free: 11.98 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1283, allocations: 3.938 kB / 0.4911 GB, free: 11.98 MB / 394.7 MB Notification: Performance of Templates: time 0.005576/0.1339, allocations: 2.469 MB / 0.4935 GB, free: 9.508 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches