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.001408/0.001408, allocations: 102.3 kB / 16.27 MB, free: 5.93 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.001487/0.001487, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.653/1.653, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2557/0.2557, allocations: 43.52 MB / 313.9 MB, free: 0.5195 MB / 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.001663/0.001663, allocations: 65.88 kB / 382.8 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1201, allocations: 57.79 MB / 440.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003365/0.1235, allocations: 2.222 MB / 442.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.1249, allocations: 0.8111 MB / 443.6 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1251, allocations: 11.88 kB / 443.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.1253, allocations: 31.59 kB / 443.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.1255, allocations: 51.47 kB / 443.7 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.1258, allocations: 147.7 kB / 443.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.126, allocations: 351 kB / 444.2 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.1263, allocations: 137.5 kB / 444.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.1264, allocations: 135.5 kB / 444.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.1266, allocations: 147.3 kB / 444.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.1267, allocations: 32 kB / 444.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.489e-05/0.1267, allocations: 32 kB / 444.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.755e-05/0.1268, allocations: 83.69 kB / 444.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.1269, allocations: 163.1 kB / 444.9 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.1272, allocations: 338.9 kB / 445.3 MB, free: 2.102 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1272, allocations: 0 / 445.3 MB, free: 2.102 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1272, allocations: 4 kB / 445.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1273, allocations: 7.875 kB / 445.3 MB, free: 2.09 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.000982/0.1282, allocations: 0.6029 MB / 445.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1283, allocations: 11.89 kB / 445.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.579e-05/0.1284, allocations: 79.17 kB / 446 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.412e-05/0.1285, allocations: 44.47 kB / 446 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.1289, allocations: 339.1 kB / 446.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.129, allocations: 24.88 kB / 446.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.129, allocations: 32.38 kB / 446.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004553/0.1295, allocations: 280.7 kB / 446.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.1295, allocations: 3.906 kB / 446.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.1296, allocations: 12 kB / 446.7 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1296, allocations: 4 kB / 446.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003673/0.1299, allocations: 194.1 kB / 446.9 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.1312, allocations: 0.8069 MB / 447.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004033/0.1316, allocations: 210.1 kB / 447.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.1318, allocations: 92.81 kB / 448 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1319, allocations: 12 kB / 448 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003772/0.1322, allocations: 223.1 kB / 448.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.1323, allocations: 4 kB / 448.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007812/0.133, allocations: 366 kB / 448.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.1331, allocations: 59.39 kB / 448.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.1333, allocations: 236.9 kB / 448.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.1334, allocations: 37.7 kB / 448.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1335, allocations: 176.5 kB / 449.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.277e-05/0.1336, allocations: 98.64 kB / 449.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1337, allocations: 74.06 kB / 449.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1338, allocations: 338.8 kB / 449.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.134, allocations: 88.69 kB / 449.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.1343, allocations: 226.3 kB / 449.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004919/0.1348, allocations: 352.7 kB / 450.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.1348, allocations: 4 kB / 450.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006137/0.1354, allocations: 373.1 kB / 450.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1354, allocations: 8 kB / 450.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.1354, allocations: 4 kB / 450.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1355, allocations: 8 kB / 450.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.1358, allocations: 71.89 kB / 450.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.1358, allocations: 11.94 kB / 450.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.136, allocations: 35.67 kB / 450.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.136, allocations: 20 kB / 450.8 MB, free: 12.25 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.0001637/0.1362, allocations: 170.5 kB / 450.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.1362, allocations: 23.72 kB / 450.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006396/0.1369, allocations: 331.3 kB / 451.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1369, allocations: 4 kB / 451.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1369, allocations: 4 kB / 451.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.1369, allocations: 0 / 451.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008723/0.1378, allocations: 0.7167 MB / 452 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1378, allocations: 144 / 452 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.138, allocations: 43.97 kB / 452 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1381, allocations: 3.984 kB / 452 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.1381, allocations: 15.98 kB / 452.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1381, allocations: 7.938 kB / 452.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1381, allocations: 0 / 452.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00082/0.1389, allocations: 0.53 MB / 452.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.139, allocations: 104.7 kB / 452.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.112e-05/0.1391, allocations: 11.98 kB / 452.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.1392, allocations: 16 kB / 452.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/0.1393, allocations: 23.95 kB / 452.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.1393, allocations: 16 kB / 452.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001348/0.1395, allocations: 168.4 kB / 452.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1395, allocations: 0 / 452.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.1398, allocations: 67.83 kB / 453 MB, free: 9.91 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.00109/0.1409, allocations: 1.064 MB / 454.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005975/0.1416, allocations: 287.5 kB / 454.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1416, allocations: 4 kB / 454.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.1418, allocations: 128.4 kB / 454.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.1422, allocations: 36.69 kB / 454.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.1457, allocations: 3.091 MB / 457.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1461, allocations: 0.7802 MB / 458.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000159/0.1462, allocations: 43.23 kB / 458.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.1464, allocations: 111.5 kB / 458.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1464, allocations: 3.938 kB / 458.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.1719, allocations: 5.395 MB / 463.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/7.823, allocations: 13.27 kB / 463.9 MB, free: 14.71 MB / 350.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