Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008973/0.0008973, allocations: 88.28 kB / 21.44 MB, free: 3.125 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003707/0.003707, allocations: 148.7 kB / 24.69 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8383/0.8383, allocations: 177 MB / 204.9 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2546/0.2546, allocations: 34.24 MB / 295.6 MB, free: 0.668 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 443.4 MB, free: 1.055 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.859e-05/1.999e-05, allocations: 8.812 kB / 443.4 MB, free: 1.047 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.189/0.189, allocations: 2.185 MB / 445.6 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009587/0.19, allocations: 0.862 MB / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1901, allocations: 9.5 kB / 446.5 MB, free: 43.01 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.1902, allocations: 37.14 kB / 446.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.1904, allocations: 72.62 kB / 446.6 MB, free: 42.93 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.1906, allocations: 187.5 kB / 446.8 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.1909, allocations: 394.4 kB / 447.2 MB, free: 42.66 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.191, allocations: 83.03 kB / 447.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.1912, allocations: 235 kB / 447.5 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.1914, allocations: 121.8 kB / 447.6 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.1914, allocations: 41.41 kB / 447.6 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.069e-05/0.1915, allocations: 51.64 kB / 447.7 MB, free: 42.45 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.233e-05/0.1916, allocations: 90.66 kB / 447.8 MB, free: 42.39 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.284e-05/0.1916, allocations: 107.3 kB / 447.9 MB, free: 42.33 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002834/0.1919, allocations: 428 kB / 448.3 MB, free: 42.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1919, allocations: 0 / 448.3 MB, free: 42.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1919, allocations: 3.188 kB / 448.3 MB, free: 42.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1919, allocations: 2.875 kB / 448.3 MB, free: 42.14 MB / 410.7 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.0007679/0.1927, allocations: 0.7229 MB / 449 MB, free: 41.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1927, allocations: 12.31 kB / 449 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.193, allocations: 80.8 kB / 449.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.1933, allocations: 291.5 kB / 449.4 MB, free: 41.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.1933, allocations: 23.34 kB / 449.4 MB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.1933, allocations: 32.47 kB / 449.4 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.1937, allocations: 277.4 kB / 449.7 MB, free: 41.24 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1937, allocations: 4.141 kB / 449.7 MB, free: 41.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.1937, allocations: 18.36 kB / 449.7 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1937, allocations: 5.812 kB / 449.7 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.194, allocations: 190.8 kB / 449.9 MB, free: 41.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000822/0.1948, allocations: 0.6712 MB / 450.6 MB, free: 40.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.1951, allocations: 189.1 kB / 450.8 MB, free: 40.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.1952, allocations: 91.25 kB / 450.9 MB, free: 40.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.1952, allocations: 2.938 kB / 450.9 MB, free: 40.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.1955, allocations: 226.7 kB / 451.1 MB, free: 40.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.294e-06/0.1955, allocations: 0 / 451.1 MB, free: 40.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005392/0.196, allocations: 391.1 kB / 451.5 MB, free: 40.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.1961, allocations: 61.28 kB / 451.5 MB, free: 40.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.1962, allocations: 263.5 kB / 451.8 MB, free: 40.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.1963, allocations: 32.64 kB / 451.8 MB, free: 40.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.054e-05/0.1963, allocations: 186.8 kB / 452 MB, free: 39.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.1964, allocations: 103.1 kB / 452.1 MB, free: 39.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.737e-05/0.1965, allocations: 73.08 kB / 452.2 MB, free: 39.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.112e-05/0.1965, allocations: 344.3 kB / 452.5 MB, free: 39.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.1966, allocations: 89.12 kB / 452.6 MB, free: 39.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.1968, allocations: 229.8 kB / 452.8 MB, free: 39.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.1971, allocations: 343.1 kB / 453.2 MB, free: 39.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1971, allocations: 2.656 kB / 453.2 MB, free: 39.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003709/0.1975, allocations: 372.5 kB / 453.5 MB, free: 38.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1975, allocations: 5.594 kB / 453.5 MB, free: 38.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1975, allocations: 9.531 kB / 453.5 MB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.1975, allocations: 9.656 kB / 453.6 MB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.1977, allocations: 73.33 kB / 453.6 MB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.1977, allocations: 10 kB / 453.6 MB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.76e-05/0.1978, allocations: 42.45 kB / 453.7 MB, free: 38.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.1978, allocations: 18.41 kB / 453.7 MB, free: 38.85 MB / 410.7 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.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.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.0001072/0.1979, allocations: 165 kB / 453.9 MB, free: 38.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.1979, allocations: 37.83 kB / 453.9 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004018/0.1983, allocations: 326.8 kB / 454.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1983, allocations: 8.969 kB / 454.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1983, allocations: 3.938 kB / 454.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1983, allocations: 0 / 454.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005201/0.1989, allocations: 0.6031 MB / 454.8 MB, free: 38.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1989, allocations: 0 / 454.8 MB, free: 38.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.199, allocations: 57.56 kB / 454.9 MB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.199, allocations: 3.938 kB / 454.9 MB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.199, allocations: 17.31 kB / 454.9 MB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.199, allocations: 2.812 kB / 454.9 MB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.199, allocations: 0 / 454.9 MB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005027/0.1995, allocations: 0.5241 MB / 455.4 MB, free: 37.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.1996, allocations: 35.5 kB / 455.5 MB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.1996, allocations: 10.56 kB / 455.5 MB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.971e-05/0.1997, allocations: 15.45 kB / 455.5 MB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/0.1997, allocations: 29.14 kB / 455.5 MB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.1998, allocations: 15.33 kB / 455.5 MB, free: 37.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.823e-05/0.1999, allocations: 186 kB / 455.7 MB, free: 37.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1999, allocations: 0 / 455.7 MB, free: 37.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002266/0.2001, allocations: 70.23 kB / 455.8 MB, free: 37.69 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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.0001096/0.2002, allocations: 114.7 kB / 455.9 MB, free: 37.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000336/0.2005, allocations: 252.3 kB / 456.1 MB, free: 37.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2005, allocations: 0 / 456.1 MB, free: 37.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.2007, allocations: 116.7 kB / 456.3 MB, free: 37.49 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.2009, allocations: 42.48 kB / 456.3 MB, free: 37.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007339/0.2017, allocations: 0.633 MB / 456.9 MB, free: 37.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.2018, allocations: 195 kB / 457.1 MB, free: 36.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.815e-05/0.2019, allocations: 34.73 kB / 457.2 MB, free: 36.96 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2019, allocations: 0 / 457.2 MB, free: 36.96 MB / 410.7 MB Notification: Performance of Templates: time 0.00453/0.2064, allocations: 4.059 MB / 461.2 MB, free: 36.57 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.664574621245265]