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.001259/0.001259, allocations: 120.4 kB / 17.09 MB, free: 5.992 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.001015/0.001015, allocations: 193.2 kB / 18.01 MB, free: 5.07 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.347/1.347, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.1955/0.1955, allocations: 43.52 MB / 314.8 MB, free: 452 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.001427/0.001427, allocations: 65.47 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09587, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003487/0.0994, allocations: 2.229 MB / 0.4907 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1008, allocations: 0.8149 MB / 0.4915 GB, free: 8.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.101, allocations: 4 kB / 0.4915 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.1012, allocations: 31.55 kB / 0.4915 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.1015, allocations: 55.45 kB / 0.4916 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003366/0.1018, allocations: 151.7 kB / 0.4917 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004127/0.1023, allocations: 355 kB / 0.4921 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.1025, allocations: 120.2 kB / 0.4922 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.1027, allocations: 151.3 kB / 0.4923 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.103, allocations: 147.3 kB / 0.4925 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.321e-05/0.103, allocations: 36 kB / 0.4925 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.157e-05/0.1031, allocations: 32 kB / 0.4925 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.01e-05/0.1032, allocations: 79.69 kB / 0.4926 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.1033, allocations: 159.2 kB / 0.4928 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003437/0.1037, allocations: 358.7 kB / 0.4931 GB, free: 7.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1037, allocations: 0 / 0.4931 GB, free: 7.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1037, allocations: 0 / 0.4931 GB, free: 7.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1037, allocations: 0 / 0.4931 GB, free: 7.086 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.00107/0.1048, allocations: 0.6183 MB / 0.4937 GB, free: 6.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1049, allocations: 15.89 kB / 0.4937 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.22e-05/0.105, allocations: 32.56 kB / 0.4938 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.1054, allocations: 331.2 kB / 0.4941 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.1055, allocations: 20.94 kB / 0.4941 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.1055, allocations: 40.27 kB / 0.4941 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000488/0.106, allocations: 261 kB / 0.4944 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1061, allocations: 0 / 0.4944 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.1061, allocations: 12 kB / 0.4944 GB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1061, allocations: 4 kB / 0.4944 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003941/0.1065, allocations: 190.1 kB / 0.4946 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.1077, allocations: 0.7639 MB / 0.4953 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.1081, allocations: 198.8 kB / 0.4955 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001952/0.1083, allocations: 116.7 kB / 0.4956 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.1084, allocations: 4 kB / 0.4956 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003914/0.1088, allocations: 235 kB / 0.4959 GB, free: 4.102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.914e-06/0.1088, allocations: 0 / 0.4959 GB, free: 4.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007677/0.1096, allocations: 366 kB / 0.4962 GB, free: 3.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.1096, allocations: 67.39 kB / 0.4963 GB, free: 3.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.1098, allocations: 225 kB / 0.4965 GB, free: 3.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.1099, allocations: 45.64 kB / 0.4965 GB, free: 3.383 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.918e-05/0.11, allocations: 164.6 kB / 0.4967 GB, free: 3.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.013e-05/0.1101, allocations: 98.56 kB / 0.4968 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/0.1102, allocations: 78 kB / 0.4969 GB, free: 3.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1103, allocations: 338.8 kB / 0.4972 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.1105, allocations: 84.7 kB / 0.4973 GB, free: 2.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.1108, allocations: 229.8 kB / 0.4975 GB, free: 2.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004848/0.1113, allocations: 352.8 kB / 0.4978 GB, free: 1.926 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1113, allocations: 0 / 0.4978 GB, free: 1.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006158/0.1119, allocations: 364.9 kB / 0.4982 GB, free: 1.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1119, allocations: 8 kB / 0.4982 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.112, allocations: 7.938 kB / 0.4982 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.112, allocations: 8 kB / 0.4982 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/0.1123, allocations: 75.89 kB / 0.4983 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.1123, allocations: 7.938 kB / 0.4983 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.1125, allocations: 32.05 kB / 0.4983 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.1125, allocations: 24 kB / 0.4983 GB, free: 1.402 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.0001573/0.1127, allocations: 165.6 kB / 0.4985 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.1127, allocations: 27.62 kB / 0.4985 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006038/0.1133, allocations: 331.4 kB / 0.4988 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1133, allocations: 4 kB / 0.4988 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1133, allocations: 96 / 0.4988 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1134, allocations: 7.922 kB / 0.4988 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008476/0.1142, allocations: 0.7011 MB / 0.4995 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1142, allocations: 0 / 0.4995 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.1145, allocations: 51.91 kB / 0.4996 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.1145, allocations: 8 kB / 0.4996 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.1145, allocations: 7.984 kB / 0.4996 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.1145, allocations: 4 kB / 0.4996 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1145, allocations: 0 / 0.4996 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008269/0.1154, allocations: 0.5225 MB / 0.5001 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.678e-05/0.1154, allocations: 100.8 kB / 0.5002 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.1155, allocations: 16.05 kB / 0.5002 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.1157, allocations: 8 kB / 0.5002 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.1157, allocations: 27.95 kB / 0.5002 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.1158, allocations: 12.12 kB / 0.5002 GB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001398/0.1159, allocations: 164.5 kB / 0.5004 GB, free: 15.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1159, allocations: 0 / 0.5004 GB, free: 15.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003487/0.1163, allocations: 79.67 kB / 0.5005 GB, free: 15.08 MB / 398.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.0001222/0.1164, allocations: 111.5 kB / 0.5006 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005215/0.1169, allocations: 263.6 kB / 0.5008 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.117, allocations: 4.875 kB / 0.5008 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.1172, allocations: 139.8 kB / 0.501 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.1176, allocations: 40.34 kB / 0.501 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009513/0.1185, allocations: 0.6085 MB / 0.5016 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.1189, allocations: 0.7764 MB / 0.5024 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.585e-05/0.119, allocations: 35.42 kB / 0.5024 GB, free: 13.04 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.119, allocations: 0 / 0.5024 GB, free: 13.04 MB / 398.1 MB Notification: Performance of Templates: time 0.005958/0.1249, allocations: 3.585 MB / 0.5059 GB, free: 9.457 MB / 398.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/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