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.001509/0.001509, allocations: 111.8 kB / 19.12 MB, free: 3.945 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.001726/0.001726, allocations: 212.9 kB / 22.08 MB, free: 0.9922 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.482/1.482, allocations: 227.5 MB / 252.3 MB, free: 56 kB / 190.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.2237/0.2237, allocations: 46.17 MB / 351.8 MB, free: 14.26 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|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 82.36 kB / 490.9 MB, free: 28.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1188, allocations: 62.45 MB / 0.5403 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004048/0.1229, allocations: 2.328 MB / 0.5426 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.1247, allocations: 0.8958 MB / 0.5435 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002345/0.125, allocations: 4 kB / 0.5435 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001846/0.1252, allocations: 39.47 kB / 0.5435 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.1255, allocations: 63.38 kB / 0.5436 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005427/0.1261, allocations: 183.6 kB / 0.5438 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005048/0.1266, allocations: 394.9 kB / 0.5441 GB, free: 316 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.1269, allocations: 128.1 kB / 0.5443 GB, free: 188 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/0.1272, allocations: 155.3 kB / 0.5444 GB, free: 32 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002456/0.1275, allocations: 171.2 kB / 0.5446 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.554e-05/0.1275, allocations: 36 kB / 0.5446 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.1277, allocations: 51.88 kB / 0.5447 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.973e-05/0.1278, allocations: 91.67 kB / 0.5447 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.128, allocations: 171 kB / 0.5449 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000535/0.1285, allocations: 410.3 kB / 0.5453 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1285, allocations: 0 / 0.5453 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.35e-06/0.1285, allocations: 4 kB / 0.5453 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.1285, allocations: 7.938 kB / 0.5453 GB, free: 15.11 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.001211/0.1298, allocations: 0.6678 MB / 0.546 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1298, allocations: 8.031 kB / 0.546 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004643/0.1303, allocations: 84.61 kB / 0.5461 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.1309, allocations: 348.2 kB / 0.5464 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.1309, allocations: 24.94 kB / 0.5464 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.18e-05/0.131, allocations: 36.36 kB / 0.5464 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005624/0.1315, allocations: 276.9 kB / 0.5467 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.1316, allocations: 7.938 kB / 0.5467 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.1316, allocations: 12 kB / 0.5467 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1316, allocations: 4 kB / 0.5467 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.1321, allocations: 190.1 kB / 0.5469 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.1335, allocations: 0.8229 MB / 0.5477 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.134, allocations: 214.8 kB / 0.5479 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.1343, allocations: 96.81 kB / 0.548 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.1343, allocations: 7.938 kB / 0.548 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004436/0.1348, allocations: 235.1 kB / 0.5482 GB, free: 11.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 4.038e-06/0.1348, allocations: 0 / 0.5482 GB, free: 11.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008705/0.1356, allocations: 373.8 kB / 0.5486 GB, free: 11.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.1357, allocations: 55.41 kB / 0.5487 GB, free: 11.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000319/0.136, allocations: 271 kB / 0.5489 GB, free: 11.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.1361, allocations: 33.7 kB / 0.5489 GB, free: 11.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.1363, allocations: 184.7 kB / 0.5491 GB, free: 11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.661e-05/0.1364, allocations: 99.17 kB / 0.5492 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.1365, allocations: 74.06 kB / 0.5493 GB, free: 10.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1367, allocations: 342.8 kB / 0.5496 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.1369, allocations: 88.7 kB / 0.5497 GB, free: 10.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.1372, allocations: 235 kB / 0.5499 GB, free: 10.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005772/0.1378, allocations: 348.8 kB / 0.5503 GB, free: 9.695 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1378, allocations: 0 / 0.5503 GB, free: 9.695 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00073/0.1386, allocations: 380.8 kB / 0.5506 GB, free: 9.316 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1386, allocations: 8 kB / 0.5506 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1386, allocations: 4 kB / 0.5506 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.1386, allocations: 8 kB / 0.5506 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/0.1389, allocations: 71.89 kB / 0.5507 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.139, allocations: 8.406 kB / 0.5507 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.1392, allocations: 43.77 kB / 0.5508 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.1392, allocations: 20 kB / 0.5508 GB, free: 9.156 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.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.0002227/0.1395, allocations: 165.8 kB / 0.5509 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.111e-05/0.1395, allocations: 39.7 kB / 0.551 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007639/0.1403, allocations: 328.3 kB / 0.5513 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1403, allocations: 4 kB / 0.5513 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1403, allocations: 0 / 0.5513 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1403, allocations: 0 / 0.5513 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.1415, allocations: 0.7284 MB / 0.552 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.1415, allocations: 0 / 0.552 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.1418, allocations: 51.97 kB / 0.552 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.1418, allocations: 0 / 0.552 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.1418, allocations: 11.98 kB / 0.5521 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1418, allocations: 0 / 0.5521 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1418, allocations: 4 kB / 0.5521 GB, free: 7.754 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009998/0.1428, allocations: 0.5343 MB / 0.5526 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.1429, allocations: 104.9 kB / 0.5527 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.7e-05/0.143, allocations: 8.062 kB / 0.5527 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.1432, allocations: 11.98 kB / 0.5527 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.343e-05/0.1433, allocations: 24.06 kB / 0.5527 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.1433, allocations: 19.92 kB / 0.5527 GB, free: 7.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.1435, allocations: 190 kB / 0.5529 GB, free: 6.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1436, allocations: 0 / 0.5529 GB, free: 6.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004232/0.144, allocations: 67.84 kB / 0.553 GB, free: 6.773 MB / 414.1 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.000164/0.1442, allocations: 120.2 kB / 0.5531 GB, free: 6.648 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006891/0.1449, allocations: 268.2 kB / 0.5534 GB, free: 6.387 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1449, allocations: 0 / 0.5534 GB, free: 6.387 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.1452, allocations: 132.1 kB / 0.5535 GB, free: 6.258 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.1456, allocations: 46.81 kB / 0.5535 GB, free: 6.215 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.1469, allocations: 0.6615 MB / 0.5542 GB, free: 5.516 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.1474, allocations: 0.7919 MB / 0.555 GB, free: 4.695 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.1475, allocations: 35.42 kB / 0.555 GB, free: 4.66 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1475, allocations: 0 / 0.555 GB, free: 4.66 MB / 414.1 MB Notification: Performance of Templates: time 0.007433/0.1549, allocations: 3.881 MB / 0.5588 GB, free: 0.7812 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.722951179021038]