Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_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.001106/0.001106, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001105/0.001105, allocations: 192 kB / 18.55 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2166/0.2166, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 65 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1172, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003229/0.1205, allocations: 2.24 MB / 471.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.1218, allocations: 0.7752 MB / 472.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.1219, allocations: 4 kB / 472.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.1221, allocations: 31.55 kB / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.1223, allocations: 55.45 kB / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.1226, allocations: 155.7 kB / 472.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003277/0.1229, allocations: 363 kB / 473 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.1232, allocations: 124.2 kB / 473.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.1233, allocations: 147.4 kB / 473.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/0.1235, allocations: 155.2 kB / 473.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.017e-05/0.1236, allocations: 36 kB / 473.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.793e-05/0.1237, allocations: 32 kB / 473.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.466e-05/0.1237, allocations: 87.69 kB / 473.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.1239, allocations: 175.1 kB / 473.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.1243, allocations: 359 kB / 474.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1243, allocations: 4 kB / 474.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1243, allocations: 0 / 474.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1243, allocations: 0 / 474.1 MB, free: 9.555 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001036/0.1253, allocations: 0.6304 MB / 474.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.1254, allocations: 8.031 kB / 474.7 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.1255, allocations: 83.2 kB / 474.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.258e-05/0.1256, allocations: 40.47 kB / 474.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.126, allocations: 327.3 kB / 475.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.863e-05/0.1261, allocations: 33.02 kB / 475.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.237e-05/0.1261, allocations: 28.38 kB / 475.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.1266, allocations: 293.9 kB / 475.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.1267, allocations: 4 kB / 475.5 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.1267, allocations: 11.98 kB / 475.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.1267, allocations: 8 kB / 475.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004368/0.1272, allocations: 198.5 kB / 475.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.1284, allocations: 0.8503 MB / 476.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003987/0.1288, allocations: 202.8 kB / 476.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.129, allocations: 96.81 kB / 476.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.1291, allocations: 7.984 kB / 476.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004072/0.1295, allocations: 231.1 kB / 477.1 MB, free: 6.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.1295, allocations: 0 / 477.1 MB, free: 6.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007919/0.1303, allocations: 365.1 kB / 477.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.1303, allocations: 67.34 kB / 477.5 MB, free: 5.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.1305, allocations: 233 kB / 477.7 MB, free: 5.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.1306, allocations: 37.7 kB / 477.8 MB, free: 5.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1307, allocations: 180.7 kB / 477.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-05/0.1308, allocations: 98.64 kB / 478 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.924e-05/0.1309, allocations: 74.05 kB / 478.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.131, allocations: 342.8 kB / 478.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.1312, allocations: 88.7 kB / 478.5 MB, free: 4.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.1315, allocations: 226.3 kB / 478.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004983/0.132, allocations: 348.8 kB / 479.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.132, allocations: 0 / 479.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000623/0.1327, allocations: 368.8 kB / 479.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1327, allocations: 8 kB / 479.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1327, allocations: 4 kB / 479.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.1327, allocations: 8 kB / 479.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.133, allocations: 75.83 kB / 479.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1331, allocations: 8.406 kB / 479.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.1332, allocations: 35.73 kB / 479.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.1333, allocations: 23.92 kB / 479.6 MB, free: 3.637 MB / 350.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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last) * 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.0001862/0.1335, allocations: 175.5 kB / 479.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.1335, allocations: 23.72 kB / 479.8 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006231/0.1341, allocations: 324.2 kB / 480.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.1342, allocations: 4 kB / 480.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.1342, allocations: 7.922 kB / 480.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.1342, allocations: 0 / 480.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009123/0.1351, allocations: 0.7207 MB / 480.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1351, allocations: 7.938 kB / 480.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/0.1354, allocations: 47.91 kB / 480.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1354, allocations: 0 / 480.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.1354, allocations: 11.98 kB / 480.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1354, allocations: 3.938 kB / 480.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1354, allocations: 0 / 480.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000816/0.1362, allocations: 0.519 MB / 481.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.1363, allocations: 108.7 kB / 481.6 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.027e-05/0.1364, allocations: 15.92 kB / 481.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.1366, allocations: 15.92 kB / 481.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.1366, allocations: 23.97 kB / 481.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.1367, allocations: 15.98 kB / 481.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.1368, allocations: 160.5 kB / 481.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1368, allocations: 0 / 481.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003634/0.1372, allocations: 83.67 kB / 481.9 MB, free: 1.281 MB / 350.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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.001146/0.1383, allocations: 1.064 MB / 482.9 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006239/0.139, allocations: 275.6 kB / 483.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.139, allocations: 3.938 kB / 483.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002481/0.1392, allocations: 133.3 kB / 483.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.1396, allocations: 36.36 kB / 483.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.1434, allocations: 3.1 MB / 486.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1437, allocations: 0.7918 MB / 487.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.1438, allocations: 39.25 kB / 487.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.144, allocations: 115.6 kB / 487.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.144, allocations: 4 kB / 487.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.165, allocations: 5.379 MB / 492.8 MB, free: 6.145 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/7.706, allocations: 8.562 kB / 492.8 MB, free: 6.137 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches