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.001319/0.001319, allocations: 112.4 kB / 17.08 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.001656/0.001656, allocations: 197.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.262/1.262, 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.1921/0.1921, allocations: 43.52 MB / 314.8 MB, free: 456 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.001471/0.001471, allocations: 77.44 kB / 442.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09279, allocations: 57.78 MB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003722/0.09656, allocations: 2.222 MB / 0.4907 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.09816, allocations: 0.8149 MB / 0.4915 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.09841, allocations: 7.938 kB / 0.4915 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.09858, allocations: 31.59 kB / 0.4915 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000274/0.09887, allocations: 55.41 kB / 0.4916 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.09928, allocations: 147.8 kB / 0.4917 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004598/0.09975, allocations: 359 kB / 0.4921 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.1, allocations: 128.2 kB / 0.4922 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.1003, allocations: 143.4 kB / 0.4923 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.1005, allocations: 147.3 kB / 0.4925 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.583e-05/0.1006, allocations: 36 kB / 0.4925 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.322e-05/0.1007, allocations: 35.94 kB / 0.4925 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.949e-05/0.1008, allocations: 75.75 kB / 0.4926 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.1009, allocations: 163.2 kB / 0.4928 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003891/0.1013, allocations: 358.7 kB / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1013, allocations: 0 / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1014, allocations: 0 / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.1014, allocations: 0 / 0.4931 GB, free: 7.066 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.001206/0.1026, allocations: 0.6144 MB / 0.4937 GB, free: 6.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.353e-05/0.1027, allocations: 15.88 kB / 0.4937 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.1028, allocations: 36.56 kB / 0.4938 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005244/0.1033, allocations: 331.2 kB / 0.4941 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.1033, allocations: 20.94 kB / 0.4941 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.1034, allocations: 32.28 kB / 0.4941 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005363/0.1039, allocations: 268.9 kB / 0.4944 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.104, allocations: 0 / 0.4944 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.104, allocations: 15.98 kB / 0.4944 GB, free: 5.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.104, allocations: 4 kB / 0.4944 GB, free: 5.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004135/0.1044, allocations: 182.1 kB / 0.4946 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.1058, allocations: 0.7716 MB / 0.4953 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.1063, allocations: 210.5 kB / 0.4955 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.1066, allocations: 104.8 kB / 0.4956 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.1066, allocations: 0 / 0.4956 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004187/0.107, allocations: 231 kB / 0.4959 GB, free: 4.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.565e-06/0.107, allocations: 0 / 0.4959 GB, free: 4.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008265/0.1079, allocations: 369.9 kB / 0.4962 GB, free: 3.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.1079, allocations: 67.39 kB / 0.4963 GB, free: 3.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003011/0.1082, allocations: 225 kB / 0.4965 GB, free: 3.418 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.626e-05/0.1083, allocations: 45.69 kB / 0.4965 GB, free: 3.367 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1084, allocations: 160.6 kB / 0.4967 GB, free: 3.207 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.1086, allocations: 102.5 kB / 0.4968 GB, free: 3.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.1087, allocations: 74.06 kB / 0.4968 GB, free: 3.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1088, allocations: 338.8 kB / 0.4972 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.109, allocations: 88.69 kB / 0.4973 GB, free: 2.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.1093, allocations: 229.8 kB / 0.4975 GB, free: 2.316 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005607/0.1099, allocations: 340.8 kB / 0.4978 GB, free: 1.922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1099, allocations: 4 kB / 0.4978 GB, free: 1.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006815/0.1106, allocations: 365.1 kB / 0.4982 GB, free: 1.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1106, allocations: 11.94 kB / 0.4982 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1107, allocations: 7.938 kB / 0.4982 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1107, allocations: 11.98 kB / 0.4982 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.111, allocations: 79.83 kB / 0.4983 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.111, allocations: 4 kB / 0.4983 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.1112, allocations: 32.05 kB / 0.4983 GB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.1112, allocations: 24 kB / 0.4983 GB, free: 1.387 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.0001731/0.1114, allocations: 165.6 kB / 0.4985 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.1115, allocations: 27.62 kB / 0.4985 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007148/0.1122, allocations: 331.3 kB / 0.4988 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1122, allocations: 7.938 kB / 0.4988 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1122, allocations: 7.938 kB / 0.4988 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.1122, allocations: 0 / 0.4988 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009542/0.1132, allocations: 0.6973 MB / 0.4995 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1132, allocations: 0 / 0.4995 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/0.1134, allocations: 55.89 kB / 0.4996 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1135, allocations: 8 kB / 0.4996 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.1135, allocations: 4 kB / 0.4996 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1135, allocations: 4 kB / 0.4996 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1135, allocations: 0 / 0.4996 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000916/0.1144, allocations: 0.5225 MB / 0.5001 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.321e-05/0.1145, allocations: 108.8 kB / 0.5002 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.1146, allocations: 8 kB / 0.5002 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.1147, allocations: 15.98 kB / 0.5002 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.1148, allocations: 23.97 kB / 0.5002 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.1148, allocations: 15.98 kB / 0.5003 GB, free: 15.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001517/0.115, allocations: 164.5 kB / 0.5004 GB, free: 15.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.115, allocations: 0 / 0.5004 GB, free: 15.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003601/0.1154, allocations: 75.69 kB / 0.5005 GB, free: 15.06 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.0001248/0.1155, allocations: 115.5 kB / 0.5006 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005432/0.1161, allocations: 259.6 kB / 0.5008 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1161, allocations: 0.9375 kB / 0.5008 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003263/0.1164, allocations: 135.8 kB / 0.501 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003473/0.1168, allocations: 40.3 kB / 0.501 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.1179, allocations: 0.6048 MB / 0.5016 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.1182, allocations: 0.7841 MB / 0.5024 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1183, allocations: 35.42 kB / 0.5024 GB, free: 13.03 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1183, allocations: 0 / 0.5024 GB, free: 13.03 MB / 398.1 MB Notification: Performance of Templates: time 0.006249/0.1246, allocations: 3.624 MB / 0.5059 GB, free: 9.402 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