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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 109.9 kB / 16.41 MB, free: 6.496 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.001352/0.001352, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.409/1.409, allocations: 205.1 MB / 223.2 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.2066/0.2066, allocations: 43.53 MB / 314.1 MB, free: 464 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.001376/0.001376, allocations: 71.89 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1108, allocations: 57.78 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003681/0.1146, allocations: 2.229 MB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.1161, allocations: 0.811 MB / 0.4904 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.1163, allocations: 7.938 kB / 0.4904 GB, free: 9.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.1165, allocations: 31.59 kB / 0.4904 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.1168, allocations: 63.45 kB / 0.4905 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.1172, allocations: 139.7 kB / 0.4906 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004264/0.1176, allocations: 359 kB / 0.4909 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.1179, allocations: 128.2 kB / 0.4911 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.1181, allocations: 139.4 kB / 0.4912 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.1184, allocations: 147.3 kB / 0.4913 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.966e-05/0.1185, allocations: 36 kB / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.753e-05/0.1185, allocations: 36 kB / 0.4914 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.506e-05/0.1186, allocations: 83.67 kB / 0.4915 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.1188, allocations: 151.2 kB / 0.4916 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004106/0.1192, allocations: 362.5 kB / 0.492 GB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1192, allocations: 0 / 0.492 GB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1192, allocations: 4 kB / 0.492 GB, free: 7.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1193, allocations: 0 / 0.492 GB, free: 7.594 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.00126/0.1205, allocations: 0.622 MB / 0.4926 GB, free: 6.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.1206, allocations: 11.89 kB / 0.4926 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.1207, allocations: 75.17 kB / 0.4927 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.839e-05/0.1208, allocations: 44.66 kB / 0.4927 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/0.1214, allocations: 335.3 kB / 0.493 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.1214, allocations: 24.94 kB / 0.493 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.708e-05/0.1215, allocations: 36.36 kB / 0.4931 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005416/0.122, allocations: 276.7 kB / 0.4933 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.1221, allocations: 4 kB / 0.4934 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.1221, allocations: 12 kB / 0.4934 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.1221, allocations: 7.938 kB / 0.4934 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.1226, allocations: 194.1 kB / 0.4936 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.1239, allocations: 0.8069 MB / 0.4943 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004189/0.1243, allocations: 218.4 kB / 0.4946 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.1245, allocations: 96.75 kB / 0.4946 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.1246, allocations: 7.984 kB / 0.4947 GB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003931/0.125, allocations: 231.1 kB / 0.4949 GB, free: 4.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.125, allocations: 0 / 0.4949 GB, free: 4.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007685/0.1257, allocations: 366.2 kB / 0.4952 GB, free: 4.082 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.1258, allocations: 59.39 kB / 0.4953 GB, free: 4.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.126, allocations: 233 kB / 0.4955 GB, free: 3.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.1261, allocations: 41.64 kB / 0.4955 GB, free: 3.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.1262, allocations: 180.7 kB / 0.4957 GB, free: 3.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.301e-05/0.1263, allocations: 95.19 kB / 0.4958 GB, free: 3.457 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.1264, allocations: 74.06 kB / 0.4959 GB, free: 3.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1265, allocations: 346.8 kB / 0.4962 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.1267, allocations: 88.64 kB / 0.4963 GB, free: 2.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.127, allocations: 222.4 kB / 0.4965 GB, free: 2.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000508/0.1275, allocations: 344.7 kB / 0.4968 GB, free: 2.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1275, allocations: 0 / 0.4968 GB, free: 2.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006752/0.1282, allocations: 376.9 kB / 0.4972 GB, free: 1.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.1282, allocations: 8.094 kB / 0.4972 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.1282, allocations: 8.406 kB / 0.4972 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1283, allocations: 8 kB / 0.4972 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002914/0.1286, allocations: 75.89 kB / 0.4973 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.1286, allocations: 15.92 kB / 0.4973 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.1288, allocations: 35.77 kB / 0.4973 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.1288, allocations: 16 kB / 0.4973 GB, free: 1.727 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.0001608/0.129, allocations: 177.5 kB / 0.4975 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.953e-05/0.129, allocations: 23.86 kB / 0.4975 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006158/0.1297, allocations: 319.4 kB / 0.4978 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1297, allocations: 4 kB / 0.4978 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1297, allocations: 0 / 0.4978 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1297, allocations: 7.984 kB / 0.4979 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000889/0.1306, allocations: 0.7206 MB / 0.4986 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.1306, allocations: 0 / 0.4986 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.1309, allocations: 43.97 kB / 0.4986 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.1309, allocations: 0 / 0.4986 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.1309, allocations: 11.98 kB / 0.4986 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.1309, allocations: 3.938 kB / 0.4986 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1309, allocations: 0 / 0.4986 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008605/0.1318, allocations: 0.5266 MB / 0.4991 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.562e-05/0.1319, allocations: 104.9 kB / 0.4992 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.1319, allocations: 16.19 kB / 0.4992 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.1321, allocations: 15.98 kB / 0.4993 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.1322, allocations: 19.97 kB / 0.4993 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.1322, allocations: 11.98 kB / 0.4993 GB, free: 15.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.1324, allocations: 176.4 kB / 0.4995 GB, free: 15.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1324, allocations: 0 / 0.4995 GB, free: 15.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.1327, allocations: 67.89 kB / 0.4995 GB, free: 15.39 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.001153/0.1339, allocations: 1.072 MB / 0.5006 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000546/0.1345, allocations: 259.9 kB / 0.5008 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1345, allocations: 0.9375 kB / 0.5008 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.1347, allocations: 132.4 kB / 0.5009 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.1351, allocations: 41.05 kB / 0.501 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004067/0.1392, allocations: 3.092 MB / 0.504 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.1396, allocations: 0.792 MB / 0.5048 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001706/0.1398, allocations: 42.91 kB / 0.5048 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.1399, allocations: 107.4 kB / 0.5049 GB, free: 9.617 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.14, allocations: 0 / 0.5049 GB, free: 9.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.1648, allocations: 5.505 MB / 0.5103 GB, free: 4.094 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.062, allocations: 11.94 kB / 0.5103 GB, free: 4.082 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv","/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