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.001016/0.001015, allocations: 103 kB / 16.02 MB, free: 76 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.001365/0.001365, allocations: 186 kB / 16.92 MB, free: 6.918 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.018/2.018, allocations: 205.4 MB / 223.1 MB, free: 5.758 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.5378/0.5378, allocations: 43.57 MB / 315 MB, free: 8.691 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.0006215/0.0006216, allocations: 16.61 kB / 384.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.184, allocations: 58.87 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003042/0.1871, allocations: 1.911 MB / 445.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.1886, allocations: 0.784 MB / 446.1 MB, free: 9.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.1889, allocations: 7.938 kB / 446.1 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.189, allocations: 19.78 kB / 446.2 MB, free: 9.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003056/0.1893, allocations: 39.64 kB / 446.2 MB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.1898, allocations: 131.8 kB / 446.3 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.1903, allocations: 327.1 kB / 446.6 MB, free: 9.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003392/0.1907, allocations: 120.5 kB / 446.8 MB, free: 9.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002922/0.191, allocations: 111.4 kB / 446.9 MB, free: 9.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002369/0.1912, allocations: 119.3 kB / 447 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.63e-05/0.1913, allocations: 12 kB / 447 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.175e-05/0.1913, allocations: 8 kB / 447 MB, free: 9.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.284e-05/0.1914, allocations: 59.7 kB / 447.1 MB, free: 9.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.1916, allocations: 148.9 kB / 447.2 MB, free: 8.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.1919, allocations: 314.7 kB / 447.5 MB, free: 8.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.192, allocations: 4 kB / 447.5 MB, free: 8.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.192, allocations: 0 / 447.5 MB, free: 8.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.192, allocations: 0 / 447.5 MB, free: 8.562 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.001133/0.1931, allocations: 0.5522 MB / 448.1 MB, free: 7.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.1932, allocations: 12.03 kB / 448.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.587e-05/0.1933, allocations: 32.56 kB / 448.1 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005276/0.1938, allocations: 335.1 kB / 448.5 MB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.1939, allocations: 24.92 kB / 448.5 MB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.1939, allocations: 32.28 kB / 448.5 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005476/0.1945, allocations: 269 kB / 448.8 MB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.1945, allocations: 0 / 448.8 MB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.1946, allocations: 15.98 kB / 448.8 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.1946, allocations: 4 kB / 448.8 MB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000433/0.195, allocations: 202.1 kB / 449 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.1964, allocations: 0.7796 MB / 449.8 MB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/0.1968, allocations: 210.8 kB / 450 MB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.197, allocations: 108.8 kB / 450.1 MB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.1971, allocations: 7.984 kB / 450.1 MB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004442/0.1975, allocations: 239 kB / 450.3 MB, free: 5.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.874e-06/0.1976, allocations: 0 / 450.3 MB, free: 5.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008439/0.1984, allocations: 393.2 kB / 450.7 MB, free: 5.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.1985, allocations: 59.41 kB / 450.8 MB, free: 5.145 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.1987, allocations: 233 kB / 451 MB, free: 4.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.1988, allocations: 45.62 kB / 451 MB, free: 4.859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.1989, allocations: 168.5 kB / 451.2 MB, free: 4.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.586e-05/0.199, allocations: 94.64 kB / 451.3 MB, free: 4.598 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.008e-05/0.1991, allocations: 45.69 kB / 451.3 MB, free: 4.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.1992, allocations: 338.8 kB / 451.7 MB, free: 4.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.1995, allocations: 92.69 kB / 451.8 MB, free: 4.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.1998, allocations: 234.4 kB / 452 MB, free: 3.824 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005384/0.2003, allocations: 352.8 kB / 452.3 MB, free: 3.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2003, allocations: 4 kB / 452.3 MB, free: 3.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006328/0.201, allocations: 385.2 kB / 452.7 MB, free: 3.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.201, allocations: 8 kB / 452.7 MB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.201, allocations: 7.938 kB / 452.7 MB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.201, allocations: 4 kB / 452.7 MB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.2013, allocations: 87.83 kB / 452.8 MB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/0.2014, allocations: 7.984 kB / 452.8 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.2015, allocations: 35.84 kB / 452.9 MB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.2016, allocations: 20 kB / 452.9 MB, free: 2.863 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.000186/0.2018, allocations: 169.5 kB / 453 MB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.2018, allocations: 23.72 kB / 453.1 MB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006658/0.2025, allocations: 343.2 kB / 453.4 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2025, allocations: 0 / 453.4 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.2025, allocations: 4.094 kB / 453.4 MB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.2025, allocations: 7.938 kB / 453.4 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009138/0.2035, allocations: 0.7128 MB / 454.1 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.2035, allocations: 3.984 kB / 454.1 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.2037, allocations: 59.84 kB / 454.2 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.2037, allocations: 4 kB / 454.2 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.2038, allocations: 8 kB / 454.2 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2038, allocations: 3.984 kB / 454.2 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2038, allocations: 0 / 454.2 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008673/0.2047, allocations: 0.5382 MB / 454.7 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.464e-05/0.2047, allocations: 104.8 kB / 454.8 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.2048, allocations: 8.062 kB / 454.9 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.205, allocations: 19.98 kB / 454.9 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.205, allocations: 23.97 kB / 454.9 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.2051, allocations: 15.98 kB / 454.9 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001584/0.2052, allocations: 164.5 kB / 455.1 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2052, allocations: 0 / 455.1 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.2056, allocations: 67.75 kB / 455.1 MB, free: 0.4922 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.0001541/0.2057, allocations: 115.1 kB / 455.2 MB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005444/0.2063, allocations: 280.4 kB / 455.5 MB, free: 100 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2063, allocations: 4.125 kB / 455.5 MB, free: 96 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2554/0.4617, allocations: 132.7 kB / 455.7 MB, free: 46.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.4623, allocations: 34 kB / 455.7 MB, free: 46.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.4639, allocations: 0.7187 MB / 456.4 MB, free: 46.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.4641, allocations: 0.7847 MB / 457.2 MB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.4644, allocations: 43.14 kB / 457.2 MB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.695e-05/0.4645, allocations: 36.84 kB / 457.3 MB, free: 45.72 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4645, allocations: 0 / 457.3 MB, free: 45.72 MB / 382.1 MB Notification: Performance of Templates: time 0.005879/0.4704, allocations: 2.273 MB / 459.5 MB, free: 45.67 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