Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001348/0.001348, allocations: 116.7 kB / 19.17 MB, free: 3.871 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.001419/0.001419, allocations: 206.6 kB / 22.12 MB, free: 0.9219 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.574/1.574, allocations: 230.3 MB / 255.2 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.238/0.238, allocations: 46.92 MB / 358.2 MB, free: 10.39 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.Blocks.Mean") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002448/0.002448, allocations: 79.88 kB / 0.4925 GB, free: 7.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1247, allocations: 66 MB / 0.557 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003921/0.1286, allocations: 2.324 MB / 0.5592 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.1304, allocations: 0.9113 MB / 0.5601 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.1306, allocations: 7.938 kB / 0.5601 GB, free: 2.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.1308, allocations: 39.53 kB / 0.5602 GB, free: 2.176 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.1311, allocations: 63.41 kB / 0.5602 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.1316, allocations: 187.6 kB / 0.5604 GB, free: 1.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005302/0.1321, allocations: 390.9 kB / 0.5608 GB, free: 1.547 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002509/0.1323, allocations: 100.1 kB / 0.5609 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002955/0.1326, allocations: 151.4 kB / 0.561 GB, free: 1.301 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.1329, allocations: 171.1 kB / 0.5612 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.512e-05/0.133, allocations: 40 kB / 0.5612 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1331, allocations: 52 kB / 0.5613 GB, free: 1.043 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1332, allocations: 91.67 kB / 0.5614 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.1334, allocations: 171 kB / 0.5615 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005189/0.1339, allocations: 414.3 kB / 0.5619 GB, free: 388 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1339, allocations: 0 / 0.5619 GB, free: 388 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1339, allocations: 0 / 0.5619 GB, free: 388 kB / 414.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.1339, allocations: 0 / 0.5619 GB, free: 388 kB / 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.001315/0.1352, allocations: 0.6689 MB / 0.5626 GB, free: 15.66 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1353, allocations: 12.03 kB / 0.5626 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000517/0.1358, allocations: 80.61 kB / 0.5627 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005938/0.1364, allocations: 364.1 kB / 0.563 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.1364, allocations: 24.94 kB / 0.563 GB, free: 15.15 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/0.1365, allocations: 32.38 kB / 0.5631 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005759/0.137, allocations: 268.9 kB / 0.5633 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.1371, allocations: 11.89 kB / 0.5633 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.1371, allocations: 12 kB / 0.5633 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.1371, allocations: 8 kB / 0.5633 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.1376, allocations: 190.1 kB / 0.5635 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.1391, allocations: 0.8268 MB / 0.5643 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004394/0.1395, allocations: 186.8 kB / 0.5645 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.1398, allocations: 88.81 kB / 0.5646 GB, free: 13.47 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.1398, allocations: 15.92 kB / 0.5646 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004473/0.1403, allocations: 235 kB / 0.5648 GB, free: 13.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.693e-06/0.1403, allocations: 4 kB / 0.5648 GB, free: 13.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008992/0.1412, allocations: 365.3 kB / 0.5652 GB, free: 12.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.1412, allocations: 63.39 kB / 0.5652 GB, free: 12.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.1415, allocations: 266.9 kB / 0.5655 GB, free: 12.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.3e-05/0.1416, allocations: 37.7 kB / 0.5655 GB, free: 12.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.1417, allocations: 184.7 kB / 0.5657 GB, free: 12.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.1418, allocations: 107.1 kB / 0.5658 GB, free: 12.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.1419, allocations: 74.06 kB / 0.5659 GB, free: 12.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1421, allocations: 342.8 kB / 0.5662 GB, free: 11.74 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.1423, allocations: 88.7 kB / 0.5663 GB, free: 11.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000331/0.1427, allocations: 227.1 kB / 0.5665 GB, free: 11.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005993/0.1433, allocations: 348.8 kB / 0.5668 GB, free: 10.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1433, allocations: 0 / 0.5668 GB, free: 10.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007605/0.144, allocations: 385.3 kB / 0.5672 GB, free: 10.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1441, allocations: 8 kB / 0.5672 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1441, allocations: 4 kB / 0.5672 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.1441, allocations: 8 kB / 0.5672 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003149/0.1444, allocations: 75.83 kB / 0.5673 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.1444, allocations: 4 kB / 0.5673 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.1446, allocations: 35.78 kB / 0.5673 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.1446, allocations: 19.98 kB / 0.5674 GB, free: 10.44 MB / 430.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.0002027/0.1449, allocations: 166.8 kB / 0.5675 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.1449, allocations: 43.69 kB / 0.5676 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007132/0.1456, allocations: 316.4 kB / 0.5679 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.1456, allocations: 7.938 kB / 0.5679 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1456, allocations: 0 / 0.5679 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.1456, allocations: 7.984 kB / 0.5679 GB, free: 9.883 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.1467, allocations: 0.7207 MB / 0.5686 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1468, allocations: 0 / 0.5686 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.147, allocations: 47.91 kB / 0.5686 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.147, allocations: 3.984 kB / 0.5686 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.147, allocations: 12 kB / 0.5686 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.147, allocations: 0 / 0.5686 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.147, allocations: 8 kB / 0.5687 GB, free: 9.035 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009692/0.148, allocations: 0.5266 MB / 0.5692 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.708e-05/0.1481, allocations: 116.8 kB / 0.5693 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/0.1481, allocations: 8 kB / 0.5693 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.1483, allocations: 11.98 kB / 0.5693 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/0.1484, allocations: 27.97 kB / 0.5693 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/0.1484, allocations: 15.98 kB / 0.5693 GB, free: 8.297 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002006/0.1486, allocations: 182 kB / 0.5695 GB, free: 8.121 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1486, allocations: 0 / 0.5695 GB, free: 8.121 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003984/0.149, allocations: 79.77 kB / 0.5696 GB, free: 8.043 MB / 430.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.0001503/0.1492, allocations: 111.3 kB / 0.5697 GB, free: 7.926 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006077/0.1498, allocations: 259.5 kB / 0.5699 GB, free: 7.672 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.1498, allocations: 0 / 0.5699 GB, free: 7.672 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.1501, allocations: 123.8 kB / 0.5701 GB, free: 7.551 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.1504, allocations: 37.8 kB / 0.5701 GB, free: 7.516 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.1516, allocations: 0.6655 MB / 0.5707 GB, free: 6.812 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.1521, allocations: 0.7841 MB / 0.5715 GB, free: 6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.1522, allocations: 39.42 kB / 0.5716 GB, free: 5.961 MB / 430.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1522, allocations: 0 / 0.5716 GB, free: 5.961 MB / 430.1 MB Notification: Performance of Templates: time 0.007247/0.1595, allocations: 3.93 MB / 0.5754 GB, free: 2.035 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.78431649900449]