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.0009743/0.0009743, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 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.001456/0.001456, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 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 0.9534/0.9534, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] 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.2473/0.2473, allocations: 34.86 MB / 296.6 MB, free: 400 kB / 266.7 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 1.773e-06/1.773e-06, allocations: 0 / 325.9 MB, free: 7.145 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.025e-05/2.202e-05, allocations: 2.312 kB / 325.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003597/0.003619, allocations: 2.25 MB / 328.1 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.005367, allocations: 0.9038 MB / 329.1 MB, free: 3.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.005552, allocations: 11.88 kB / 329.1 MB, free: 3.961 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.005711, allocations: 43.47 kB / 329.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002603/0.005972, allocations: 67.33 kB / 329.2 MB, free: 3.852 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005202/0.006492, allocations: 191.5 kB / 329.4 MB, free: 3.664 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004896/0.006982, allocations: 391.4 kB / 329.7 MB, free: 3.281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003203/0.007302, allocations: 99.39 kB / 329.8 MB, free: 3.184 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004126/0.007714, allocations: 231.4 kB / 330.1 MB, free: 2.957 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.007914, allocations: 115.6 kB / 330.2 MB, free: 2.844 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.277e-05/0.007967, allocations: 36 kB / 330.2 MB, free: 2.809 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.628e-05/0.008064, allocations: 55.97 kB / 330.3 MB, free: 2.754 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.475e-05/0.008138, allocations: 87.67 kB / 330.4 MB, free: 2.668 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.008257, allocations: 115.6 kB / 330.5 MB, free: 2.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.008652, allocations: 278.9 kB / 330.7 MB, free: 2.281 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.008655, allocations: 4 kB / 330.7 MB, free: 2.277 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.008656, allocations: 0 / 330.7 MB, free: 2.277 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.008661, allocations: 0 / 330.7 MB, free: 2.277 MB / 298.7 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.0008817/0.009543, allocations: 0.5546 MB / 331.3 MB, free: 1.699 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.00958, allocations: 12.03 kB / 331.3 MB, free: 1.688 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003809/0.00996, allocations: 92.78 kB / 331.4 MB, free: 1.598 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.01033, allocations: 245.7 kB / 331.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.01036, allocations: 21.03 kB / 331.7 MB, free: 1.316 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.698e-05/0.01042, allocations: 40.36 kB / 331.7 MB, free: 1.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.01071, allocations: 191.3 kB / 331.9 MB, free: 1.078 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.01073, allocations: 4.188 kB / 331.9 MB, free: 1.074 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.01075, allocations: 16.11 kB / 331.9 MB, free: 1.059 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.01076, allocations: 8 kB / 331.9 MB, free: 1.051 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.01089, allocations: 68.48 kB / 332 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009084/0.0118, allocations: 0.5074 MB / 332.5 MB, free: 464 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.01202, allocations: 111.2 kB / 332.6 MB, free: 344 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.069e-05/0.01209, allocations: 36.84 kB / 332.6 MB, free: 304 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.01212, allocations: 8 kB / 332.6 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.01235, allocations: 171.1 kB / 332.8 MB, free: 112 kB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.655e-06/0.01235, allocations: 0 / 332.8 MB, free: 112 kB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003394/0.01269, allocations: 166.4 kB / 333 MB, free: 15.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.01274, allocations: 59.34 kB / 333 MB, free: 15.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.01306, allocations: 247 kB / 333.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.01309, allocations: 37.7 kB / 333.3 MB, free: 15.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.438e-05/0.01319, allocations: 165.1 kB / 333.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.38e-05/0.01327, allocations: 103.1 kB / 333.6 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.01337, allocations: 70.02 kB / 333.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.01349, allocations: 354.7 kB / 334 MB, free: 14.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.616e-05/0.01356, allocations: 36.73 kB / 334 MB, free: 14.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.01371, allocations: 158.6 kB / 334.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.014, allocations: 257.2 kB / 334.4 MB, free: 14.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.01401, allocations: 0 / 334.4 MB, free: 14.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003376/0.01434, allocations: 225.2 kB / 334.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.01436, allocations: 8 kB / 334.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.01437, allocations: 4 kB / 334.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.01439, allocations: 8 kB / 334.7 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.01463, allocations: 79.83 kB / 334.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/0.01464, allocations: 11.94 kB / 334.8 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.01477, allocations: 31.83 kB / 334.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.01479, allocations: 12.34 kB / 334.8 MB, free: 13.93 MB / 314.7 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.0001247/0.01491, allocations: 148.5 kB / 334.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.01496, allocations: 31.91 kB / 335 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002837/0.01524, allocations: 171.9 kB / 335.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.01524, allocations: 4 kB / 335.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.01525, allocations: 3.938 kB / 335.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.01525, allocations: 0 / 335.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000486/0.01574, allocations: 398.9 kB / 335.5 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.01574, allocations: 0 / 335.5 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.01593, allocations: 43.91 kB / 335.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.01593, allocations: 4 kB / 335.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.01595, allocations: 4 kB / 335.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.615e-06/0.01596, allocations: 7.984 kB / 335.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.01597, allocations: 3.938 kB / 335.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003984/0.01636, allocations: 302.6 kB / 335.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.0164, allocations: 27.81 kB / 335.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/0.01645, allocations: 16 kB / 335.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.01658, allocations: 19.92 kB / 336 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/0.01663, allocations: 23.91 kB / 336 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.01666, allocations: 11.98 kB / 336 MB, free: 12.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001001/0.01676, allocations: 88.64 kB / 336.1 MB, free: 12.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01676, allocations: 0 / 336.1 MB, free: 12.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004026/0.01716, allocations: 71.83 kB / 336.1 MB, free: 12.51 MB / 314.7 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.0001421/0.0173, allocations: 102.2 kB / 336.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002496/0.01755, allocations: 149.3 kB / 336.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.01756, allocations: 4 kB / 336.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.01767, allocations: 84.61 kB / 336.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.01794, allocations: 38.75 kB / 336.5 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.01919, allocations: 0.5877 MB / 337.1 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.572e-05/0.01927, allocations: 101.5 kB / 337.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001237/0.0194, allocations: 34.97 kB / 337.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.01956, allocations: 99.36 kB / 337.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01956, allocations: 0 / 337.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of Templates: time 0.006833/0.02639, allocations: 2.921 MB / 340.3 MB, free: 8.406 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8549520508386195]