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.001714/0.001714, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002167/0.002167, allocations: 211.4 kB / 24.48 MB, free: 3.934 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.481/1.481, allocations: 230.5 MB / 258.1 MB, free: 7.785 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.223/0.223, allocations: 46.95 MB / 361.6 MB, free: 3.91 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: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002423/0.002423, allocations: 75.88 kB / 0.4974 GB, free: 7.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3479, allocations: 66.09 MB / 0.5619 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003853/0.3517, allocations: 2.177 MB / 0.564 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.3535, allocations: 0.8618 MB / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.3536, allocations: 7.938 kB / 0.5649 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.3538, allocations: 39.53 kB / 0.5649 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.354, allocations: 71.33 kB / 0.565 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.3545, allocations: 187.7 kB / 0.5652 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004558/0.3549, allocations: 386.9 kB / 0.5655 GB, free: 232 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.3552, allocations: 96.56 kB / 0.5656 GB, free: 132 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002724/0.3554, allocations: 155.4 kB / 0.5658 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.3557, allocations: 147.1 kB / 0.5659 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.3557, allocations: 40 kB / 0.566 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.3558, allocations: 47.98 kB / 0.566 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.928e-05/0.3559, allocations: 83.75 kB / 0.5661 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.3561, allocations: 147.2 kB / 0.5662 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.3566, allocations: 412.9 kB / 0.5666 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3566, allocations: 3.938 kB / 0.5666 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3566, allocations: 0 / 0.5666 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.3566, allocations: 0 / 0.5666 GB, free: 15.12 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.001329/0.3579, allocations: 0.7267 MB / 0.5673 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.358, allocations: 12.03 kB / 0.5673 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004761/0.3584, allocations: 84.61 kB / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005491/0.359, allocations: 298.9 kB / 0.5677 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.359, allocations: 25.03 kB / 0.5677 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.089e-05/0.3591, allocations: 40.33 kB / 0.5678 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005066/0.3596, allocations: 270.2 kB / 0.568 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.3596, allocations: 4 kB / 0.568 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.3596, allocations: 12 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.3596, allocations: 4 kB / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.3601, allocations: 194.4 kB / 0.5682 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.3614, allocations: 0.6643 MB / 0.5689 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.3618, allocations: 190.8 kB / 0.5691 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.362, allocations: 92.8 kB / 0.5692 GB, free: 12.4 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.362, allocations: 8 kB / 0.5692 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/0.3625, allocations: 231.1 kB / 0.5694 GB, free: 12.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.034e-06/0.3625, allocations: 0 / 0.5694 GB, free: 12.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008288/0.3633, allocations: 381.2 kB / 0.5697 GB, free: 11.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.3633, allocations: 59.41 kB / 0.5698 GB, free: 11.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.3636, allocations: 264.2 kB / 0.5701 GB, free: 11.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.3637, allocations: 37.7 kB / 0.5701 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3638, allocations: 180.7 kB / 0.5703 GB, free: 11.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.34e-05/0.3639, allocations: 103.2 kB / 0.5704 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.364, allocations: 70.06 kB / 0.5704 GB, free: 11.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3642, allocations: 346.8 kB / 0.5708 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.3644, allocations: 96.69 kB / 0.5708 GB, free: 10.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003163/0.3647, allocations: 222.6 kB / 0.5711 GB, free: 10.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005381/0.3652, allocations: 344.8 kB / 0.5714 GB, free: 9.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3652, allocations: 0 / 0.5714 GB, free: 9.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006813/0.3659, allocations: 380.8 kB / 0.5718 GB, free: 9.543 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.3659, allocations: 10.03 kB / 0.5718 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.366, allocations: 4 kB / 0.5718 GB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.366, allocations: 4.469 kB / 0.5718 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.3663, allocations: 83.92 kB / 0.5718 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.3663, allocations: 11.94 kB / 0.5719 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.3665, allocations: 35.77 kB / 0.5719 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.3665, allocations: 16 kB / 0.5719 GB, free: 9.383 MB / 414.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.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.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.0002105/0.3667, allocations: 169.6 kB / 0.5721 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.3668, allocations: 31.75 kB / 0.5721 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006874/0.3675, allocations: 336.5 kB / 0.5724 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3675, allocations: 4 kB / 0.5724 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3675, allocations: 0 / 0.5724 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.3675, allocations: 0 / 0.5724 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009298/0.3684, allocations: 0.615 MB / 0.573 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3684, allocations: 3.938 kB / 0.573 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.3687, allocations: 51.91 kB / 0.5731 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.3687, allocations: 4 kB / 0.5731 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.3687, allocations: 11.98 kB / 0.5731 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.3687, allocations: 0 / 0.5731 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3687, allocations: 4 kB / 0.5731 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00089/0.3696, allocations: 0.531 MB / 0.5736 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.827e-05/0.3697, allocations: 27.75 kB / 0.5736 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.021e-05/0.3697, allocations: 12.06 kB / 0.5737 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3699, allocations: 19.98 kB / 0.5737 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.37, allocations: 23.95 kB / 0.5737 GB, free: 7.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.716e-05/0.37, allocations: 11.98 kB / 0.5737 GB, free: 7.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.3702, allocations: 191.1 kB / 0.5739 GB, free: 7.277 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3702, allocations: 0 / 0.5739 GB, free: 7.277 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.3706, allocations: 71.84 kB / 0.574 GB, free: 7.207 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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.0001407/0.3707, allocations: 119.2 kB / 0.5741 GB, free: 7.082 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005528/0.3713, allocations: 247.6 kB / 0.5743 GB, free: 6.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3713, allocations: 0 / 0.5743 GB, free: 6.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.3715, allocations: 123.8 kB / 0.5744 GB, free: 6.719 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.3719, allocations: 42.03 kB / 0.5745 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.373, allocations: 0.6623 MB / 0.5751 GB, free: 5.984 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.3732, allocations: 181.9 kB / 0.5753 GB, free: 5.781 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.3733, allocations: 35.42 kB / 0.5753 GB, free: 5.746 MB / 414.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3733, allocations: 4 kB / 0.5753 GB, free: 5.742 MB / 414.1 MB Notification: Performance of Templates: time 0.006781/0.3801, allocations: 4.039 MB / 0.5793 GB, free: 1.703 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_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: 8.131066554225981]