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.001381/0.001381, allocations: 103 kB / 16.64 MB, free: 6.82 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.001671/0.001671, allocations: 190.5 kB / 17.56 MB, free: 5.941 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.432/1.432, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.2512/0.2512, allocations: 43.51 MB / 314.3 MB, free: 0.7109 MB / 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.002072/0.002072, allocations: 65.02 kB / 382.9 MB, free: 57.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1697, allocations: 57.79 MB / 440.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00505/0.1748, allocations: 2.279 MB / 442.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.1772, allocations: 0.7878 MB / 443.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005013/0.1777, allocations: 11.88 kB / 443.7 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002884/0.178, allocations: 19.78 kB / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000407/0.1785, allocations: 39.64 kB / 443.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004613/0.179, allocations: 135.8 kB / 443.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003673/0.1794, allocations: 347.1 kB / 444.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003233/0.1797, allocations: 128.4 kB / 444.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.1799, allocations: 143.4 kB / 444.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.1802, allocations: 155.3 kB / 444.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.349e-05/0.1802, allocations: 32 kB / 444.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.078e-05/0.1803, allocations: 32 kB / 444.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.981e-05/0.1804, allocations: 79.69 kB / 444.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.1806, allocations: 159.1 kB / 445 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.1809, allocations: 259.5 kB / 445.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.1809, allocations: 4 kB / 445.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1809, allocations: 0 / 445.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.181, allocations: 0 / 445.2 MB, free: 2.762 MB / 318.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.001279/0.1822, allocations: 0.6137 MB / 445.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.1823, allocations: 15.89 kB / 445.9 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.509e-05/0.1824, allocations: 40.56 kB / 445.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.1829, allocations: 327.2 kB / 446.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.1829, allocations: 20.94 kB / 446.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.716e-05/0.183, allocations: 32.28 kB / 446.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.1835, allocations: 261 kB / 446.5 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.1835, allocations: 3.984 kB / 446.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.1835, allocations: 4 kB / 446.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.1836, allocations: 8 kB / 446.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003707/0.1839, allocations: 190 kB / 446.7 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.1851, allocations: 0.7795 MB / 447.5 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.1855, allocations: 202.8 kB / 447.7 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.1857, allocations: 93.69 kB / 447.8 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.1857, allocations: 15.92 kB / 447.8 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004701/0.1862, allocations: 243 kB / 448 MB, free: 15.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1862, allocations: 0 / 448 MB, free: 15.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007986/0.187, allocations: 369.2 kB / 448.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.1871, allocations: 55.41 kB / 448.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.1873, allocations: 237 kB / 448.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.1874, allocations: 33.7 kB / 448.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1875, allocations: 168.6 kB / 448.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1876, allocations: 98.55 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.1877, allocations: 82 kB / 449.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1879, allocations: 338.8 kB / 449.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.1881, allocations: 88.69 kB / 449.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/0.1884, allocations: 222.4 kB / 449.7 MB, free: 14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005208/0.1889, allocations: 340.8 kB / 450 MB, free: 13.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1889, allocations: 8 kB / 450 MB, free: 13.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006402/0.1896, allocations: 365.2 kB / 450.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.1896, allocations: 8 kB / 450.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.1896, allocations: 12.03 kB / 450.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.145e-05/0.1897, allocations: 15.92 kB / 450.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.19, allocations: 67.91 kB / 450.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.045e-05/0.19, allocations: 15.92 kB / 450.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.1902, allocations: 23.84 kB / 450.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.1902, allocations: 20 kB / 450.6 MB, free: 13.08 MB / 334.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.0001909/0.1904, allocations: 173.6 kB / 450.7 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.1905, allocations: 27.62 kB / 450.8 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006965/0.1912, allocations: 323.4 kB / 451.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.1912, allocations: 4 kB / 451.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1912, allocations: 0 / 451.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.1912, allocations: 4 kB / 451.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.1923, allocations: 0.705 MB / 451.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1923, allocations: 0 / 451.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.1926, allocations: 51.91 kB / 451.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1926, allocations: 0 / 451.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.1927, allocations: 11.98 kB / 451.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1927, allocations: 0 / 451.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1927, allocations: 8 kB / 451.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009183/0.1936, allocations: 0.5223 MB / 452.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.968e-05/0.1937, allocations: 100.8 kB / 452.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.1937, allocations: 8.062 kB / 452.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.1939, allocations: 15.98 kB / 452.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.64e-05/0.194, allocations: 23.97 kB / 452.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.1941, allocations: 16.11 kB / 452.5 MB, free: 11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001707/0.1942, allocations: 168.5 kB / 452.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.485e-06/0.1942, allocations: 0 / 452.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003526/0.1946, allocations: 67.69 kB / 452.8 MB, free: 10.77 MB / 334.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,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.0001627/0.1948, allocations: 119.3 kB / 452.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006186/0.1954, allocations: 283.5 kB / 453.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.1954, allocations: 4 kB / 453.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.1957, allocations: 131.9 kB / 453.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.1961, allocations: 41.3 kB / 453.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.1975, allocations: 0.7297 MB / 454.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005522/0.198, allocations: 0.7879 MB / 454.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.1981, allocations: 31.42 kB / 454.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1981, allocations: 0 / 454.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of Templates: time 0.007242/0.2054, allocations: 3.553 MB / 458.4 MB, free: 5.031 MB / 334.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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches