Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007743/0.0007743, allocations: 97.2 kB / 18.01 MB, free: 5.602 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.000926/0.000926, allocations: 177.6 kB / 18.91 MB, free: 4.738 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.364/1.364, allocations: 223.3 MB / 242.9 MB, free: 20 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1933/0.1933, allocations: 44.25 MB / 338.3 MB, free: 2.605 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003084, allocations: 8 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 61.92 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00234/0.1036, allocations: 1.926 MB / 474.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1049, allocations: 0.7363 MB / 475.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.1051, allocations: 4 kB / 475.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.1052, allocations: 23.78 kB / 475.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.1055, allocations: 51.53 kB / 475.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.1058, allocations: 131.8 kB / 475.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003712/0.1062, allocations: 335.1 kB / 476.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.1064, allocations: 124.2 kB / 476.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.1066, allocations: 107.4 kB / 476.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.1068, allocations: 135.2 kB / 476.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.1069, allocations: 8 kB / 476.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.233e-05/0.1069, allocations: 12 kB / 476.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.79e-05/0.107, allocations: 51.75 kB / 476.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.1072, allocations: 168.8 kB / 476.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.1074, allocations: 259.6 kB / 477 MB, free: 9.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1074, allocations: 0 / 477 MB, free: 9.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1074, allocations: 0 / 477 MB, free: 9.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1074, allocations: 0 / 477 MB, free: 9.238 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009753/0.1084, allocations: 0.5643 MB / 477.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.1085, allocations: 8.031 kB / 477.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.977e-05/0.1086, allocations: 36.56 kB / 477.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004788/0.109, allocations: 335.2 kB / 477.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/0.1091, allocations: 24.94 kB / 477.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/0.1091, allocations: 40.22 kB / 478 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005336/0.1097, allocations: 272.9 kB / 478.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1097, allocations: 8 kB / 478.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.1098, allocations: 8 kB / 478.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.1098, allocations: 11.98 kB / 478.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.1102, allocations: 198.1 kB / 478.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.1116, allocations: 0.8226 MB / 479.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000421/0.112, allocations: 213.8 kB / 479.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.1122, allocations: 112.8 kB / 479.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.1123, allocations: 7.922 kB / 479.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000421/0.1127, allocations: 239.7 kB / 479.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/0.1127, allocations: 0 / 479.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007986/0.1135, allocations: 389.2 kB / 480.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.1136, allocations: 55.41 kB / 480.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.1138, allocations: 236.9 kB / 480.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.1138, allocations: 33.69 kB / 480.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.1139, allocations: 176.4 kB / 480.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.454e-05/0.114, allocations: 98.7 kB / 480.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.1141, allocations: 45.64 kB / 480.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1142, allocations: 338.8 kB / 481.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.1144, allocations: 100.6 kB / 481.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.1147, allocations: 226.4 kB / 481.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005194/0.1153, allocations: 356.8 kB / 481.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.1153, allocations: 4 kB / 481.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006637/0.1159, allocations: 389.1 kB / 482.2 MB, free: 3.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.116, allocations: 8 kB / 482.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.557e-06/0.116, allocations: 4 kB / 482.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.116, allocations: 8 kB / 482.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.1163, allocations: 75.89 kB / 482.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.1163, allocations: 11.94 kB / 482.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.1165, allocations: 35.67 kB / 482.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.1166, allocations: 24 kB / 482.4 MB, free: 3.457 MB / 350.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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last) * 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.000167/0.1167, allocations: 166.7 kB / 482.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.1168, allocations: 27.8 kB / 482.6 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006495/0.1174, allocations: 340.2 kB / 482.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1175, allocations: 4 kB / 482.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1175, allocations: 0 / 482.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.1175, allocations: 3.984 kB / 482.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009323/0.1184, allocations: 0.7245 MB / 483.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1184, allocations: 0 / 483.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.1187, allocations: 51.95 kB / 483.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.1187, allocations: 4 kB / 483.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.1187, allocations: 12 kB / 483.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1187, allocations: 3.938 kB / 483.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1187, allocations: 96 / 483.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008448/0.1196, allocations: 0.5422 MB / 484.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.487e-05/0.1197, allocations: 104.8 kB / 484.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.1197, allocations: 8.062 kB / 484.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.1199, allocations: 15.98 kB / 484.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.981e-05/0.12, allocations: 27.97 kB / 484.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.12, allocations: 15.98 kB / 484.4 MB, free: 1.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001435/0.1202, allocations: 164.5 kB / 484.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1202, allocations: 3.938 kB / 484.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003589/0.1205, allocations: 67.75 kB / 484.6 MB, free: 1.086 MB / 350.1 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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.0001203/0.1207, allocations: 119.2 kB / 484.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.1212, allocations: 275.5 kB / 485 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1212, allocations: 0.9375 kB / 485 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002595/0.1215, allocations: 139.9 kB / 485.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.1219, allocations: 36.41 kB / 485.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.123, allocations: 0.7772 MB / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1233, allocations: 0.7802 MB / 486.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.452e-05/0.1234, allocations: 35.42 kB / 486.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1234, allocations: 0 / 486.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of Templates: time 0.006006/0.1294, allocations: 3.565 MB / 490.4 MB, free: 11.29 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches