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.001486/0.001486, allocations: 118.7 kB / 18.5 MB, free: 4.574 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.001542/0.001542, allocations: 210.5 kB / 21.46 MB, free: 1.617 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.497/1.497, allocations: 230.2 MB / 254.5 MB, free: 15.24 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.2359/0.2359, allocations: 46.9 MB / 357.4 MB, free: 10.52 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.002266/0.002266, allocations: 75.88 kB / 0.4912 GB, free: 8.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1266, allocations: 65.99 MB / 0.5557 GB, free: 6.426 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003564/0.1302, allocations: 2.314 MB / 0.5579 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.1319, allocations: 0.9114 MB / 0.5588 GB, free: 3.172 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.132, allocations: 11.94 kB / 0.5589 GB, free: 3.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1321, allocations: 39.47 kB / 0.5589 GB, free: 3.121 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.1323, allocations: 63.39 kB / 0.5589 GB, free: 3.059 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003979/0.1327, allocations: 183.6 kB / 0.5591 GB, free: 2.879 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004268/0.1332, allocations: 386.9 kB / 0.5595 GB, free: 2.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.1334, allocations: 104.2 kB / 0.5596 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002333/0.1336, allocations: 155.3 kB / 0.5597 GB, free: 2.246 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.1338, allocations: 167.1 kB / 0.5599 GB, free: 2.082 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.1339, allocations: 36 kB / 0.5599 GB, free: 2.047 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.134, allocations: 55.98 kB / 0.56 GB, free: 1.992 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.918e-05/0.1341, allocations: 83.69 kB / 0.5601 GB, free: 1.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.1343, allocations: 183 kB / 0.5602 GB, free: 1.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004983/0.1348, allocations: 402.3 kB / 0.5606 GB, free: 1.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1348, allocations: 0 / 0.5606 GB, free: 1.336 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1348, allocations: 4 kB / 0.5606 GB, free: 1.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1348, allocations: 0 / 0.5606 GB, free: 1.332 MB / 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.001178/0.1359, allocations: 0.6728 MB / 0.5613 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.136, allocations: 12.03 kB / 0.5613 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.1361, allocations: 75.28 kB / 0.5614 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004451/0.1365, allocations: 80.66 kB / 0.5614 GB, free: 448 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.1371, allocations: 364.1 kB / 0.5618 GB, free: 44 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.1372, allocations: 29.03 kB / 0.5618 GB, free: 16 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.248e-05/0.1372, allocations: 40.42 kB / 0.5619 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005565/0.1378, allocations: 289.8 kB / 0.5621 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.1378, allocations: 3.984 kB / 0.5621 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.1378, allocations: 12 kB / 0.5622 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1378, allocations: 4 kB / 0.5622 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005515/0.1384, allocations: 206.4 kB / 0.5624 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.1398, allocations: 0.8623 MB / 0.5632 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.1403, allocations: 192.4 kB / 0.5634 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.1405, allocations: 88.81 kB / 0.5635 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.1405, allocations: 7.984 kB / 0.5635 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000427/0.141, allocations: 223.1 kB / 0.5637 GB, free: 14.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.913e-06/0.141, allocations: 0 / 0.5637 GB, free: 14.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009996/0.142, allocations: 373.8 kB / 0.564 GB, free: 13.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/0.142, allocations: 59.41 kB / 0.5641 GB, free: 13.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004017/0.1424, allocations: 271 kB / 0.5644 GB, free: 13.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.1425, allocations: 33.7 kB / 0.5644 GB, free: 13.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.1426, allocations: 196.9 kB / 0.5646 GB, free: 13.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.242e-05/0.1427, allocations: 103.2 kB / 0.5647 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.1428, allocations: 70.06 kB / 0.5647 GB, free: 12.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.143, allocations: 346.8 kB / 0.5651 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.1432, allocations: 96.69 kB / 0.5652 GB, free: 12.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.1435, allocations: 235 kB / 0.5654 GB, free: 12.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005759/0.1441, allocations: 340.9 kB / 0.5657 GB, free: 11.77 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1441, allocations: 3.938 kB / 0.5657 GB, free: 11.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007189/0.1448, allocations: 384.8 kB / 0.5661 GB, free: 11.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.1449, allocations: 4 kB / 0.5661 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1449, allocations: 4 kB / 0.5661 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.1449, allocations: 8.469 kB / 0.5661 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.1452, allocations: 75.91 kB / 0.5662 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.1453, allocations: 11.92 kB / 0.5662 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.1454, allocations: 31.78 kB / 0.5662 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.1455, allocations: 27.92 kB / 0.5662 GB, free: 11.23 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.0002206/0.1457, allocations: 157.8 kB / 0.5664 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/0.1457, allocations: 35.8 kB / 0.5664 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006744/0.1464, allocations: 328.2 kB / 0.5667 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1464, allocations: 4 kB / 0.5667 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1464, allocations: 0 / 0.5667 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.1464, allocations: 3.984 kB / 0.5667 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1475, allocations: 0.7362 MB / 0.5675 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1475, allocations: 0 / 0.5675 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.1477, allocations: 47.97 kB / 0.5675 GB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1477, allocations: 0 / 0.5675 GB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.1477, allocations: 12.22 kB / 0.5675 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.1477, allocations: 11.88 kB / 0.5675 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1477, allocations: 0 / 0.5675 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009369/0.1487, allocations: 0.5343 MB / 0.5681 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.994e-05/0.1488, allocations: 108.8 kB / 0.5682 GB, free: 9.145 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.1488, allocations: 8.188 kB / 0.5682 GB, free: 9.137 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.149, allocations: 19.92 kB / 0.5682 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.1491, allocations: 23.97 kB / 0.5682 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.1491, allocations: 15.98 kB / 0.5682 GB, free: 9.078 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002017/0.1493, allocations: 190 kB / 0.5684 GB, free: 8.891 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1493, allocations: 4 kB / 0.5684 GB, free: 8.887 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004037/0.1497, allocations: 67.89 kB / 0.5685 GB, free: 8.82 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.001209/0.1509, allocations: 1.072 MB / 0.5695 GB, free: 7.723 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005402/0.1515, allocations: 247.6 kB / 0.5698 GB, free: 7.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1515, allocations: 0 / 0.5698 GB, free: 7.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.1517, allocations: 125.2 kB / 0.5699 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.1521, allocations: 50.97 kB / 0.5699 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.1567, allocations: 3.25 MB / 0.5731 GB, free: 3.867 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/0.1572, allocations: 0.7998 MB / 0.5739 GB, free: 3.039 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001662/0.1574, allocations: 43.23 kB / 0.5739 GB, free: 2.996 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.1576, allocations: 127.4 kB / 0.574 GB, free: 2.871 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1576, allocations: 192 / 0.574 GB, free: 2.871 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03028/0.1879, allocations: 6.028 MB / 0.5799 GB, free: 12.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.605/8.792, allocations: 8.812 kB / 0.5799 GB, free: 12.89 MB / 446.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.912934260908514]