Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 85.72 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002487/0.002487, allocations: 162.5 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.52/1.52, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.211/0.211, allocations: 34.29 MB / 295 MB, free: 14.57 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 442.7 MB, free: 5.418 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.559e-05/2.701e-05, allocations: 6.219 kB / 442.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003724/0.003751, allocations: 2.187 MB / 444.9 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.005544, allocations: 0.8645 MB / 445.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.0057, allocations: 11.88 kB / 445.7 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.005861, allocations: 39.53 kB / 445.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.006114, allocations: 75.27 kB / 445.8 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.006573, allocations: 183.5 kB / 446 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004658/0.007038, allocations: 390.8 kB / 446.4 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.007263, allocations: 92.78 kB / 446.5 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003728/0.007636, allocations: 223.4 kB / 446.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/0.00788, allocations: 119.6 kB / 446.8 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.686e-05/0.007947, allocations: 43.94 kB / 446.9 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.008057, allocations: 48 kB / 446.9 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.008169, allocations: 91.66 kB / 447 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.008335, allocations: 111.7 kB / 447.1 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000568/0.008903, allocations: 430.6 kB / 447.5 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.008907, allocations: 0 / 447.5 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.008908, allocations: 4 kB / 447.5 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.008915, allocations: 0 / 447.5 MB, free: 0.5078 MB / 366.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.183/0.1919, allocations: 0.7171 MB / 448.3 MB, free: 19.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1919, allocations: 9.188 kB / 448.3 MB, free: 19.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004929/0.1924, allocations: 79.75 kB / 448.4 MB, free: 19.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005066/0.1929, allocations: 294.9 kB / 448.6 MB, free: 19.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.1929, allocations: 24.72 kB / 448.7 MB, free: 19.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.971e-05/0.193, allocations: 30.69 kB / 448.7 MB, free: 19.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.1935, allocations: 269.3 kB / 449 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.1935, allocations: 5.953 kB / 449 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.1936, allocations: 13.44 kB / 449 MB, free: 19.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.1936, allocations: 10.52 kB / 449 MB, free: 19.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004244/0.194, allocations: 198.1 kB / 449.2 MB, free: 19.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.1952, allocations: 0.6758 MB / 449.9 MB, free: 18.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/0.1957, allocations: 186.2 kB / 450 MB, free: 18.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.1959, allocations: 89.34 kB / 450.1 MB, free: 18.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.813e-05/0.1959, allocations: 4.5 kB / 450.1 MB, free: 18.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004349/0.1963, allocations: 228.3 kB / 450.4 MB, free: 18.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/0.1963, allocations: 0 / 450.4 MB, free: 18.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008183/0.1972, allocations: 382.7 kB / 450.7 MB, free: 18.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.1972, allocations: 68.41 kB / 450.8 MB, free: 18.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.1974, allocations: 260.2 kB / 451 MB, free: 18.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.1975, allocations: 38.66 kB / 451.1 MB, free: 18.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.1976, allocations: 183 kB / 451.3 MB, free: 17.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.222e-05/0.1976, allocations: 105.8 kB / 451.4 MB, free: 17.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.1977, allocations: 75.67 kB / 451.4 MB, free: 17.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.4e-05/0.1978, allocations: 340.8 kB / 451.8 MB, free: 17.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.198, allocations: 91.14 kB / 451.9 MB, free: 17.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.1983, allocations: 226.1 kB / 452.1 MB, free: 17.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004609/0.1987, allocations: 344.7 kB / 452.4 MB, free: 17.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.1987, allocations: 1.375 kB / 452.4 MB, free: 17.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006321/0.1994, allocations: 373.4 kB / 452.8 MB, free: 16.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1994, allocations: 8.172 kB / 452.8 MB, free: 16.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1994, allocations: 4.062 kB / 452.8 MB, free: 16.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.1994, allocations: 6.906 kB / 452.8 MB, free: 16.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.1997, allocations: 82.05 kB / 452.9 MB, free: 16.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.1998, allocations: 11.98 kB / 452.9 MB, free: 16.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.1999, allocations: 38.5 kB / 452.9 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.2, allocations: 15.38 kB / 452.9 MB, free: 16.88 MB / 366.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.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.0001451/0.2001, allocations: 170.2 kB / 453.1 MB, free: 16.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.781e-05/0.2002, allocations: 34.72 kB / 453.1 MB, free: 16.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00065/0.2008, allocations: 327.1 kB / 453.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.2008, allocations: 3.938 kB / 453.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2008, allocations: 3.938 kB / 453.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.2008, allocations: 3.25 kB / 453.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008369/0.2017, allocations: 0.6055 MB / 454.1 MB, free: 16.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2017, allocations: 0 / 454.1 MB, free: 16.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.2019, allocations: 53.61 kB / 454.1 MB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.2019, allocations: 4.969 kB / 454.1 MB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.2019, allocations: 10.02 kB / 454.1 MB, free: 16.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.202, allocations: 8.078 kB / 454.2 MB, free: 16.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.202, allocations: 1.062 kB / 454.2 MB, free: 16.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008367/0.2028, allocations: 0.5223 MB / 454.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.579e-05/0.2028, allocations: 34.17 kB / 454.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.284e-05/0.2029, allocations: 9.703 kB / 454.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.2031, allocations: 22.12 kB / 454.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.392e-05/0.2031, allocations: 23.02 kB / 454.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.2032, allocations: 16.48 kB / 454.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.2033, allocations: 185.4 kB / 455 MB, free: 15.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2033, allocations: 3.938 kB / 455 MB, free: 15.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003653/0.2037, allocations: 70.98 kB / 455 MB, free: 15.73 MB / 366.1 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 9.916e-05/0.2038, allocations: 104.4 kB / 455.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005207/0.2043, allocations: 260.8 kB / 455.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2043, allocations: 0 / 455.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.2045, allocations: 120.7 kB / 455.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.2049, allocations: 42 kB / 455.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008796/0.2058, allocations: 0.6115 MB / 456.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.2059, allocations: 187.8 kB / 456.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.2061, allocations: 42.81 kB / 456.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.563e-05/0.2062, allocations: 32.62 kB / 456.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2062, allocations: 192 / 456.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of Templates: time 0.007347/0.2135, allocations: 2.735 MB / 459.2 MB, free: 14.71 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 5.09478922188282]