Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001228/0.001228, allocations: 107.8 kB / 19.17 MB, free: 3.871 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.00137/0.00137, allocations: 208.9 kB / 22.13 MB, free: 0.918 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.499/1.499, allocations: 230.2 MB / 255.1 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2275/0.2275, allocations: 46.88 MB / 358.1 MB, free: 10.52 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 83.84 kB / 0.4924 GB, free: 8.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1366, allocations: 65.99 MB / 0.5568 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003848/0.1405, allocations: 2.326 MB / 0.5591 GB, free: 3.582 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.1422, allocations: 0.9075 MB / 0.5599 GB, free: 2.668 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.1423, allocations: 11.94 kB / 0.56 GB, free: 2.656 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.1425, allocations: 31.55 kB / 0.56 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002487/0.1427, allocations: 75.31 kB / 0.5601 GB, free: 2.551 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004447/0.1432, allocations: 179.7 kB / 0.5602 GB, free: 2.375 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.1436, allocations: 390.9 kB / 0.5606 GB, free: 1.992 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.1438, allocations: 104.2 kB / 0.5607 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.1441, allocations: 147.4 kB / 0.5608 GB, free: 1.746 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.1444, allocations: 171.1 kB / 0.561 GB, free: 1.578 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.059e-05/0.1444, allocations: 36 kB / 0.561 GB, free: 1.543 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.1445, allocations: 52 kB / 0.5611 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.664e-05/0.1446, allocations: 87.67 kB / 0.5612 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.1448, allocations: 179 kB / 0.5613 GB, free: 1.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005017/0.1453, allocations: 406.3 kB / 0.5617 GB, free: 0.832 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1453, allocations: 0 / 0.5617 GB, free: 0.832 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1453, allocations: 0 / 0.5617 GB, free: 0.832 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.455e-06/0.1453, allocations: 4 kB / 0.5617 GB, free: 0.8281 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.001254/0.1466, allocations: 0.6689 MB / 0.5624 GB, free: 112 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1466, allocations: 12.03 kB / 0.5624 GB, free: 100 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000494/0.1471, allocations: 84.61 kB / 0.5625 GB, free: 16 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.1477, allocations: 360.1 kB / 0.5628 GB, free: 15.63 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.1477, allocations: 24.94 kB / 0.5629 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.04e-05/0.1478, allocations: 32.38 kB / 0.5629 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005612/0.1483, allocations: 272.9 kB / 0.5631 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.1484, allocations: 7.953 kB / 0.5632 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.1484, allocations: 11.94 kB / 0.5632 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.1484, allocations: 11.98 kB / 0.5632 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/0.1489, allocations: 190.1 kB / 0.5634 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.1503, allocations: 0.8307 MB / 0.5642 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004622/0.1508, allocations: 186.8 kB / 0.5643 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.151, allocations: 88.81 kB / 0.5644 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.151, allocations: 11.92 kB / 0.5644 GB, free: 13.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004571/0.1515, allocations: 223.2 kB / 0.5647 GB, free: 13.67 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 3.507e-06/0.1515, allocations: 0 / 0.5647 GB, free: 13.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008884/0.1524, allocations: 377.8 kB / 0.565 GB, free: 13.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.1524, allocations: 55.41 kB / 0.5651 GB, free: 13.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.1527, allocations: 271 kB / 0.5653 GB, free: 12.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.245e-05/0.1528, allocations: 37.7 kB / 0.5654 GB, free: 12.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.1529, allocations: 180.7 kB / 0.5655 GB, free: 12.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.153, allocations: 111.1 kB / 0.5656 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.1532, allocations: 70.06 kB / 0.5657 GB, free: 12.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.1534, allocations: 342.8 kB / 0.566 GB, free: 12.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.1536, allocations: 88.69 kB / 0.5661 GB, free: 12.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.1539, allocations: 231.1 kB / 0.5663 GB, free: 11.83 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00059/0.1545, allocations: 352.7 kB / 0.5667 GB, free: 11.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1545, allocations: 0 / 0.5667 GB, free: 11.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007169/0.1552, allocations: 380.9 kB / 0.567 GB, free: 11.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.1552, allocations: 7.984 kB / 0.567 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1552, allocations: 4 kB / 0.567 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.1553, allocations: 8 kB / 0.5671 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003046/0.1556, allocations: 75.84 kB / 0.5671 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.1556, allocations: 8.484 kB / 0.5671 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.1558, allocations: 39.78 kB / 0.5672 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.806e-05/0.1558, allocations: 19.98 kB / 0.5672 GB, free: 10.88 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.0001992/0.156, allocations: 161.7 kB / 0.5673 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.286e-05/0.156, allocations: 39.7 kB / 0.5674 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007073/0.1567, allocations: 324.3 kB / 0.5677 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.1568, allocations: 4 kB / 0.5677 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1568, allocations: 0 / 0.5677 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1568, allocations: 3.984 kB / 0.5677 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.1578, allocations: 0.7207 MB / 0.5684 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1578, allocations: 0 / 0.5684 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.1581, allocations: 55.91 kB / 0.5685 GB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.1581, allocations: 0 / 0.5685 GB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.1581, allocations: 11.98 kB / 0.5685 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/0.1581, allocations: 8 kB / 0.5685 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1581, allocations: 0 / 0.5685 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009412/0.159, allocations: 0.5266 MB / 0.569 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.994e-05/0.1591, allocations: 108.9 kB / 0.5691 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.256e-05/0.1592, allocations: 16.12 kB / 0.5691 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.1594, allocations: 15.98 kB / 0.5691 GB, free: 8.785 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.486e-05/0.1594, allocations: 31.89 kB / 0.5692 GB, free: 8.754 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.1595, allocations: 8 kB / 0.5692 GB, free: 8.746 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001996/0.1597, allocations: 190 kB / 0.5693 GB, free: 8.566 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1597, allocations: 0 / 0.5693 GB, free: 8.566 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.1601, allocations: 75.77 kB / 0.5694 GB, free: 8.492 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.0001528/0.1602, allocations: 112.3 kB / 0.5695 GB, free: 8.375 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000593/0.1608, allocations: 256.4 kB / 0.5698 GB, free: 8.125 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1608, allocations: 0 / 0.5698 GB, free: 8.125 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002696/0.1611, allocations: 127.9 kB / 0.5699 GB, free: 8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.1615, allocations: 38.41 kB / 0.5699 GB, free: 7.965 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.1627, allocations: 0.6618 MB / 0.5706 GB, free: 7.266 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.1631, allocations: 0.7841 MB / 0.5713 GB, free: 6.453 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.1632, allocations: 43.36 kB / 0.5714 GB, free: 6.41 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1632, allocations: 0 / 0.5714 GB, free: 6.41 MB / 430.1 MB Notification: Performance of Templates: time 0.006541/0.1697, allocations: 3.925 MB / 0.5752 GB, free: 2.492 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.79031819710508]