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.001236/0.001237, allocations: 109 kB / 16.41 MB, free: 6.508 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.001274/0.001274, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.539/1.539, allocations: 205.1 MB / 223.2 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.2386/0.2386, allocations: 43.52 MB / 314.1 MB, free: 436 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.001467/0.001467, allocations: 71.89 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1252, allocations: 57.8 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003757/0.129, allocations: 2.209 MB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.1307, allocations: 0.8149 MB / 0.4904 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002588/0.131, allocations: 7.938 kB / 0.4904 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.1312, allocations: 31.59 kB / 0.4904 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003206/0.1316, allocations: 63.41 kB / 0.4905 GB, free: 9.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.132, allocations: 147.8 kB / 0.4906 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004968/0.1325, allocations: 359 kB / 0.4909 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.1328, allocations: 128.2 kB / 0.4911 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002677/0.1331, allocations: 139.4 kB / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.1333, allocations: 147.3 kB / 0.4913 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.682e-05/0.1334, allocations: 39.94 kB / 0.4914 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.701e-05/0.1335, allocations: 32 kB / 0.4914 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.543e-05/0.1336, allocations: 79.75 kB / 0.4915 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.1338, allocations: 155.2 kB / 0.4916 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006053/0.1344, allocations: 366.4 kB / 0.492 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.1344, allocations: 0 / 0.492 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.057e-06/0.1344, allocations: 0 / 0.492 GB, free: 7.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.374e-05/0.1345, allocations: 0 / 0.492 GB, free: 7.566 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.001947/0.1364, allocations: 0.6259 MB / 0.4926 GB, free: 6.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.631e-05/0.1365, allocations: 11.89 kB / 0.4926 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001948/0.1367, allocations: 75.22 kB / 0.4927 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.1369, allocations: 44.66 kB / 0.4927 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007569/0.1376, allocations: 339.3 kB / 0.493 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.1377, allocations: 20.94 kB / 0.4931 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.353e-05/0.1378, allocations: 36.38 kB / 0.4931 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000667/0.1385, allocations: 268.8 kB / 0.4933 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.1385, allocations: 0 / 0.4933 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.1386, allocations: 19.98 kB / 0.4934 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1386, allocations: 11.94 kB / 0.4934 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005007/0.1391, allocations: 198.1 kB / 0.4936 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.1407, allocations: 0.7952 MB / 0.4943 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004478/0.1412, allocations: 214.4 kB / 0.4945 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.1414, allocations: 96.75 kB / 0.4946 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.1414, allocations: 7.938 kB / 0.4946 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004329/0.1419, allocations: 227.1 kB / 0.4949 GB, free: 4.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.374e-06/0.1419, allocations: 4 kB / 0.4949 GB, free: 4.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009531/0.1428, allocations: 370.2 kB / 0.4952 GB, free: 4.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/0.1429, allocations: 59.34 kB / 0.4953 GB, free: 3.988 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/0.1433, allocations: 237 kB / 0.4955 GB, free: 3.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.1434, allocations: 45.62 kB / 0.4955 GB, free: 3.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.1435, allocations: 176.7 kB / 0.4957 GB, free: 3.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1437, allocations: 99.17 kB / 0.4958 GB, free: 3.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.1438, allocations: 74.06 kB / 0.4959 GB, free: 3.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.144, allocations: 338.8 kB / 0.4962 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.1443, allocations: 88.69 kB / 0.4963 GB, free: 2.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.1446, allocations: 226.4 kB / 0.4965 GB, free: 2.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005409/0.1451, allocations: 344.7 kB / 0.4968 GB, free: 2.238 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1452, allocations: 0 / 0.4968 GB, free: 2.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006968/0.1459, allocations: 376.9 kB / 0.4972 GB, free: 1.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.1459, allocations: 4.094 kB / 0.4972 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.1459, allocations: 7.938 kB / 0.4972 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1459, allocations: 8.469 kB / 0.4972 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.1463, allocations: 83.83 kB / 0.4973 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.1463, allocations: 4 kB / 0.4973 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.1465, allocations: 39.78 kB / 0.4973 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.1466, allocations: 23.97 kB / 0.4974 GB, free: 1.695 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.0002132/0.1468, allocations: 169.5 kB / 0.4975 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.241e-05/0.1468, allocations: 27.84 kB / 0.4975 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006837/0.1475, allocations: 323.4 kB / 0.4978 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.1475, allocations: 4 kB / 0.4979 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1476, allocations: 0 / 0.4979 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1476, allocations: 3.984 kB / 0.4979 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.1486, allocations: 0.7129 MB / 0.4986 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1486, allocations: 0 / 0.4986 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.1489, allocations: 51.89 kB / 0.4986 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.1489, allocations: 4 kB / 0.4986 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.1489, allocations: 8 kB / 0.4986 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.149, allocations: 0 / 0.4986 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.149, allocations: 0 / 0.4986 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009192/0.1499, allocations: 0.5267 MB / 0.4991 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.899e-05/0.15, allocations: 108.8 kB / 0.4992 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.15, allocations: 12.06 kB / 0.4992 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.1502, allocations: 11.98 kB / 0.4993 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.744e-05/0.1503, allocations: 23.97 kB / 0.4993 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/0.1504, allocations: 11.98 kB / 0.4993 GB, free: 15.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.1505, allocations: 176.4 kB / 0.4995 GB, free: 15.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.1505, allocations: 0 / 0.4995 GB, free: 15.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004077/0.151, allocations: 67.83 kB / 0.4995 GB, free: 15.37 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.001261/0.1522, allocations: 1.08 MB / 0.5006 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000607/0.1529, allocations: 259.6 kB / 0.5008 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1529, allocations: 0.9375 kB / 0.5008 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.1531, allocations: 128.4 kB / 0.5009 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.1535, allocations: 40.55 kB / 0.501 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004768/0.1583, allocations: 3.092 MB / 0.504 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.1588, allocations: 0.7842 MB / 0.5048 GB, free: 9.746 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001812/0.159, allocations: 43.22 kB / 0.5048 GB, free: 9.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.1592, allocations: 115.4 kB / 0.5049 GB, free: 9.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.442e-06/0.1592, allocations: 0 / 0.5049 GB, free: 9.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.1873, allocations: 5.51 MB / 0.5103 GB, free: 4.062 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.485/8.673, allocations: 3.938 kB / 0.5103 GB, free: 4.059 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