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.001369/0.001369, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001554/0.001554, allocations: 170.9 kB / 24.82 MB, free: 9.32 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 1.005/1.005, allocations: 177 MB / 205.1 MB, free: 5.48 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.254/0.254, allocations: 34.86 MB / 296.6 MB, free: 0.5 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.613e-06/1.613e-06, allocations: 0 / 379.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.418e-05/1.579e-05, allocations: 2.312 kB / 379.2 MB, free: 1.832 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002184/0.0022, allocations: 2.247 MB / 381.5 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.003217, allocations: 0.8839 MB / 382.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.00333, allocations: 7.938 kB / 382.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.003442, allocations: 35.53 kB / 382.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.003608, allocations: 75.27 kB / 382.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005787/0.004187, allocations: 187.5 kB / 382.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.004477, allocations: 394.8 kB / 383 MB, free: 13.99 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.004636, allocations: 84.84 kB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.004867, allocations: 239.3 kB / 383.4 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.005008, allocations: 119.6 kB / 383.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.014e-05/0.005049, allocations: 32 kB / 383.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.288e-05/0.005121, allocations: 55.92 kB / 383.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.647e-05/0.005178, allocations: 87.67 kB / 383.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 7.954e-05/0.005257, allocations: 111.7 kB / 383.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002549/0.005512, allocations: 286.8 kB / 384 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.005514, allocations: 0 / 384 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005515, allocations: 0 / 384 MB, free: 12.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.005518, allocations: 0 / 384 MB, free: 12.99 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.0007269/0.006245, allocations: 0.8442 MB / 384.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.006279, allocations: 8.031 kB / 384.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002501/0.006529, allocations: 104.5 kB / 385 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.00677, allocations: 288.4 kB / 385.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.006794, allocations: 25.03 kB / 385.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.00683, allocations: 36.33 kB / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.007044, allocations: 191.3 kB / 385.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.007056, allocations: 192 / 385.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.007076, allocations: 20.11 kB / 385.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.007083, allocations: 4 kB / 385.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.291e-05/0.007176, allocations: 68.53 kB / 385.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006906/0.007866, allocations: 0.6875 MB / 386.3 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.008038, allocations: 127.4 kB / 386.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.178e-05/0.00809, allocations: 47.59 kB / 386.5 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.008111, allocations: 4 kB / 386.5 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.008286, allocations: 176.8 kB / 386.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.008288, allocations: 4 kB / 386.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002971/0.008585, allocations: 230.2 kB / 386.9 MB, free: 9.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.008615, allocations: 71.27 kB / 386.9 MB, free: 9.914 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.008759, allocations: 298.2 kB / 387.2 MB, free: 9.605 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.008782, allocations: 41.7 kB / 387.3 MB, free: 9.559 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/0.008871, allocations: 243.3 kB / 387.5 MB, free: 9.312 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.632e-05/0.008927, allocations: 95.2 kB / 387.6 MB, free: 9.219 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.97e-05/0.008997, allocations: 83.67 kB / 387.7 MB, free: 9.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.009112, allocations: 0.5117 MB / 388.2 MB, free: 8.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.321e-05/0.009155, allocations: 32.72 kB / 388.2 MB, free: 8.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.009277, allocations: 227.1 kB / 388.4 MB, free: 8.266 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.009477, allocations: 293.4 kB / 388.7 MB, free: 7.895 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.00948, allocations: 4 kB / 388.7 MB, free: 7.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002565/0.009737, allocations: 288.8 kB / 389 MB, free: 7.602 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.009749, allocations: 8 kB / 389 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.009755, allocations: 4 kB / 389 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.009769, allocations: 8.469 kB / 389 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.009927, allocations: 79.84 kB / 389.1 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.009934, allocations: 11.92 kB / 389.1 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.764e-05/0.01001, allocations: 35.78 kB / 389.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.01003, allocations: 16 kB / 389.2 MB, free: 7.441 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 9.745e-05/0.01012, allocations: 188.4 kB / 389.4 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.01016, allocations: 35.81 kB / 389.4 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005027/0.01066, allocations: 232.4 kB / 389.6 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.01066, allocations: 7.938 kB / 389.6 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.01067, allocations: 3.938 kB / 389.6 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.01067, allocations: 3.984 kB / 389.6 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.01105, allocations: 0.5172 MB / 390.2 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01105, allocations: 0 / 390.2 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.01116, allocations: 43.97 kB / 390.2 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.01117, allocations: 4 kB / 390.2 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.01118, allocations: 11.98 kB / 390.2 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.01118, allocations: 3.938 kB / 390.2 MB, free: 6.352 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01118, allocations: 4 kB / 390.2 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.0115, allocations: 415.9 kB / 390.6 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.249e-05/0.01153, allocations: 31.75 kB / 390.7 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.01155, allocations: 8 kB / 390.7 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.818e-05/0.01163, allocations: 15.92 kB / 390.7 MB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.01167, allocations: 23.95 kB / 390.7 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.01168, allocations: 15.98 kB / 390.7 MB, free: 5.828 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.104e-05/0.01177, allocations: 202.9 kB / 390.9 MB, free: 5.629 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01177, allocations: 0 / 390.9 MB, free: 5.629 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000211/0.01198, allocations: 71.84 kB / 391 MB, free: 5.559 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 7.73e-05/0.01205, allocations: 115.3 kB / 391.1 MB, free: 5.438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001814/0.01224, allocations: 164 kB / 391.3 MB, free: 5.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-06/0.01224, allocations: 4.938 kB / 391.3 MB, free: 5.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.985e-05/0.01232, allocations: 79.56 kB / 391.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.01254, allocations: 56.12 kB / 391.4 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006732/0.01321, allocations: 0.5809 MB / 392 MB, free: 4.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.788e-05/0.01327, allocations: 101.5 kB / 392.1 MB, free: 4.398 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.729e-05/0.01335, allocations: 38.95 kB / 392.1 MB, free: 4.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.01346, allocations: 126.2 kB / 392.2 MB, free: 4.234 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01346, allocations: 0 / 392.2 MB, free: 4.234 MB / 362.7 MB Notification: Performance of Templates: time 0.00454/0.018, allocations: 3.001 MB / 395.2 MB, free: 1.281 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: 2.910646107979119]