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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 111.7 kB / 19.69 MB, free: 2.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002214/0.002214, allocations: 216.8 kB / 23 MB, free: 5.004 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 207.6 MB / 233.8 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2145/0.2145, allocations: 44.25 MB / 330.3 MB, free: 9.512 MB / 270.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002114/0.002114, allocations: 74.5 kB / 467.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1228, allocations: 61.04 MB / 0.5161 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00375/0.1265, allocations: 2.255 MB / 0.5183 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.128, allocations: 0.8266 MB / 0.5191 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1281, allocations: 7.938 kB / 0.5192 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.1283, allocations: 43.53 kB / 0.5192 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.1285, allocations: 51.47 kB / 0.5192 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.1288, allocations: 147.7 kB / 0.5194 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004102/0.1292, allocations: 359 kB / 0.5197 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.1294, allocations: 88.78 kB / 0.5198 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.1296, allocations: 139.5 kB / 0.5199 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.1298, allocations: 151.2 kB / 0.5201 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.726e-05/0.1299, allocations: 40 kB / 0.5201 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.644e-05/0.13, allocations: 32 kB / 0.5202 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.223e-05/0.1301, allocations: 83.69 kB / 0.5202 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.1302, allocations: 159.1 kB / 0.5204 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000407/0.1306, allocations: 362.5 kB / 0.5207 GB, free: 2.605 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1306, allocations: 0 / 0.5207 GB, free: 2.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1306, allocations: 4 kB / 0.5207 GB, free: 2.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1306, allocations: 0 / 0.5207 GB, free: 2.602 MB / 398.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.001267/0.1319, allocations: 0.6719 MB / 0.5214 GB, free: 1.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.132, allocations: 8.031 kB / 0.5214 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.1321, allocations: 71.33 kB / 0.5215 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.779e-05/0.1321, allocations: 44.69 kB / 0.5215 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005313/0.1327, allocations: 277.5 kB / 0.5218 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.1327, allocations: 25.03 kB / 0.5218 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.1328, allocations: 28.38 kB / 0.5218 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005357/0.1333, allocations: 278 kB / 0.5221 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.1333, allocations: 0 / 0.5221 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.1333, allocations: 15.98 kB / 0.5221 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1334, allocations: 4 kB / 0.5221 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004329/0.1338, allocations: 198.4 kB / 0.5223 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.1351, allocations: 0.7648 MB / 0.523 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004382/0.1356, allocations: 190.8 kB / 0.5232 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002067/0.1358, allocations: 88.81 kB / 0.5233 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.426e-05/0.1358, allocations: 11.92 kB / 0.5233 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004297/0.1363, allocations: 235.1 kB / 0.5236 GB, free: 15.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1363, allocations: 0 / 0.5236 GB, free: 15.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008314/0.1371, allocations: 369.3 kB / 0.5239 GB, free: 15.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.1372, allocations: 59.41 kB / 0.524 GB, free: 15.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.1374, allocations: 233.1 kB / 0.5242 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.1375, allocations: 37.69 kB / 0.5242 GB, free: 14.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1376, allocations: 176.7 kB / 0.5244 GB, free: 14.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.901e-05/0.1377, allocations: 103.2 kB / 0.5245 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.1378, allocations: 70.06 kB / 0.5246 GB, free: 14.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.138, allocations: 342.8 kB / 0.5249 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.1382, allocations: 96.62 kB / 0.525 GB, free: 14.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.1385, allocations: 230.3 kB / 0.5252 GB, free: 13.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005541/0.139, allocations: 336.8 kB / 0.5255 GB, free: 13.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.139, allocations: 4 kB / 0.5255 GB, free: 13.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006565/0.1397, allocations: 364.9 kB / 0.5259 GB, free: 13.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.1397, allocations: 8 kB / 0.5259 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.1397, allocations: 4.469 kB / 0.5259 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.763e-05/0.1397, allocations: 12 kB / 0.5259 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/0.14, allocations: 79.78 kB / 0.526 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.1401, allocations: 11.92 kB / 0.526 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.1402, allocations: 31.92 kB / 0.526 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.1403, allocations: 23.98 kB / 0.526 GB, free: 12.84 MB / 414.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,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,mean.y,$PRE.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.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.0001965/0.1405, allocations: 169.5 kB / 0.5262 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/0.1405, allocations: 27.84 kB / 0.5262 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006556/0.1412, allocations: 319.6 kB / 0.5265 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1412, allocations: 7.938 kB / 0.5265 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1412, allocations: 0 / 0.5265 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1412, allocations: 3.984 kB / 0.5265 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009685/0.1421, allocations: 0.6885 MB / 0.5272 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1421, allocations: 0 / 0.5272 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.1424, allocations: 51.89 kB / 0.5273 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.1424, allocations: 4 kB / 0.5273 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.1424, allocations: 8 kB / 0.5273 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.1424, allocations: 4 kB / 0.5273 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1424, allocations: 0 / 0.5273 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008921/0.1433, allocations: 0.5266 MB / 0.5278 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.084e-05/0.1434, allocations: 31.73 kB / 0.5278 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.973e-05/0.1434, allocations: 12.06 kB / 0.5278 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.1436, allocations: 11.98 kB / 0.5278 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.347e-05/0.1437, allocations: 23.95 kB / 0.5279 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.1437, allocations: 8 kB / 0.5279 GB, free: 10.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.1438, allocations: 176.4 kB / 0.528 GB, free: 10.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1438, allocations: 0 / 0.528 GB, free: 10.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003461/0.1442, allocations: 71.88 kB / 0.5281 GB, free: 10.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.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.001229/0.1454, allocations: 1.068 MB / 0.5291 GB, free: 9.543 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005285/0.1459, allocations: 244.1 kB / 0.5294 GB, free: 9.305 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1459, allocations: 0.9375 kB / 0.5294 GB, free: 9.305 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002362/0.1462, allocations: 123.9 kB / 0.5295 GB, free: 9.184 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.1465, allocations: 44.61 kB / 0.5295 GB, free: 9.141 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00395/0.1505, allocations: 3.087 MB / 0.5326 GB, free: 5.863 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.1509, allocations: 0.7919 MB / 0.5333 GB, free: 5.047 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001337/0.1511, allocations: 46.95 kB / 0.5334 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.1512, allocations: 107.4 kB / 0.5335 GB, free: 4.895 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1512, allocations: 0 / 0.5335 GB, free: 4.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2285/0.3798, allocations: 5.839 MB / 0.5392 GB, free: 28.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.42, allocations: 5.328 kB / 0.5392 GB, free: 28.16 MB / 414.1 MB " [Timeout remaining time 648] (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.000219736 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable mean.x in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.37913234300504]