Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 105 kB / 20.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 221.8 kB / 23.76 MB, free: 4.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.294/1.294, allocations: 207.6 MB / 234.5 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2027/0.2027, allocations: 44.24 MB / 331 MB, free: 9.52 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 75.88 kB / 468.7 MB, free: 4.012 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1104, allocations: 61.04 MB / 0.5174 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003827/0.1142, allocations: 2.258 MB / 0.5196 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.1157, allocations: 0.8228 MB / 0.5204 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.1159, allocations: 11.88 kB / 0.5204 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.1161, allocations: 39.53 kB / 0.5204 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002433/0.1163, allocations: 59.45 kB / 0.5205 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.1167, allocations: 147.7 kB / 0.5206 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004778/0.1172, allocations: 351 kB / 0.521 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002417/0.1174, allocations: 92.8 kB / 0.521 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.1176, allocations: 143.4 kB / 0.5212 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.1179, allocations: 151.3 kB / 0.5213 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-05/0.1179, allocations: 35.98 kB / 0.5214 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.368e-05/0.118, allocations: 32 kB / 0.5214 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.1181, allocations: 79.64 kB / 0.5215 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.1183, allocations: 163.2 kB / 0.5216 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004143/0.1187, allocations: 358.5 kB / 0.522 GB, free: 2.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1187, allocations: 0 / 0.522 GB, free: 2.098 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1187, allocations: 3.938 kB / 0.522 GB, free: 2.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.1187, allocations: 0 / 0.522 GB, free: 2.094 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001269/0.12, allocations: 0.6758 MB / 0.5226 GB, free: 1.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.12, allocations: 8.031 kB / 0.5226 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.791e-05/0.1201, allocations: 40.7 kB / 0.5227 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.1206, allocations: 273.4 kB / 0.5229 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.1207, allocations: 24.88 kB / 0.523 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-05/0.1207, allocations: 32.33 kB / 0.523 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004929/0.1212, allocations: 252.1 kB / 0.5232 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.1212, allocations: 0 / 0.5232 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.1213, allocations: 15.98 kB / 0.5232 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.1213, allocations: 4 kB / 0.5232 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.1217, allocations: 189.9 kB / 0.5234 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.123, allocations: 0.7329 MB / 0.5241 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003984/0.1234, allocations: 186.8 kB / 0.5243 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.1236, allocations: 84.81 kB / 0.5244 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.1236, allocations: 11.92 kB / 0.5244 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003935/0.124, allocations: 235.1 kB / 0.5246 GB, free: 15.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.124, allocations: 0 / 0.5246 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007846/0.1248, allocations: 373.3 kB / 0.525 GB, free: 14.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.1248, allocations: 55.41 kB / 0.525 GB, free: 14.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.1251, allocations: 233.1 kB / 0.5253 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.1251, allocations: 37.69 kB / 0.5253 GB, free: 14.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1252, allocations: 176.7 kB / 0.5255 GB, free: 14.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.601e-05/0.1253, allocations: 95.22 kB / 0.5256 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1254, allocations: 74.06 kB / 0.5256 GB, free: 14.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002513/0.1257, allocations: 342.8 kB / 0.526 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.1259, allocations: 92.62 kB / 0.5261 GB, free: 13.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/0.1262, allocations: 222.3 kB / 0.5263 GB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000516/0.1267, allocations: 348.7 kB / 0.5266 GB, free: 13.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.1267, allocations: 4 kB / 0.5266 GB, free: 13.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006996/0.1274, allocations: 364.9 kB / 0.5269 GB, free: 12.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.1274, allocations: 8.469 kB / 0.527 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1274, allocations: 11.94 kB / 0.527 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.1275, allocations: 8 kB / 0.527 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.1277, allocations: 67.89 kB / 0.527 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.043e-05/0.1278, allocations: 11.94 kB / 0.527 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.1279, allocations: 43.7 kB / 0.5271 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.128, allocations: 20 kB / 0.5271 GB, free: 12.5 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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * 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.0001778/0.1281, allocations: 169.5 kB / 0.5273 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.228e-05/0.1282, allocations: 31.81 kB / 0.5273 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006336/0.1288, allocations: 319.3 kB / 0.5276 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1288, allocations: 0 / 0.5276 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1288, allocations: 8 kB / 0.5276 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1288, allocations: 0 / 0.5276 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009155/0.1297, allocations: 0.6846 MB / 0.5283 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1298, allocations: 0 / 0.5283 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.13, allocations: 47.95 kB / 0.5283 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.13, allocations: 0 / 0.5283 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.13, allocations: 11.94 kB / 0.5283 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.13, allocations: 0 / 0.5283 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.13, allocations: 4 kB / 0.5283 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008358/0.1309, allocations: 0.5227 MB / 0.5289 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.1309, allocations: 31.73 kB / 0.5289 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.367e-05/0.131, allocations: 12.06 kB / 0.5289 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.1311, allocations: 15.98 kB / 0.5289 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/0.1312, allocations: 23.95 kB / 0.5289 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.1312, allocations: 11.98 kB / 0.5289 GB, free: 10.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000152/0.1314, allocations: 168.5 kB / 0.5291 GB, free: 10.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1314, allocations: 0 / 0.5291 GB, free: 10.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.1317, allocations: 71.83 kB / 0.5292 GB, free: 10.3 MB / 414.1 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,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * 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.0001207/0.1318, allocations: 111.4 kB / 0.5293 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005319/0.1324, allocations: 259.5 kB / 0.5295 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1324, allocations: 0 / 0.5295 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.1326, allocations: 123.8 kB / 0.5296 GB, free: 9.809 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.1329, allocations: 40.33 kB / 0.5297 GB, free: 9.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.134, allocations: 0.6209 MB / 0.5303 GB, free: 9.117 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.1344, allocations: 0.7803 MB / 0.5311 GB, free: 8.309 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.643e-05/0.1345, allocations: 35.42 kB / 0.5311 GB, free: 8.273 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1345, allocations: 0 / 0.5311 GB, free: 8.273 MB / 414.1 MB Notification: Performance of Templates: time 0.006042/0.1405, allocations: 3.629 MB / 0.5346 GB, free: 4.645 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.02222262811847]