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.00116/0.00116, allocations: 107.1 kB / 17.03 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 192.1 kB / 17.96 MB, free: 5.066 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.336/1.336, allocations: 205.1 MB / 223.8 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2578/0.2578, allocations: 43.53 MB / 314.7 MB, free: 468 kB / 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.001661/0.001661, allocations: 62.59 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09673/0.0984, allocations: 57.79 MB / 441.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00312/0.1016, allocations: 2.215 MB / 444.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.1029, allocations: 0.8072 MB / 445 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002311/0.1032, allocations: 11.88 kB / 445 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.1033, allocations: 31.59 kB / 445 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.1036, allocations: 63.38 kB / 445.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.1039, allocations: 143.8 kB / 445.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.1042, allocations: 355 kB / 445.6 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002197/0.1044, allocations: 133.5 kB / 445.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.1046, allocations: 139.5 kB / 445.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.1048, allocations: 147.3 kB / 446 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.577e-05/0.1048, allocations: 36 kB / 446 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.831e-05/0.1049, allocations: 32 kB / 446 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.435e-05/0.105, allocations: 79.69 kB / 446.1 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1051, allocations: 163.1 kB / 446.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00028/0.1054, allocations: 350.7 kB / 446.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1054, allocations: 7.938 kB / 446.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1054, allocations: 4 kB / 446.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.1054, allocations: 0 / 446.6 MB, free: 1.426 MB / 318.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.001056/0.1065, allocations: 0.6145 MB / 447.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.1065, allocations: 15.83 kB / 447.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.793e-05/0.1066, allocations: 36.56 kB / 447.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/0.107, allocations: 331.2 kB / 447.6 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.1071, allocations: 20.94 kB / 447.6 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.618e-05/0.1071, allocations: 36.28 kB / 447.7 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004288/0.1076, allocations: 264.9 kB / 447.9 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1076, allocations: 0 / 447.9 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.1076, allocations: 16 kB / 447.9 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1076, allocations: 4 kB / 448 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004166/0.1081, allocations: 178.1 kB / 448.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.1094, allocations: 0.7794 MB / 448.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003972/0.1098, allocations: 194.8 kB / 449.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.11, allocations: 101.7 kB / 449.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.11, allocations: 11.97 kB / 449.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003892/0.1104, allocations: 231 kB / 449.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.824e-06/0.1104, allocations: 4 kB / 449.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007615/0.1112, allocations: 369.9 kB / 449.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.1113, allocations: 55.41 kB / 449.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002245/0.1115, allocations: 237 kB / 450.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.1115, allocations: 33.7 kB / 450.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.941e-05/0.1116, allocations: 164.6 kB / 450.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.433e-05/0.1117, allocations: 106.5 kB / 450.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-05/0.1118, allocations: 70.06 kB / 450.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.112, allocations: 338.8 kB / 450.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.1122, allocations: 88.69 kB / 450.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.1124, allocations: 234.3 kB / 451.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004861/0.1129, allocations: 352.7 kB / 451.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1129, allocations: 4 kB / 451.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000619/0.1136, allocations: 361.2 kB / 451.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1136, allocations: 9.25 kB / 451.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1136, allocations: 11.92 kB / 451.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.1136, allocations: 8 kB / 451.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.1139, allocations: 75.84 kB / 451.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.114, allocations: 7.984 kB / 451.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.1141, allocations: 23.84 kB / 451.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.1142, allocations: 23.98 kB / 452 MB, free: 11.75 MB / 334.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.0001534/0.1143, allocations: 169.6 kB / 452.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.108e-05/0.1144, allocations: 31.56 kB / 452.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006104/0.115, allocations: 323.4 kB / 452.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.115, allocations: 4 kB / 452.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.115, allocations: 4 kB / 452.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.115, allocations: 3.938 kB / 452.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008535/0.1159, allocations: 0.7011 MB / 453.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1159, allocations: 0 / 453.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.1162, allocations: 51.91 kB / 453.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1162, allocations: 0 / 453.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.1162, allocations: 11.98 kB / 453.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1162, allocations: 4 kB / 453.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1162, allocations: 4 kB / 453.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008063/0.117, allocations: 0.5225 MB / 453.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.813e-05/0.1171, allocations: 100.8 kB / 453.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.1172, allocations: 4.062 kB / 453.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.1174, allocations: 27.92 kB / 453.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.035e-05/0.1174, allocations: 19.97 kB / 453.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.1175, allocations: 16.11 kB / 453.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.1176, allocations: 164.5 kB / 454.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1176, allocations: 0 / 454.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003678/0.118, allocations: 71.75 kB / 454.2 MB, free: 9.43 MB / 334.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.0001118/0.1181, allocations: 115.7 kB / 454.3 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005184/0.1186, allocations: 263.6 kB / 454.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1187, allocations: 0 / 454.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002625/0.1189, allocations: 128.8 kB / 454.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.1193, allocations: 40.36 kB / 454.7 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.1203, allocations: 0.5834 MB / 455.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.1207, allocations: 0.784 MB / 456.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.1208, allocations: 34.97 kB / 456.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.239e-05/0.1209, allocations: 35.42 kB / 456.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1209, allocations: 0 / 456.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of Templates: time 0.005851/0.1268, allocations: 2.496 MB / 458.6 MB, free: 4.914 MB / 334.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches