Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001638/0.001638, allocations: 116 kB / 18.45 MB, free: 4.562 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.001952/0.001952, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2292/0.2292, allocations: 46.92 MB / 357.8 MB, free: 10.3 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.89 kB / 0.4921 GB, free: 7.453 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1385, allocations: 65.99 MB / 0.5565 GB, free: 5.34 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004061/0.1426, allocations: 2.33 MB / 0.5588 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.1443, allocations: 0.9114 MB / 0.5597 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.1444, allocations: 7.938 kB / 0.5597 GB, free: 2.066 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.1446, allocations: 35.53 kB / 0.5597 GB, free: 2.031 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.1448, allocations: 75.31 kB / 0.5598 GB, free: 1.957 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.1452, allocations: 179.7 kB / 0.56 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004579/0.1457, allocations: 390.9 kB / 0.5603 GB, free: 1.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.1459, allocations: 100.2 kB / 0.5604 GB, free: 1.301 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.1462, allocations: 155.4 kB / 0.5606 GB, free: 1.148 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000239/0.1464, allocations: 167.1 kB / 0.5607 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.69e-05/0.1465, allocations: 36 kB / 0.5608 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.1466, allocations: 55.98 kB / 0.5608 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.1467, allocations: 83.69 kB / 0.5609 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001774/0.1468, allocations: 183 kB / 0.5611 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005268/0.1474, allocations: 410.3 kB / 0.5615 GB, free: 236 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.81e-06/0.1474, allocations: 0 / 0.5615 GB, free: 236 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1474, allocations: 0 / 0.5615 GB, free: 236 kB / 414.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.1474, allocations: 0 / 0.5615 GB, free: 236 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.001259/0.1486, allocations: 0.6728 MB / 0.5621 GB, free: 15.51 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1487, allocations: 8.031 kB / 0.5621 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004792/0.1492, allocations: 80.61 kB / 0.5622 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006022/0.1498, allocations: 356.1 kB / 0.5625 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.1498, allocations: 28.94 kB / 0.5626 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.458e-05/0.1499, allocations: 28.38 kB / 0.5626 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005594/0.1504, allocations: 272.9 kB / 0.5629 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.1505, allocations: 7.891 kB / 0.5629 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.1505, allocations: 15.98 kB / 0.5629 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.1505, allocations: 8 kB / 0.5629 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.1509, allocations: 186.1 kB / 0.5631 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.1524, allocations: 0.8268 MB / 0.5639 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/0.1528, allocations: 189 kB / 0.5641 GB, free: 13.42 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.153, allocations: 92.8 kB / 0.5641 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.153, allocations: 15.86 kB / 0.5642 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004327/0.1535, allocations: 223.2 kB / 0.5644 GB, free: 13.08 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.634e-06/0.1535, allocations: 0 / 0.5644 GB, free: 13.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008618/0.1543, allocations: 377.3 kB / 0.5647 GB, free: 12.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.1544, allocations: 59.34 kB / 0.5648 GB, free: 12.63 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.1547, allocations: 270.9 kB / 0.5651 GB, free: 12.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.1547, allocations: 37.69 kB / 0.5651 GB, free: 12.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.1549, allocations: 180.7 kB / 0.5653 GB, free: 12.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.155, allocations: 107.1 kB / 0.5654 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1551, allocations: 70.06 kB / 0.5654 GB, free: 11.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.1553, allocations: 346.8 kB / 0.5658 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.1555, allocations: 88.7 kB / 0.5658 GB, free: 11.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/0.1558, allocations: 226.4 kB / 0.5661 GB, free: 11.24 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005775/0.1564, allocations: 348.8 kB / 0.5664 GB, free: 10.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1564, allocations: 0 / 0.5664 GB, free: 10.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00075/0.1572, allocations: 380.8 kB / 0.5668 GB, free: 10.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.1572, allocations: 8 kB / 0.5668 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.1572, allocations: 4.469 kB / 0.5668 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.512e-05/0.1572, allocations: 8.141 kB / 0.5668 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.1576, allocations: 79.83 kB / 0.5669 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.1576, allocations: 8 kB / 0.5669 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.1578, allocations: 39.77 kB / 0.5669 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.719e-05/0.1578, allocations: 23.98 kB / 0.5669 GB, free: 10.29 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.0002385/0.1581, allocations: 162.8 kB / 0.5671 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.1581, allocations: 39.7 kB / 0.5671 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007446/0.1589, allocations: 320.3 kB / 0.5674 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.1589, allocations: 7.984 kB / 0.5674 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1589, allocations: 0 / 0.5674 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1589, allocations: 0 / 0.5674 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.16, allocations: 0.7246 MB / 0.5681 GB, free: 8.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.1601, allocations: 3.984 kB / 0.5681 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.1603, allocations: 52 kB / 0.5682 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1603, allocations: 3.938 kB / 0.5682 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.1604, allocations: 8 kB / 0.5682 GB, free: 8.898 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1604, allocations: 3.984 kB / 0.5682 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1604, allocations: 0 / 0.5682 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.1614, allocations: 0.5305 MB / 0.5687 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1615, allocations: 112.8 kB / 0.5688 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.1615, allocations: 8.062 kB / 0.5688 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.1617, allocations: 11.98 kB / 0.5688 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.976e-05/0.1618, allocations: 23.97 kB / 0.5689 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-05/0.1618, allocations: 15.98 kB / 0.5689 GB, free: 8.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.1621, allocations: 194 kB / 0.5691 GB, free: 7.973 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1621, allocations: 3.938 kB / 0.5691 GB, free: 7.969 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004026/0.1625, allocations: 71.78 kB / 0.5691 GB, free: 7.898 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.0001601/0.1626, allocations: 111.2 kB / 0.5692 GB, free: 7.781 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006144/0.1632, allocations: 259.9 kB / 0.5695 GB, free: 7.527 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1632, allocations: 0 / 0.5695 GB, free: 7.527 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002904/0.1635, allocations: 119.8 kB / 0.5696 GB, free: 7.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.1639, allocations: 37.98 kB / 0.5696 GB, free: 7.375 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.1653, allocations: 0.6585 MB / 0.5703 GB, free: 6.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.1658, allocations: 0.7997 MB / 0.5711 GB, free: 5.848 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1659, allocations: 39.42 kB / 0.5711 GB, free: 5.809 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1659, allocations: 0 / 0.5711 GB, free: 5.809 MB / 430.1 MB Notification: Performance of Templates: time 0.008115/0.174, allocations: 3.931 MB / 0.5749 GB, free: 1.887 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/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_4.1.0_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: 8.006023920985172]