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.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 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 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.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001588, allocations: 114.8 kB / 17.09 MB, free: 5.984 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.001849/0.001849, allocations: 198 kB / 18.03 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2027/0.2027, allocations: 43.53 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 65.47 kB / 442.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.102, allocations: 57.79 MB / 0.4886 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00336/0.1054, allocations: 2.213 MB / 0.4907 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.1068, allocations: 0.8225 MB / 0.4915 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.107, allocations: 4 kB / 0.4915 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.1071, allocations: 35.53 kB / 0.4916 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002471/0.1074, allocations: 59.45 kB / 0.4916 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.1078, allocations: 147.7 kB / 0.4918 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004179/0.1082, allocations: 355 kB / 0.4921 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002609/0.1085, allocations: 128.2 kB / 0.4922 GB, free: 8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.1087, allocations: 139.4 kB / 0.4923 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.109, allocations: 147.2 kB / 0.4925 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.324e-05/0.109, allocations: 32 kB / 0.4925 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.402e-05/0.1091, allocations: 32 kB / 0.4925 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.269e-05/0.1092, allocations: 83.73 kB / 0.4926 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.1094, allocations: 163.1 kB / 0.4928 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.1098, allocations: 362.5 kB / 0.4931 GB, free: 7.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1098, allocations: 0 / 0.4931 GB, free: 7.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1098, allocations: 0 / 0.4931 GB, free: 7.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.1098, allocations: 0 / 0.4931 GB, free: 7.059 MB / 382.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.00109/0.1109, allocations: 0.6293 MB / 0.4937 GB, free: 6.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.111, allocations: 11.89 kB / 0.4938 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.42e-05/0.111, allocations: 40.7 kB / 0.4938 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.1116, allocations: 335.3 kB / 0.4941 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.1116, allocations: 20.94 kB / 0.4941 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.1117, allocations: 28.38 kB / 0.4942 GB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005084/0.1122, allocations: 261 kB / 0.4944 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.1122, allocations: 3.953 kB / 0.4944 GB, free: 5.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.1123, allocations: 19.91 kB / 0.4944 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.1123, allocations: 4 kB / 0.4944 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004099/0.1127, allocations: 182.1 kB / 0.4946 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.1139, allocations: 0.7719 MB / 0.4954 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/0.1144, allocations: 210.5 kB / 0.4956 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.1146, allocations: 100.8 kB / 0.4957 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.1146, allocations: 8 kB / 0.4957 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004039/0.115, allocations: 227.1 kB / 0.4959 GB, free: 4.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.994e-06/0.1151, allocations: 0 / 0.4959 GB, free: 4.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007927/0.1159, allocations: 370.1 kB / 0.4962 GB, free: 3.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.1159, allocations: 55.41 kB / 0.4963 GB, free: 3.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.1161, allocations: 237 kB / 0.4965 GB, free: 3.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.1162, allocations: 41.7 kB / 0.4966 GB, free: 3.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1163, allocations: 172.7 kB / 0.4967 GB, free: 3.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.173e-05/0.1164, allocations: 103.1 kB / 0.4968 GB, free: 3.078 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.1165, allocations: 74.06 kB / 0.4969 GB, free: 2.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1167, allocations: 334.8 kB / 0.4972 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.1169, allocations: 88.69 kB / 0.4973 GB, free: 2.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002792/0.1172, allocations: 226.3 kB / 0.4975 GB, free: 2.293 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.1177, allocations: 348.8 kB / 0.4978 GB, free: 1.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1177, allocations: 4 kB / 0.4978 GB, free: 1.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006621/0.1184, allocations: 377 kB / 0.4982 GB, free: 1.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1184, allocations: 7.938 kB / 0.4982 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.1184, allocations: 8 kB / 0.4982 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.1184, allocations: 7.938 kB / 0.4982 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002997/0.1187, allocations: 75.89 kB / 0.4983 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.1188, allocations: 11.94 kB / 0.4983 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.119, allocations: 36.05 kB / 0.4983 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.119, allocations: 20 kB / 0.4984 GB, free: 1.348 MB / 382.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.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.0001641/0.1192, allocations: 165.6 kB / 0.4985 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.472e-05/0.1192, allocations: 27.81 kB / 0.4985 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006226/0.1198, allocations: 331.3 kB / 0.4989 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1199, allocations: 0 / 0.4989 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1199, allocations: 0 / 0.4989 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.1199, allocations: 108.8 kB / 0.499 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.934e-05/0.12, allocations: 8 kB / 0.499 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.1201, allocations: 15.98 kB / 0.499 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.449e-05/0.1202, allocations: 19.97 kB / 0.499 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007738/0.121, allocations: 408.6 kB / 0.4994 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008838/0.1219, allocations: 0.616 MB / 0.5 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002226/0.1221, allocations: 124 kB / 0.5001 GB, free: 15.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.1223, allocations: 160.5 kB / 0.5003 GB, free: 15.34 MB / 398.1 MB Notification: Performance of Backend: time 4.7e-07/0.1223, allocations: 0 / 0.5003 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006108/0.1229, allocations: 262.9 kB / 0.5005 GB, free: 15.07 MB / 398.1 MB Notification: Performance of SimCode: time 0.0009712/0.1239, allocations: 1.004 MB / 0.5015 GB, free: 14.02 MB / 398.1 MB Notification: Performance of Templates: time 0.006724/0.1306, allocations: 3.042 MB / 0.5045 GB, free: 10.98 MB / 398.1 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/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) Reference file matches