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.001056/0.001056, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.0009805/0.0009805, allocations: 156.5 kB / 24.55 MB, free: 20 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.014/1.014, allocations: 177 MB / 204.8 MB, free: 5.578 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.2919/0.2919, allocations: 34.86 MB / 296.3 MB, free: 484 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.342e-06/1.342e-06, allocations: 0 / 378.7 MB, free: 2.066 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.962e-05/2.096e-05, allocations: 2.312 kB / 378.8 MB, free: 2.062 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00924/0.009261, allocations: 2.267 MB / 381 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006643/0.0159, allocations: 0.8839 MB / 381.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.01611, allocations: 11.88 kB / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.01628, allocations: 43.53 kB / 382 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.01653, allocations: 75.31 kB / 382 MB, free: 14.76 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.01696, allocations: 183.5 kB / 382.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.01735, allocations: 390.8 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.01756, allocations: 84.84 kB / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003312/0.01789, allocations: 235.3 kB / 382.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.01808, allocations: 119.6 kB / 383 MB, free: 13.77 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.01813, allocations: 36 kB / 383.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.01824, allocations: 63.91 kB / 383.1 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.895e-05/0.01832, allocations: 83.67 kB / 383.2 MB, free: 13.59 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.01845, allocations: 111.7 kB / 383.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003974/0.01884, allocations: 282.9 kB / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.01885, allocations: 4 kB / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.01885, allocations: 0 / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.01886, allocations: 3.938 kB / 383.6 MB, free: 13.19 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.001086/0.01994, allocations: 0.8327 MB / 384.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.01998, allocations: 12.02 kB / 384.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004032/0.02039, allocations: 100.6 kB / 384.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.02081, allocations: 309 kB / 384.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.02084, allocations: 21.03 kB / 384.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.0209, allocations: 48.33 kB / 384.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003389/0.02429, allocations: 207.3 kB / 385.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.0243, allocations: 192 / 385.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.02433, allocations: 20.11 kB / 385.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.02433, allocations: 4 kB / 385.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.02454, allocations: 91.86 kB / 385.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.02563, allocations: 0.7143 MB / 385.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002776/0.0259, allocations: 149.5 kB / 386.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.026, allocations: 55.64 kB / 386.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.02604, allocations: 4 kB / 386.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.02632, allocations: 184.8 kB / 386.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.593e-06/0.02633, allocations: 0 / 386.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004478/0.02677, allocations: 266 kB / 386.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.02681, allocations: 59.41 kB / 386.6 MB, free: 9.969 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/0.03004, allocations: 306.3 kB / 386.9 MB, free: 9.656 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.03008, allocations: 33.7 kB / 387 MB, free: 9.617 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.03019, allocations: 235.4 kB / 387.2 MB, free: 9.379 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.623e-05/0.03027, allocations: 95.22 kB / 387.3 MB, free: 9.285 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.03037, allocations: 83.72 kB / 387.4 MB, free: 9.191 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.03052, allocations: 0.5118 MB / 387.9 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.983e-05/0.03062, allocations: 44.72 kB / 387.9 MB, free: 8.625 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.03082, allocations: 235.1 kB / 388.2 MB, free: 8.312 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003376/0.03115, allocations: 309.4 kB / 388.5 MB, free: 7.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.03116, allocations: 7.938 kB / 388.5 MB, free: 7.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004364/0.0316, allocations: 304.9 kB / 388.8 MB, free: 7.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.03161, allocations: 8 kB / 388.8 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.03162, allocations: 4 kB / 388.8 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.03164, allocations: 7.938 kB / 388.8 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.03189, allocations: 79.89 kB / 388.9 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.0319, allocations: 12.41 kB / 388.9 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.03202, allocations: 35.78 kB / 388.9 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.03205, allocations: 19.98 kB / 388.9 MB, free: 7.449 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.0001251/0.03217, allocations: 188.4 kB / 389.1 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.052e-05/0.03222, allocations: 39.95 kB / 389.2 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003878/0.03261, allocations: 240.4 kB / 389.4 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.03261, allocations: 7.938 kB / 389.4 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.03262, allocations: 4 kB / 389.4 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.03262, allocations: 3.984 kB / 389.4 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003651/0.03627, allocations: 0.5674 MB / 390 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.03628, allocations: 3.984 kB / 390 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.03646, allocations: 43.98 kB / 390 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.03647, allocations: 11.86 kB / 390 MB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.03649, allocations: 8 kB / 390 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.03649, allocations: 4 kB / 390 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.0365, allocations: 3.938 kB / 390 MB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000512/0.03701, allocations: 444 kB / 390.5 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.03704, allocations: 35.73 kB / 390.5 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.004e-05/0.03708, allocations: 15.94 kB / 390.5 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.03719, allocations: 11.98 kB / 390.5 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.03724, allocations: 19.97 kB / 390.6 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.03725, allocations: 11.98 kB / 390.6 MB, free: 5.727 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001147/0.03737, allocations: 215 kB / 390.8 MB, free: 5.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03737, allocations: 0 / 390.8 MB, free: 5.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.03762, allocations: 75.83 kB / 390.9 MB, free: 5.445 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.0001052/0.03772, allocations: 111.2 kB / 391 MB, free: 5.328 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002565/0.03798, allocations: 180 kB / 391.1 MB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.03798, allocations: 0 / 391.1 MB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.03809, allocations: 87.58 kB / 391.2 MB, free: 5.059 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.03833, allocations: 45.89 kB / 391.3 MB, free: 5.016 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009052/0.03924, allocations: 0.5926 MB / 391.9 MB, free: 4.387 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.284e-05/0.0393, allocations: 105.5 kB / 392 MB, free: 4.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.4e-05/0.03938, allocations: 43.22 kB / 392 MB, free: 4.219 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/0.03944, allocations: 28.5 kB / 392 MB, free: 4.191 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/0.03944, allocations: 0 / 392 MB, free: 4.191 MB / 362.7 MB Notification: Performance of Templates: time 0.004893/0.04434, allocations: 2.787 MB / 394.8 MB, free: 1.449 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.325551829766482]