Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001344/0.001344, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00203/0.00203, allocations: 215.5 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2401/0.2401, allocations: 46.93 MB / 357 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002286/0.002286, allocations: 75.88 kB / 0.491 GB, free: 7.738 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1295, allocations: 66.05 MB / 0.5555 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003715/0.1332, allocations: 2.327 MB / 0.5577 GB, free: 3.211 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.135, allocations: 0.9075 MB / 0.5586 GB, free: 2.297 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.1351, allocations: 11.88 kB / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.1353, allocations: 39.53 kB / 0.5587 GB, free: 2.246 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.1356, allocations: 63.39 kB / 0.5587 GB, free: 2.184 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004432/0.136, allocations: 195.6 kB / 0.5589 GB, free: 1.992 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.1365, allocations: 386.9 kB / 0.5593 GB, free: 1.613 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1367, allocations: 96.22 kB / 0.5594 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002706/0.137, allocations: 163.3 kB / 0.5595 GB, free: 1.359 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.1372, allocations: 159.2 kB / 0.5597 GB, free: 1.203 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.1373, allocations: 36 kB / 0.5597 GB, free: 1.168 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.1374, allocations: 59.98 kB / 0.5598 GB, free: 1.109 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.778e-05/0.1375, allocations: 91.62 kB / 0.5599 GB, free: 1.02 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.1376, allocations: 167.1 kB / 0.56 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005139/0.1382, allocations: 418.2 kB / 0.5604 GB, free: 456 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1382, allocations: 0 / 0.5604 GB, free: 456 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1382, allocations: 0 / 0.5604 GB, free: 456 kB / 414.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.1382, allocations: 0 / 0.5604 GB, free: 456 kB / 414.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.001332/0.1395, allocations: 0.6689 MB / 0.5611 GB, free: 15.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1395, allocations: 8.031 kB / 0.5611 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001193/0.1397, allocations: 79.28 kB / 0.5612 GB, free: 15.63 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004653/0.1401, allocations: 76.66 kB / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006098/0.1407, allocations: 376.1 kB / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.1408, allocations: 21.03 kB / 0.5616 GB, free: 15.13 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.329e-05/0.1408, allocations: 40.31 kB / 0.5616 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005818/0.1414, allocations: 286 kB / 0.5619 GB, free: 14.81 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.1414, allocations: 3.984 kB / 0.5619 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.1415, allocations: 15.94 kB / 0.5619 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.1415, allocations: 8 kB / 0.5619 GB, free: 14.78 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.142, allocations: 202.5 kB / 0.5621 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.1435, allocations: 0.8661 MB / 0.563 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.1439, allocations: 186.8 kB / 0.5632 GB, free: 13.47 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.1441, allocations: 88.81 kB / 0.5632 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.1441, allocations: 8 kB / 0.5633 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.1446, allocations: 219.2 kB / 0.5635 GB, free: 13.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.693e-06/0.1446, allocations: 4 kB / 0.5635 GB, free: 13.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008755/0.1454, allocations: 377.2 kB / 0.5638 GB, free: 12.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.1455, allocations: 59.41 kB / 0.5639 GB, free: 12.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.1458, allocations: 267 kB / 0.5641 GB, free: 12.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.1458, allocations: 33.7 kB / 0.5642 GB, free: 12.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.146, allocations: 192.9 kB / 0.5644 GB, free: 12.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.387e-05/0.1461, allocations: 107.2 kB / 0.5645 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.1462, allocations: 70.06 kB / 0.5645 GB, free: 12.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1464, allocations: 346.8 kB / 0.5649 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.1466, allocations: 88.69 kB / 0.5649 GB, free: 11.58 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003396/0.1469, allocations: 235 kB / 0.5652 GB, free: 11.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005732/0.1475, allocations: 348.8 kB / 0.5655 GB, free: 10.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1475, allocations: 4 kB / 0.5655 GB, free: 10.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000683/0.1482, allocations: 377.4 kB / 0.5659 GB, free: 10.51 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1482, allocations: 11.98 kB / 0.5659 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1482, allocations: 7.984 kB / 0.5659 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.1482, allocations: 8 kB / 0.5659 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000301/0.1485, allocations: 71.84 kB / 0.566 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.1486, allocations: 15.92 kB / 0.566 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.1488, allocations: 31.78 kB / 0.566 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.628e-05/0.1488, allocations: 31.92 kB / 0.566 GB, free: 10.34 MB / 430.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.0001891/0.149, allocations: 162.8 kB / 0.5662 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.149, allocations: 31.81 kB / 0.5662 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006878/0.1497, allocations: 324.8 kB / 0.5665 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1497, allocations: 4 kB / 0.5665 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1497, allocations: 0 / 0.5665 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1497, allocations: 7.984 kB / 0.5665 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.1508, allocations: 0.7324 MB / 0.5673 GB, free: 9.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1508, allocations: 0 / 0.5673 GB, free: 9.004 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.151, allocations: 47.91 kB / 0.5673 GB, free: 8.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.151, allocations: 0 / 0.5673 GB, free: 8.957 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.151, allocations: 15.98 kB / 0.5673 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.151, allocations: 3.938 kB / 0.5673 GB, free: 8.938 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.151, allocations: 7.938 kB / 0.5673 GB, free: 8.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009065/0.152, allocations: 0.5189 MB / 0.5678 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.152, allocations: 112.9 kB / 0.5679 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.1521, allocations: 4 kB / 0.5679 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.1523, allocations: 19.92 kB / 0.568 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.1e-05/0.1523, allocations: 27.97 kB / 0.568 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-05/0.1524, allocations: 15.98 kB / 0.568 GB, free: 8.199 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.1526, allocations: 182 kB / 0.5682 GB, free: 8.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1526, allocations: 4 kB / 0.5682 GB, free: 8.016 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003791/0.153, allocations: 67.89 kB / 0.5682 GB, free: 7.949 MB / 430.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.001244/0.1542, allocations: 1.079 MB / 0.5693 GB, free: 6.844 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005689/0.1548, allocations: 248.4 kB / 0.5695 GB, free: 6.602 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1548, allocations: 0 / 0.5695 GB, free: 6.602 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.155, allocations: 123.8 kB / 0.5697 GB, free: 6.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.1554, allocations: 45.31 kB / 0.5697 GB, free: 6.434 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.1598, allocations: 3.254 MB / 0.5729 GB, free: 2.992 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.1602, allocations: 0.7997 MB / 0.5737 GB, free: 2.164 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.1604, allocations: 38.97 kB / 0.5737 GB, free: 2.125 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.1606, allocations: 131.4 kB / 0.5738 GB, free: 1.996 MB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1606, allocations: 0 / 0.5738 GB, free: 1.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02985/0.1905, allocations: 6.042 MB / 0.5797 GB, free: 12.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.414, allocations: 10.42 kB / 0.5797 GB, free: 12 MB / 446.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.x in file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.971429849974811]