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.0008174/0.0008174, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009331/0.0009331, allocations: 175.2 kB / 16.58 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.083/2.083, allocations: 205.4 MB / 222.8 MB, free: 5.895 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5329/0.5329, allocations: 43.57 MB / 314.6 MB, free: 8.672 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.0006143/0.0006145, allocations: 16 kB / 383.9 MB, free: 8.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1709, allocations: 58.87 MB / 442.8 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002685/0.1737, allocations: 1.842 MB / 444.7 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.1751, allocations: 0.7648 MB / 445.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.1753, allocations: 0 / 445.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1754, allocations: 27.72 kB / 445.4 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002173/0.1756, allocations: 35.66 kB / 445.5 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.1759, allocations: 107.8 kB / 445.6 MB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003428/0.1763, allocations: 307.1 kB / 445.9 MB, free: 9.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1765, allocations: 106.5 kB / 446 MB, free: 9.863 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.1767, allocations: 95.56 kB / 446.1 MB, free: 9.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.1769, allocations: 123.3 kB / 446.2 MB, free: 9.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.1769, allocations: 8 kB / 446.2 MB, free: 9.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.295e-05/0.177, allocations: 12 kB / 446.2 MB, free: 9.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.477e-05/0.177, allocations: 55.75 kB / 446.3 MB, free: 9.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.907e-05/0.1771, allocations: 69.58 kB / 446.3 MB, free: 9.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003141/0.1774, allocations: 255.6 kB / 446.6 MB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1775, allocations: 0 / 446.6 MB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1775, allocations: 4 kB / 446.6 MB, free: 9.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.361e-06/0.1775, allocations: 0 / 446.6 MB, free: 9.246 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.001129/0.1787, allocations: 0.552 MB / 447.2 MB, free: 8.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1787, allocations: 8.031 kB / 447.2 MB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.152e-05/0.1788, allocations: 39.58 kB / 447.2 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005477/0.1794, allocations: 322 kB / 447.5 MB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/0.1794, allocations: 28.55 kB / 447.5 MB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.985e-05/0.1795, allocations: 28 kB / 447.6 MB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005268/0.18, allocations: 268.8 kB / 447.8 MB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1801, allocations: 4 kB / 447.8 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.1801, allocations: 12 kB / 447.8 MB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.1801, allocations: 4 kB / 447.8 MB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.1806, allocations: 194.1 kB / 448 MB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.1819, allocations: 0.7873 MB / 448.8 MB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.1824, allocations: 210.8 kB / 449 MB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.1826, allocations: 104.8 kB / 449.1 MB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.1826, allocations: 7.984 kB / 449.1 MB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004457/0.1831, allocations: 247 kB / 449.4 MB, free: 6.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.523e-06/0.1831, allocations: 0 / 449.4 MB, free: 6.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008166/0.1839, allocations: 381.2 kB / 449.8 MB, free: 5.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.184, allocations: 55.41 kB / 449.8 MB, free: 5.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.1842, allocations: 240.8 kB / 450 MB, free: 5.602 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.1843, allocations: 37.7 kB / 450.1 MB, free: 5.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.1844, allocations: 160.6 kB / 450.2 MB, free: 5.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.1845, allocations: 98.7 kB / 450.3 MB, free: 5.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.912e-05/0.1845, allocations: 15.94 kB / 450.4 MB, free: 5.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1847, allocations: 334.8 kB / 450.7 MB, free: 4.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.1849, allocations: 92.69 kB / 450.8 MB, free: 4.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/0.1853, allocations: 242.2 kB / 451 MB, free: 4.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.1855, allocations: 115.9 kB / 451.1 MB, free: 4.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1855, allocations: 4 kB / 451.1 MB, free: 4.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000638/0.1862, allocations: 377.2 kB / 451.5 MB, free: 4.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1862, allocations: 8 kB / 451.5 MB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.1862, allocations: 8 kB / 451.5 MB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.1863, allocations: 8 kB / 451.5 MB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.1866, allocations: 75.89 kB / 451.6 MB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.1866, allocations: 11.94 kB / 451.6 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.1868, allocations: 39.62 kB / 451.6 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.1868, allocations: 19.98 kB / 451.7 MB, free: 3.898 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,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001847/0.187, allocations: 173.5 kB / 451.8 MB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-05/0.187, allocations: 31.84 kB / 451.9 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006379/0.1877, allocations: 335.3 kB / 452.2 MB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1877, allocations: 4 kB / 452.2 MB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1877, allocations: 0 / 452.2 MB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1877, allocations: 3.984 kB / 452.2 MB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009693/0.1887, allocations: 0.7128 MB / 452.9 MB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1887, allocations: 0 / 452.9 MB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.189, allocations: 55.91 kB / 453 MB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.189, allocations: 0 / 453 MB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.189, allocations: 11.98 kB / 453 MB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.189, allocations: 4 kB / 453 MB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.189, allocations: 4 kB / 453 MB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008974/0.1899, allocations: 0.5345 MB / 453.5 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.722e-05/0.1901, allocations: 104.7 kB / 453.6 MB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.1901, allocations: 12.19 kB / 453.6 MB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.1903, allocations: 15.98 kB / 453.6 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/0.1904, allocations: 27.95 kB / 453.7 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.1904, allocations: 12 kB / 453.7 MB, free: 1.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.1906, allocations: 164.6 kB / 453.8 MB, free: 1.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1906, allocations: 3.938 kB / 453.8 MB, free: 1.598 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.191, allocations: 71.83 kB / 453.9 MB, free: 1.527 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001674/0.1911, allocations: 108.2 kB / 454 MB, free: 1.414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005631/0.1917, allocations: 271.6 kB / 454.3 MB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1917, allocations: 0 / 454.3 MB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002474/0.192, allocations: 136.8 kB / 454.4 MB, free: 1.016 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.1924, allocations: 36.38 kB / 454.5 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.1935, allocations: 0.6971 MB / 455.2 MB, free: 260 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2389/0.4324, allocations: 0.775 MB / 455.9 MB, free: 45.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002509/0.4327, allocations: 44.66 kB / 456 MB, free: 45.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.4328, allocations: 30.92 kB / 456 MB, free: 45.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.984e-06/0.4328, allocations: 0 / 456 MB, free: 45.8 MB / 382.1 MB Notification: Performance of Templates: time 0.005254/0.438, allocations: 2.197 MB / 458.2 MB, free: 45.76 MB / 382.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/jenkins/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