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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2295/0.2295, allocations: 46.11 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 76.47 kB / 417.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1779, allocations: 62.44 MB / 480 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004772/0.1828, allocations: 2.316 MB / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.1848, allocations: 0.8997 MB / 483.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.1849, allocations: 7.938 kB / 483.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.1851, allocations: 35.53 kB / 483.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003079/0.1855, allocations: 71.33 kB / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005158/0.186, allocations: 175.7 kB / 483.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.1864, allocations: 386.9 kB / 483.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.1868, allocations: 132.2 kB / 484 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.1871, allocations: 151.4 kB / 484.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.1873, allocations: 167.1 kB / 484.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.356e-05/0.1874, allocations: 36 kB / 484.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.1875, allocations: 51.98 kB / 484.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.888e-05/0.1876, allocations: 83.75 kB / 484.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.1878, allocations: 178.9 kB / 484.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.1883, allocations: 394.9 kB / 485.1 MB, free: 264 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.1883, allocations: 0 / 485.1 MB, free: 264 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1883, allocations: 4 kB / 485.1 MB, free: 260 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1884, allocations: 0 / 485.1 MB, free: 260 kB / 350.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.001369/0.1897, allocations: 0.6538 MB / 485.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.1898, allocations: 11.97 kB / 485.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004964/0.1903, allocations: 84.33 kB / 485.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.1908, allocations: 355.8 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.1909, allocations: 24.94 kB / 486.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.048e-05/0.191, allocations: 36.36 kB / 486.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005318/0.1915, allocations: 276.9 kB / 486.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.1915, allocations: 0 / 486.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.1916, allocations: 15.98 kB / 486.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1916, allocations: 4 kB / 486.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.192, allocations: 194.1 kB / 486.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.1935, allocations: 0.8343 MB / 487.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/0.194, allocations: 198.8 kB / 487.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.1942, allocations: 96.81 kB / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.1942, allocations: 11.94 kB / 487.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004228/0.1947, allocations: 223 kB / 488 MB, free: 13.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.823e-06/0.1947, allocations: 0 / 488 MB, free: 13.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008189/0.1955, allocations: 373.8 kB / 488.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.1956, allocations: 63.39 kB / 488.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002894/0.1959, allocations: 266.9 kB / 488.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.1959, allocations: 41.69 kB / 488.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.1961, allocations: 172.6 kB / 488.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.951e-05/0.1962, allocations: 102.5 kB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.1963, allocations: 74.06 kB / 489.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1965, allocations: 342.8 kB / 489.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.1967, allocations: 88.7 kB / 489.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003071/0.197, allocations: 226.6 kB / 489.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005261/0.1976, allocations: 356.7 kB / 490.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.1976, allocations: 0 / 490.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006854/0.1983, allocations: 381.2 kB / 490.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1983, allocations: 8 kB / 490.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.1983, allocations: 11.98 kB / 490.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.1983, allocations: 4 kB / 490.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.1986, allocations: 75.89 kB / 490.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.1987, allocations: 11.94 kB / 490.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.1988, allocations: 35.67 kB / 490.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.1989, allocations: 16 kB / 490.6 MB, free: 10.32 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.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.0001853/0.1991, allocations: 169.7 kB / 490.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.1991, allocations: 35.5 kB / 490.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006306/0.1997, allocations: 321.2 kB / 491.2 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1998, allocations: 4 kB / 491.2 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1998, allocations: 0 / 491.2 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1998, allocations: 4 kB / 491.2 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000911/0.2007, allocations: 0.7245 MB / 491.9 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2007, allocations: 0 / 491.9 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.201, allocations: 51.91 kB / 491.9 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.201, allocations: 4 kB / 491.9 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.201, allocations: 8 kB / 491.9 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.201, allocations: 11.98 kB / 492 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.201, allocations: 0 / 492 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008536/0.2019, allocations: 0.5189 MB / 492.5 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.202, allocations: 104.7 kB / 492.6 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.772e-05/0.202, allocations: 8.062 kB / 492.6 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.2022, allocations: 19.98 kB / 492.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.2023, allocations: 19.97 kB / 492.6 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.2023, allocations: 15.98 kB / 492.6 MB, free: 8.207 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001716/0.2025, allocations: 190 kB / 492.8 MB, free: 8.023 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2025, allocations: 0 / 492.8 MB, free: 8.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003534/0.2028, allocations: 75.69 kB / 492.9 MB, free: 7.949 MB / 366.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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.000141/0.203, allocations: 112.2 kB / 493 MB, free: 7.832 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006045/0.2036, allocations: 287.4 kB / 493.3 MB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2036, allocations: 0 / 493.3 MB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.2039, allocations: 128.8 kB / 493.4 MB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.2042, allocations: 39.88 kB / 493.5 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.2053, allocations: 0.6335 MB / 494.1 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.2057, allocations: 0.7959 MB / 494.9 MB, free: 5.906 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.2059, allocations: 42.95 kB / 494.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.76e-05/0.206, allocations: 27.44 kB / 495 MB, free: 5.836 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.206, allocations: 0 / 495 MB, free: 5.836 MB / 366.1 MB Notification: Performance of Templates: time 0.006328/0.2123, allocations: 2.708 MB / 497.7 MB, free: 3.141 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches