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.001063/0.001063, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001019/0.00102, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.293/1.293, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2289/0.2289, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 56.56 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1066, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00315/0.1098, allocations: 2.24 MB / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.1111, allocations: 0.7713 MB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.1112, allocations: 4 kB / 472.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.1114, allocations: 35.53 kB / 472.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.1116, allocations: 63.44 kB / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.1119, allocations: 147.7 kB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.1123, allocations: 367.1 kB / 472.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.1125, allocations: 132.1 kB / 473 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.1127, allocations: 139.4 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.1128, allocations: 151.2 kB / 473.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.15e-05/0.1129, allocations: 36 kB / 473.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.891e-05/0.113, allocations: 36 kB / 473.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.97e-05/0.113, allocations: 87.67 kB / 473.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.1132, allocations: 159.1 kB / 473.6 MB, free: 10 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.1135, allocations: 367 kB / 473.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1135, allocations: 0 / 473.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1135, allocations: 0 / 473.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1135, allocations: 4 kB / 473.9 MB, free: 9.641 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.001013/0.1146, allocations: 0.6265 MB / 474.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1146, allocations: 12.03 kB / 474.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8e-05/0.1147, allocations: 40.55 kB / 474.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.1151, allocations: 335.1 kB / 475 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.1152, allocations: 20.94 kB / 475 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.462e-05/0.1152, allocations: 36.38 kB / 475 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.1157, allocations: 268.9 kB / 475.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.1158, allocations: 3.906 kB / 475.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.1158, allocations: 12 kB / 475.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1158, allocations: 4 kB / 475.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004042/0.1162, allocations: 202.1 kB / 475.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.1174, allocations: 0.8031 MB / 476.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.1178, allocations: 202.8 kB / 476.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.118, allocations: 100.8 kB / 476.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1181, allocations: 7.938 kB / 476.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/0.1185, allocations: 227.1 kB / 476.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.933e-06/0.1185, allocations: 4 kB / 476.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007947/0.1193, allocations: 369.2 kB / 477.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.1193, allocations: 59.41 kB / 477.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002048/0.1196, allocations: 236.9 kB / 477.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.1196, allocations: 37.7 kB / 477.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.944e-05/0.1197, allocations: 176.4 kB / 477.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.1198, allocations: 90.72 kB / 477.8 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1199, allocations: 78.05 kB / 477.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.12, allocations: 338.8 kB / 478.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.1202, allocations: 88.7 kB / 478.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.1205, allocations: 226.3 kB / 478.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004795/0.121, allocations: 348.8 kB / 478.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.121, allocations: 0 / 478.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006232/0.1216, allocations: 372.7 kB / 479.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.1216, allocations: 8.469 kB / 479.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1217, allocations: 8 kB / 479.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1217, allocations: 8 kB / 479.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.122, allocations: 79.83 kB / 479.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.122, allocations: 4 kB / 479.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.1222, allocations: 35.67 kB / 479.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.1222, allocations: 20 kB / 479.3 MB, free: 3.887 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.000155/0.1224, allocations: 171.5 kB / 479.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.1224, allocations: 31.66 kB / 479.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006113/0.123, allocations: 324.2 kB / 479.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1231, allocations: 11.92 kB / 479.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.1231, allocations: 0 / 479.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1231, allocations: 0 / 479.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008799/0.124, allocations: 0.7129 MB / 480.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.124, allocations: 0 / 480.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.1242, allocations: 51.91 kB / 480.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1242, allocations: 0 / 480.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/0.1243, allocations: 11.98 kB / 480.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.1243, allocations: 4 kB / 480.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1243, allocations: 0 / 480.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008614/0.1252, allocations: 0.5305 MB / 481.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/0.1252, allocations: 100.8 kB / 481.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.779e-05/0.1253, allocations: 4.062 kB / 481.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.1255, allocations: 15.98 kB / 481.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.1256, allocations: 23.97 kB / 481.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.1256, allocations: 19.98 kB / 481.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001445/0.1257, allocations: 164.5 kB / 481.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1257, allocations: 0 / 481.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003421/0.1261, allocations: 71.75 kB / 481.6 MB, free: 1.555 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.0001214/0.1262, allocations: 111.2 kB / 481.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.1268, allocations: 287.4 kB / 482 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.1268, allocations: 0 / 482 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002395/0.1271, allocations: 127.8 kB / 482.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.1274, allocations: 33.81 kB / 482.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009441/0.1284, allocations: 0.6068 MB / 482.7 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.1287, allocations: 0.7802 MB / 483.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.1289, allocations: 38.97 kB / 483.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.131e-05/0.129, allocations: 31.42 kB / 483.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.129, allocations: 0 / 483.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of Templates: time 0.005871/0.1348, allocations: 2.51 MB / 486.1 MB, free: 12.98 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches