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.0008967/0.0008969, allocations: 96.28 kB / 15.69 MB, free: 480 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.0008869/0.000887, allocations: 178.7 kB / 16.57 MB, free: 6.387 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.176/1.176, allocations: 205.4 MB / 222.7 MB, free: 5.664 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.2757/0.2757, allocations: 43.54 MB / 314.5 MB, free: 8.773 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.0004982/0.0004982, allocations: 12 kB / 383.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09407/0.09458, allocations: 58.86 MB / 442.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002014/0.09663, allocations: 1.823 MB / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.09781, allocations: 0.7532 MB / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.09797, allocations: 7.938 kB / 445.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.732e-05/0.09808, allocations: 23.78 kB / 445.4 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001818/0.09827, allocations: 51.78 kB / 445.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.09854, allocations: 99.81 kB / 445.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002579/0.09881, allocations: 207.6 kB / 445.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.09901, allocations: 94.62 kB / 445.8 MB, free: 10 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.09916, allocations: 99.55 kB / 445.9 MB, free: 9.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.09933, allocations: 115.4 kB / 446 MB, free: 9.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.09937, allocations: 12 kB / 446 MB, free: 9.777 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.837e-05/0.0994, allocations: 12 kB / 446 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.209e-05/0.09946, allocations: 51.75 kB / 446.1 MB, free: 9.715 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.829e-05/0.09953, allocations: 73.58 kB / 446.2 MB, free: 9.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.09974, allocations: 255.6 kB / 446.4 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.09975, allocations: 0 / 446.4 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.09976, allocations: 0 / 446.4 MB, free: 9.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.09977, allocations: 0 / 446.4 MB, free: 9.387 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.0008664/0.1006, allocations: 0.552 MB / 447 MB, free: 8.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.1007, allocations: 8.031 kB / 447 MB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.612e-05/0.1008, allocations: 39.58 kB / 447 MB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.1012, allocations: 333.9 kB / 447.3 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.1013, allocations: 20.56 kB / 447.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.085e-05/0.1013, allocations: 35.98 kB / 447.4 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.1018, allocations: 252.8 kB / 447.6 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.1018, allocations: 0 / 447.6 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.1019, allocations: 16 kB / 447.6 MB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1019, allocations: 4 kB / 447.7 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003946/0.1023, allocations: 202 kB / 447.8 MB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.1034, allocations: 0.7834 MB / 448.6 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.1038, allocations: 210.8 kB / 448.8 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.1039, allocations: 8.438 kB / 448.8 MB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003747/0.1043, allocations: 235 kB / 449.1 MB, free: 6.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.1043, allocations: 0 / 449.1 MB, free: 6.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007241/0.105, allocations: 377.2 kB / 449.4 MB, free: 6.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.1051, allocations: 63.38 kB / 449.5 MB, free: 6.098 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.1053, allocations: 240.9 kB / 449.7 MB, free: 5.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.1053, allocations: 37.7 kB / 449.8 MB, free: 5.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.1054, allocations: 160.6 kB / 449.9 MB, free: 5.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.739e-05/0.1055, allocations: 98.64 kB / 450 MB, free: 5.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.1055, allocations: 12 kB / 450 MB, free: 5.543 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.951e-05/0.1056, allocations: 338.8 kB / 450.4 MB, free: 5.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.1058, allocations: 96.69 kB / 450.5 MB, free: 5.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.1061, allocations: 230.3 kB / 450.7 MB, free: 4.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.1063, allocations: 123.8 kB / 450.8 MB, free: 4.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.1063, allocations: 8 kB / 450.8 MB, free: 4.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005878/0.1069, allocations: 381.1 kB / 451.2 MB, free: 4.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1069, allocations: 8 kB / 451.2 MB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1069, allocations: 7.938 kB / 451.2 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.107, allocations: 8 kB / 451.2 MB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.1073, allocations: 75.89 kB / 451.3 MB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.1073, allocations: 11.94 kB / 451.3 MB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.1075, allocations: 43.73 kB / 451.3 MB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.1075, allocations: 16 kB / 451.4 MB, free: 4.145 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,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.1076, allocations: 169.6 kB / 451.5 MB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.613e-05/0.1077, allocations: 27.66 kB / 451.6 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005874/0.1083, allocations: 335.3 kB / 451.9 MB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1083, allocations: 4 kB / 451.9 MB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1083, allocations: 0 / 451.9 MB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1083, allocations: 7.984 kB / 451.9 MB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008154/0.1091, allocations: 0.709 MB / 452.6 MB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1091, allocations: 0 / 452.6 MB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.1094, allocations: 59.91 kB / 452.7 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1094, allocations: 0 / 452.7 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.1094, allocations: 11.98 kB / 452.7 MB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1094, allocations: 0 / 452.7 MB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1094, allocations: 3.938 kB / 452.7 MB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007691/0.1102, allocations: 0.5423 MB / 453.2 MB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.1103, allocations: 104.7 kB / 453.3 MB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.422e-05/0.1103, allocations: 12.05 kB / 453.3 MB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.1105, allocations: 19.98 kB / 453.4 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/0.1106, allocations: 19.97 kB / 453.4 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.1106, allocations: 16.12 kB / 453.4 MB, free: 2.012 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001263/0.1107, allocations: 160.5 kB / 453.5 MB, free: 1.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1107, allocations: 0 / 453.5 MB, free: 1.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1111, allocations: 71.83 kB / 453.6 MB, free: 1.781 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001095/0.1112, allocations: 112.2 kB / 453.7 MB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004822/0.1117, allocations: 272.2 kB / 454 MB, free: 1.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1117, allocations: 8.312 kB / 454 MB, free: 1.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.1119, allocations: 127.9 kB / 454.1 MB, free: 1.266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.1122, allocations: 24.38 kB / 454.1 MB, free: 1.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008671/0.113, allocations: 0.6933 MB / 454.8 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1459/0.2589, allocations: 0.7877 MB / 455.6 MB, free: 45.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001788/0.2591, allocations: 41.23 kB / 455.7 MB, free: 45.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.921e-05/0.2592, allocations: 30.8 kB / 455.7 MB, free: 45.86 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2592, allocations: 0 / 455.7 MB, free: 45.86 MB / 382.1 MB Notification: Performance of Templates: time 0.004275/0.2635, allocations: 2.19 MB / 457.9 MB, free: 45.82 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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