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.00158/0.00158, allocations: 109.1 kB / 21.18 MB, free: 0.7852 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.001708/0.001708, allocations: 217.3 kB / 24.49 MB, free: 4.172 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.397/1.397, allocations: 230.5 MB / 258.1 MB, free: 8.027 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.2194/0.2194, allocations: 46.94 MB / 361.5 MB, free: 4.273 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.002261/0.002261, allocations: 79.86 kB / 0.4974 GB, free: 7.277 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3572, allocations: 66.07 MB / 0.5619 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003946/0.3612, allocations: 2.334 MB / 0.5642 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.3629, allocations: 0.9163 MB / 0.5651 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.363, allocations: 7.938 kB / 0.5651 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.3632, allocations: 43.47 kB / 0.5652 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.3634, allocations: 67.38 kB / 0.5652 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.3638, allocations: 191.6 kB / 0.5654 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004426/0.3643, allocations: 382.9 kB / 0.5658 GB, free: 320 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.3645, allocations: 104.6 kB / 0.5659 GB, free: 212 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.3648, allocations: 155.4 kB / 0.566 GB, free: 56 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.3651, allocations: 167.3 kB / 0.5662 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.884e-05/0.3651, allocations: 36 kB / 0.5662 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.3652, allocations: 48 kB / 0.5663 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.566e-05/0.3653, allocations: 91.61 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.3655, allocations: 167.1 kB / 0.5665 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005075/0.366, allocations: 416.8 kB / 0.5669 GB, free: 15.15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.366, allocations: 4 kB / 0.5669 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.366, allocations: 0 / 0.5669 GB, free: 15.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.366, allocations: 0 / 0.5669 GB, free: 15.14 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.00132/0.3674, allocations: 0.7304 MB / 0.5676 GB, free: 14.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3674, allocations: 12.03 kB / 0.5676 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004376/0.3678, allocations: 80.61 kB / 0.5677 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005477/0.3684, allocations: 291.1 kB / 0.568 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.3684, allocations: 29.03 kB / 0.568 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.208e-05/0.3685, allocations: 36.31 kB / 0.5681 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.369, allocations: 278 kB / 0.5683 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.369, allocations: 0 / 0.5683 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.3691, allocations: 15.98 kB / 0.5683 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3691, allocations: 8 kB / 0.5683 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004184/0.3695, allocations: 190.4 kB / 0.5685 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.3709, allocations: 0.7964 MB / 0.5693 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.3713, allocations: 192.1 kB / 0.5695 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.3715, allocations: 92.8 kB / 0.5696 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.3716, allocations: 7.938 kB / 0.5696 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004309/0.372, allocations: 239 kB / 0.5698 GB, free: 12.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.372, allocations: 0 / 0.5698 GB, free: 12.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008368/0.3728, allocations: 369.3 kB / 0.5702 GB, free: 11.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.3729, allocations: 59.41 kB / 0.5702 GB, free: 11.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002897/0.3732, allocations: 260.2 kB / 0.5705 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.3732, allocations: 37.69 kB / 0.5705 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.3734, allocations: 184.7 kB / 0.5707 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.3735, allocations: 103.2 kB / 0.5708 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.3736, allocations: 74.06 kB / 0.5709 GB, free: 10.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3738, allocations: 346.8 kB / 0.5712 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.374, allocations: 92.7 kB / 0.5713 GB, free: 10.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.3743, allocations: 226.5 kB / 0.5715 GB, free: 10.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005482/0.3748, allocations: 336.9 kB / 0.5718 GB, free: 9.816 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3748, allocations: 0 / 0.5718 GB, free: 9.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006723/0.3755, allocations: 392.6 kB / 0.5722 GB, free: 9.426 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3755, allocations: 8 kB / 0.5722 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3755, allocations: 4 kB / 0.5722 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.3756, allocations: 8.469 kB / 0.5722 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.3759, allocations: 79.89 kB / 0.5723 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.3759, allocations: 7.938 kB / 0.5723 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.3761, allocations: 39.77 kB / 0.5723 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.3761, allocations: 16 kB / 0.5723 GB, free: 9.266 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.0001962/0.3763, allocations: 165.7 kB / 0.5725 GB, free: 9.094 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.3763, allocations: 35.75 kB / 0.5725 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006522/0.377, allocations: 328.3 kB / 0.5728 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.377, allocations: 4 kB / 0.5728 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.377, allocations: 0 / 0.5728 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.377, allocations: 0 / 0.5728 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.378, allocations: 0.6886 MB / 0.5735 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.378, allocations: 7.922 kB / 0.5735 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.3783, allocations: 47.97 kB / 0.5736 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3783, allocations: 0 / 0.5736 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.3783, allocations: 8 kB / 0.5736 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3783, allocations: 0 / 0.5736 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3783, allocations: 3.984 kB / 0.5736 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008865/0.3792, allocations: 0.5349 MB / 0.5741 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.3792, allocations: 31.73 kB / 0.5741 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.837e-05/0.3793, allocations: 8.062 kB / 0.5741 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.3794, allocations: 12.11 kB / 0.5742 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.719e-05/0.3795, allocations: 31.89 kB / 0.5742 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.3795, allocations: 15.98 kB / 0.5742 GB, free: 7.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001891/0.3797, allocations: 187.1 kB / 0.5744 GB, free: 7.086 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3797, allocations: 4 kB / 0.5744 GB, free: 7.082 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.3801, allocations: 75.83 kB / 0.5745 GB, free: 7.008 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.0001493/0.3802, allocations: 107.2 kB / 0.5746 GB, free: 6.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005617/0.3808, allocations: 268.4 kB / 0.5748 GB, free: 6.633 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3808, allocations: 0 / 0.5748 GB, free: 6.633 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002476/0.381, allocations: 119.9 kB / 0.5749 GB, free: 6.516 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.3814, allocations: 37.17 kB / 0.575 GB, free: 6.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.3826, allocations: 0.6662 MB / 0.5756 GB, free: 5.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.383, allocations: 0.7962 MB / 0.5764 GB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.776e-05/0.3831, allocations: 35.42 kB / 0.5764 GB, free: 4.918 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3831, allocations: 0 / 0.5764 GB, free: 4.918 MB / 414.1 MB Notification: Performance of Templates: time 0.006733/0.3899, allocations: 3.916 MB / 0.5802 GB, free: 1.008 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: 7.835637307027355]