Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001282/0.001283, allocations: 193 kB / 16.13 MB, free: 6.652 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.705/1.705, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.407/0.407, allocations: 39.93 MB / 309.3 MB, free: 9.391 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: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001476, allocations: 69.94 kB / 376.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1718, allocations: 56.89 MB / 433.8 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004571/0.1764, allocations: 2.257 MB / 436.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.1779, allocations: 0.7955 MB / 436.9 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.1781, allocations: 4 kB / 436.9 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.1783, allocations: 23.73 kB / 436.9 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002235/0.1785, allocations: 51.62 kB / 436.9 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.1788, allocations: 119.8 kB / 437 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.1791, allocations: 327.1 kB / 437.4 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.1794, allocations: 132.4 kB / 437.5 MB, free: 408 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.1796, allocations: 119.5 kB / 437.6 MB, free: 288 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.1798, allocations: 143.2 kB / 437.8 MB, free: 144 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.1798, allocations: 16 kB / 437.8 MB, free: 128 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.79e-05/0.1799, allocations: 23.94 kB / 437.8 MB, free: 104 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.052e-05/0.18, allocations: 63.73 kB / 437.9 MB, free: 40 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.1802, allocations: 139.3 kB / 438 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.1805, allocations: 330.7 kB / 438.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1805, allocations: 0 / 438.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1805, allocations: 0 / 438.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1805, allocations: 3.938 kB / 438.3 MB, free: 15.57 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.001173/0.1817, allocations: 0.6145 MB / 438.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.1818, allocations: 12.03 kB / 438.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.492e-05/0.1819, allocations: 40.5 kB / 439 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.1823, allocations: 323.2 kB / 439.3 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.1824, allocations: 24.92 kB / 439.3 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.925e-05/0.1824, allocations: 43.78 kB / 439.4 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004854/0.1829, allocations: 252.8 kB / 439.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.183, allocations: 8 kB / 439.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.183, allocations: 8 kB / 439.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.183, allocations: 8 kB / 439.6 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003972/0.1834, allocations: 182.1 kB / 439.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.1847, allocations: 0.7794 MB / 440.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004086/0.1852, allocations: 206.8 kB / 440.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.1854, allocations: 100.8 kB / 440.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/0.1854, allocations: 7.984 kB / 440.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004131/0.1858, allocations: 235 kB / 441.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.673e-06/0.1859, allocations: 0 / 441.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007693/0.1866, allocations: 365.2 kB / 441.5 MB, free: 12.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.1867, allocations: 59.41 kB / 441.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.1869, allocations: 237 kB / 441.8 MB, free: 11.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.187, allocations: 33.7 kB / 441.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1871, allocations: 168.6 kB / 442 MB, free: 11.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.117e-05/0.1872, allocations: 102.5 kB / 442.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.1873, allocations: 74.05 kB / 442.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1875, allocations: 338.8 kB / 442.5 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.1877, allocations: 84.7 kB / 442.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.188, allocations: 226.3 kB / 442.8 MB, free: 10.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005042/0.1885, allocations: 352.8 kB / 443.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.1885, allocations: 4 kB / 443.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006243/0.1892, allocations: 376.7 kB / 443.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.1892, allocations: 8 kB / 443.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.1892, allocations: 7.984 kB / 443.5 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.1892, allocations: 8 kB / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002979/0.1895, allocations: 71.89 kB / 443.6 MB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.1896, allocations: 11.94 kB / 443.6 MB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.1897, allocations: 28.11 kB / 443.6 MB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.1898, allocations: 24 kB / 443.7 MB, free: 9.887 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.0001695/0.19, allocations: 165.6 kB / 443.8 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.19, allocations: 31.56 kB / 443.8 MB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006085/0.1906, allocations: 323.4 kB / 444.2 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1906, allocations: 0 / 444.2 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1907, allocations: 4 kB / 444.2 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.1907, allocations: 3.984 kB / 444.2 MB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008813/0.1916, allocations: 0.7011 MB / 444.9 MB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.1916, allocations: 0 / 444.9 MB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.1918, allocations: 51.97 kB / 444.9 MB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1918, allocations: 0 / 444.9 MB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.1919, allocations: 11.98 kB / 444.9 MB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.1919, allocations: 4 kB / 444.9 MB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1919, allocations: 7.938 kB / 444.9 MB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008524/0.1927, allocations: 0.5264 MB / 445.5 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.775e-05/0.1928, allocations: 100.8 kB / 445.6 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.1929, allocations: 12.05 kB / 445.6 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.193, allocations: 19.98 kB / 445.6 MB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.337e-05/0.1931, allocations: 15.97 kB / 445.6 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.1932, allocations: 15.98 kB / 445.6 MB, free: 7.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001557/0.1933, allocations: 168.5 kB / 445.8 MB, free: 7.633 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1933, allocations: 0 / 445.8 MB, free: 7.633 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003617/0.1937, allocations: 67.75 kB / 445.9 MB, free: 7.566 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 (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.0001678/0.1939, allocations: 123.2 kB / 446 MB, free: 7.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005031/0.1944, allocations: 264.4 kB / 446.2 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1944, allocations: 192 / 446.2 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002254/0.1946, allocations: 128.2 kB / 446.4 MB, free: 7.055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.195, allocations: 44.08 kB / 446.4 MB, free: 7.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.1962, allocations: 0.7044 MB / 447.1 MB, free: 6.281 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.1966, allocations: 0.7764 MB / 447.9 MB, free: 5.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.1968, allocations: 46.89 kB / 447.9 MB, free: 5.434 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.348e-05/0.1968, allocations: 31.42 kB / 448 MB, free: 5.402 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1969, allocations: 0 / 448 MB, free: 5.402 MB / 382.1 MB Notification: Performance of Templates: time 0.006553/0.2034, allocations: 2.302 MB / 450.3 MB, free: 3.105 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe 2>&1)