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.002055/0.002055, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002471/0.002471, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.655/1.655, allocations: 230.6 MB / 254.1 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.2426/0.2426, allocations: 46.92 MB / 357.1 MB, free: 10.39 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.002247/0.002247, allocations: 59.91 kB / 0.4914 GB, free: 7.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1567, allocations: 65.99 MB / 0.5558 GB, free: 5.406 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004774/0.1615, allocations: 2.328 MB / 0.5581 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.1637, allocations: 0.9191 MB / 0.559 GB, free: 2.137 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.164, allocations: 7.938 kB / 0.559 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.1642, allocations: 35.53 kB / 0.5591 GB, free: 2.094 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00047/0.1647, allocations: 59.41 kB / 0.5591 GB, free: 2.035 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006715/0.1654, allocations: 195.6 kB / 0.5593 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007373/0.1661, allocations: 382.9 kB / 0.5597 GB, free: 1.469 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.1664, allocations: 104.1 kB / 0.5598 GB, free: 1.367 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003782/0.1668, allocations: 159.4 kB / 0.5599 GB, free: 1.211 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.1671, allocations: 163.2 kB / 0.5601 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.788e-05/0.1672, allocations: 36 kB / 0.5601 GB, free: 1.016 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.1673, allocations: 59.98 kB / 0.5602 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1675, allocations: 87.69 kB / 0.5602 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002033/0.1677, allocations: 175 kB / 0.5604 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.1682, allocations: 406.3 kB / 0.5608 GB, free: 308 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1682, allocations: 4 kB / 0.5608 GB, free: 304 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1682, allocations: 0 / 0.5608 GB, free: 304 kB / 414.1 MB Notification: Performance of Transformations before backend: time 1.934e-05/0.1683, allocations: 0 / 0.5608 GB, free: 304 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.001656/0.1699, allocations: 0.6728 MB / 0.5615 GB, free: 15.57 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.17, allocations: 8.031 kB / 0.5615 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005723/0.1705, allocations: 80.61 kB / 0.5615 GB, free: 15.49 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006382/0.1712, allocations: 364.1 kB / 0.5619 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.1712, allocations: 20.94 kB / 0.5619 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-05/0.1713, allocations: 36.38 kB / 0.562 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/0.1719, allocations: 272.9 kB / 0.5622 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.1719, allocations: 3.953 kB / 0.5622 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.1719, allocations: 12 kB / 0.5622 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.172, allocations: 4 kB / 0.5622 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.1724, allocations: 198.1 kB / 0.5624 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.174, allocations: 0.8229 MB / 0.5632 GB, free: 13.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.1745, allocations: 189 kB / 0.5634 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.1747, allocations: 84.81 kB / 0.5635 GB, free: 13.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.004e-05/0.1748, allocations: 11.92 kB / 0.5635 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004838/0.1753, allocations: 231.1 kB / 0.5637 GB, free: 13.14 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.1753, allocations: 0 / 0.5637 GB, free: 13.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009317/0.1762, allocations: 381.2 kB / 0.5641 GB, free: 12.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/0.1763, allocations: 59.39 kB / 0.5641 GB, free: 12.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.1766, allocations: 266.9 kB / 0.5644 GB, free: 12.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.1766, allocations: 37.7 kB / 0.5644 GB, free: 12.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.1768, allocations: 180.7 kB / 0.5646 GB, free: 12.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1769, allocations: 107.1 kB / 0.5647 GB, free: 12.1 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.177, allocations: 74.06 kB / 0.5648 GB, free: 12.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.1772, allocations: 346.8 kB / 0.5651 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.1775, allocations: 84.7 kB / 0.5652 GB, free: 11.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.1779, allocations: 226.4 kB / 0.5654 GB, free: 11.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/0.1787, allocations: 348.8 kB / 0.5657 GB, free: 10.9 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.1787, allocations: 8 kB / 0.5657 GB, free: 10.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009551/0.1796, allocations: 377.4 kB / 0.5661 GB, free: 10.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.1797, allocations: 12 kB / 0.5661 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.1797, allocations: 4 kB / 0.5661 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.686e-05/0.1797, allocations: 11.98 kB / 0.5661 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.1801, allocations: 75.83 kB / 0.5662 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/0.1801, allocations: 8 kB / 0.5662 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.1803, allocations: 35.77 kB / 0.5662 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/0.1804, allocations: 16 kB / 0.5663 GB, free: 10.36 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.0002472/0.1806, allocations: 170.8 kB / 0.5664 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1807, allocations: 39.7 kB / 0.5665 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008073/0.1815, allocations: 316.3 kB / 0.5668 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.1815, allocations: 0 / 0.5668 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.1815, allocations: 4 kB / 0.5668 GB, free: 9.816 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.1816, allocations: 3.984 kB / 0.5668 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.1828, allocations: 0.7207 MB / 0.5675 GB, free: 9.035 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.1828, allocations: 11.94 kB / 0.5675 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003022/0.1831, allocations: 51.89 kB / 0.5675 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1831, allocations: 4 kB / 0.5675 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.1831, allocations: 8 kB / 0.5675 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.1831, allocations: 0 / 0.5675 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1831, allocations: 0 / 0.5675 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009768/0.1841, allocations: 0.5343 MB / 0.5681 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.993e-05/0.1842, allocations: 108.8 kB / 0.5682 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.991e-05/0.1843, allocations: 12.06 kB / 0.5682 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.1844, allocations: 15.98 kB / 0.5682 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.884e-05/0.1845, allocations: 19.97 kB / 0.5682 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.817e-05/0.1846, allocations: 19.98 kB / 0.5682 GB, free: 8.219 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.1848, allocations: 186 kB / 0.5684 GB, free: 8.039 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1848, allocations: 0 / 0.5684 GB, free: 8.039 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004211/0.1852, allocations: 75.78 kB / 0.5685 GB, free: 7.965 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.0001858/0.1854, allocations: 115.2 kB / 0.5686 GB, free: 7.844 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007131/0.1861, allocations: 255.5 kB / 0.5688 GB, free: 7.594 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1861, allocations: 0 / 0.5688 GB, free: 7.594 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.1864, allocations: 115.8 kB / 0.5689 GB, free: 7.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.1868, allocations: 37.8 kB / 0.569 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.1883, allocations: 0.6368 MB / 0.5696 GB, free: 6.777 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007361/0.189, allocations: 0.7881 MB / 0.5704 GB, free: 5.957 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002014/0.1892, allocations: 42.95 kB / 0.5704 GB, free: 5.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.1893, allocations: 35.42 kB / 0.5704 GB, free: 5.883 MB / 430.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1893, allocations: 0 / 0.5704 GB, free: 5.883 MB / 430.1 MB Notification: Performance of Templates: time 0.00881/0.1981, allocations: 2.804 MB / 0.5732 GB, free: 3.094 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/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: 5.511300407350063]