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.001933/0.001933, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002106/0.002106, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 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 1.591/1.591, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 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.3415/0.3415, allocations: 34.26 MB / 295.2 MB, free: 0.6484 MB / 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.793e-06/1.793e-06, allocations: 0 / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.188e-05/4.367e-05, allocations: 6.25 kB / 377.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003892/0.003936, allocations: 2.233 MB / 379.4 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.005802, allocations: 0.8723 MB / 380.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.005953, allocations: 7.938 kB / 380.3 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.006117, allocations: 39.53 kB / 380.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.00637, allocations: 75.31 kB / 380.4 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.006806, allocations: 183.5 kB / 380.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000492/0.007298, allocations: 398.8 kB / 381 MB, free: 15.1 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.007527, allocations: 84.83 kB / 381.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004673/0.007994, allocations: 219.5 kB / 381.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.008223, allocations: 123.6 kB / 381.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.008293, allocations: 40 kB / 381.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.008416, allocations: 55.92 kB / 381.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.008529, allocations: 91.59 kB / 381.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.008686, allocations: 115.7 kB / 381.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.009291, allocations: 422.6 kB / 382.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.009295, allocations: 0 / 382.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.009296, allocations: 0 / 382.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.009302, allocations: 0 / 382.1 MB, free: 13.97 MB / 362.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.001502/0.0108, allocations: 0.9261 MB / 383.1 MB, free: 12.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.01085, allocations: 8.031 kB / 383.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005122/0.01136, allocations: 104.5 kB / 383.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.01195, allocations: 305.1 kB / 383.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.633e-05/0.01199, allocations: 29.02 kB / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.767e-05/0.01205, allocations: 36.33 kB / 383.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005192/0.01257, allocations: 250.6 kB / 383.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.01259, allocations: 4.125 kB / 383.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.01263, allocations: 16.12 kB / 383.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.01264, allocations: 4 kB / 383.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.01307, allocations: 158.5 kB / 384 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.01467, allocations: 0.7962 MB / 384.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005815/0.01525, allocations: 191.3 kB / 384.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.01545, allocations: 83.64 kB / 385 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.01549, allocations: 8 kB / 385 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004506/0.01594, allocations: 224.8 kB / 385.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.013e-06/0.01594, allocations: 0 / 385.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008881/0.01683, allocations: 362 kB / 385.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.01689, allocations: 59.41 kB / 385.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004089/0.0173, allocations: 374.3 kB / 386 MB, free: 9.887 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.567e-05/0.01734, allocations: 37.7 kB / 386.1 MB, free: 9.844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.01755, allocations: 243.4 kB / 386.3 MB, free: 9.598 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.01766, allocations: 107.2 kB / 386.4 MB, free: 9.492 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.01782, allocations: 87.72 kB / 386.5 MB, free: 9.395 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003127/0.01813, allocations: 0.5391 MB / 387 MB, free: 8.844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.01834, allocations: 76.7 kB / 387.1 MB, free: 8.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005222/0.01886, allocations: 279.1 kB / 387.4 MB, free: 8.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006223/0.01948, allocations: 393.4 kB / 387.8 MB, free: 7.945 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.01948, allocations: 0 / 387.8 MB, free: 7.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007573/0.02024, allocations: 381.2 kB / 388.1 MB, free: 7.566 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.02026, allocations: 4 kB / 388.1 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.02027, allocations: 8 kB / 388.1 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.02029, allocations: 7.938 kB / 388.1 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.02063, allocations: 83.83 kB / 388.2 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.462e-05/0.02065, allocations: 8 kB / 388.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.02084, allocations: 31.77 kB / 388.3 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.02087, allocations: 20 kB / 388.3 MB, free: 7.406 MB / 362.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.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.0002507/0.02112, allocations: 216.5 kB / 388.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.963e-05/0.0212, allocations: 43.8 kB / 388.5 MB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000705/0.0219, allocations: 300.4 kB / 388.8 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.02191, allocations: 7.938 kB / 388.8 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.02192, allocations: 0 / 388.8 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.02192, allocations: 0 / 388.8 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.023, allocations: 0.6885 MB / 389.5 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.023, allocations: 4 kB / 389.5 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.02326, allocations: 47.91 kB / 389.6 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.02326, allocations: 3.938 kB / 389.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.483e-05/0.0233, allocations: 15.98 kB / 389.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.0233, allocations: 0 / 389.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.0233, allocations: 0 / 389.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009665/0.02427, allocations: 0.5546 MB / 390.2 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.02432, allocations: 27.75 kB / 390.2 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/0.02437, allocations: 19.94 kB / 390.2 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.02455, allocations: 11.98 kB / 390.2 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.093e-05/0.02463, allocations: 23.95 kB / 390.2 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/0.02466, allocations: 19.92 kB / 390.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002522/0.02491, allocations: 250.9 kB / 390.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.02491, allocations: 0 / 390.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003996/0.02531, allocations: 71.84 kB / 390.6 MB, free: 5.043 MB / 362.7 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.0001453/0.02546, allocations: 107.2 kB / 390.7 MB, free: 4.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000599/0.02606, allocations: 260 kB / 390.9 MB, free: 4.672 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.02606, allocations: 0 / 390.9 MB, free: 4.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002784/0.02634, allocations: 131.5 kB / 391.1 MB, free: 4.539 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.02674, allocations: 54.2 kB / 391.1 MB, free: 4.488 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.02795, allocations: 0.6202 MB / 391.7 MB, free: 3.832 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.02828, allocations: 182.1 kB / 391.9 MB, free: 3.637 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.02843, allocations: 47.22 kB / 392 MB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.02853, allocations: 36.48 kB / 392 MB, free: 3.551 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02853, allocations: 0 / 392 MB, free: 3.551 MB / 362.7 MB Notification: Performance of Templates: time 0.007991/0.03652, allocations: 2.778 MB / 394.8 MB, free: 0.8086 MB / 362.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","/var/lib/jenkins/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: 4.952989341923967]