Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 106.1 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 195.3 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 242.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2204/0.2204, allocations: 44.18 MB / 337.3 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 68.42 kB / 409.1 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1179, allocations: 60.81 MB / 469.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003521/0.1215, allocations: 2.232 MB / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1228, allocations: 0.7791 MB / 472.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.123, allocations: 4 kB / 472.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.1231, allocations: 39.53 kB / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000204/0.1233, allocations: 47.47 kB / 473 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.1237, allocations: 155.7 kB / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.124, allocations: 367.1 kB / 473.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.1243, allocations: 132.2 kB / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.1245, allocations: 143.4 kB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.1247, allocations: 159.2 kB / 474 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.266e-05/0.1247, allocations: 32 kB / 474 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.131e-05/0.1248, allocations: 36 kB / 474 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.452e-05/0.1249, allocations: 83.73 kB / 474.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.1251, allocations: 171 kB / 474.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003466/0.1254, allocations: 363 kB / 474.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1254, allocations: 0 / 474.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1254, allocations: 0 / 474.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1255, allocations: 0 / 474.6 MB, free: 9.676 MB / 350.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.00113/0.1266, allocations: 0.6343 MB / 475.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1266, allocations: 8.031 kB / 475.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.061e-05/0.1267, allocations: 40.55 kB / 475.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000468/0.1272, allocations: 327.2 kB / 475.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.1272, allocations: 24.94 kB / 475.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.1273, allocations: 36.36 kB / 475.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/0.1278, allocations: 265 kB / 475.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1278, allocations: 3.906 kB / 475.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.1279, allocations: 15.98 kB / 476 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.1279, allocations: 8 kB / 476 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.1283, allocations: 190.1 kB / 476.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.1297, allocations: 0.8147 MB / 477 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004309/0.1301, allocations: 194.9 kB / 477.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.1303, allocations: 108.7 kB / 477.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.1304, allocations: 11.92 kB / 477.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000422/0.1308, allocations: 223.2 kB / 477.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.154e-06/0.1308, allocations: 0 / 477.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008069/0.1316, allocations: 365.2 kB / 477.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.1317, allocations: 67.39 kB / 477.9 MB, free: 6.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.1319, allocations: 232.9 kB / 478.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.132, allocations: 37.7 kB / 478.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1321, allocations: 176.4 kB / 478.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.1322, allocations: 94.7 kB / 478.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.1323, allocations: 70.06 kB / 478.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1325, allocations: 342.8 kB / 478.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.1327, allocations: 88.7 kB / 478.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.133, allocations: 222.4 kB / 479.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004989/0.1335, allocations: 344.8 kB / 479.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1335, allocations: 3.984 kB / 479.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006411/0.1342, allocations: 372.6 kB / 479.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.1342, allocations: 4 kB / 479.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1342, allocations: 8.469 kB / 479.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1342, allocations: 4 kB / 479.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.1345, allocations: 83.83 kB / 480 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.1345, allocations: 8 kB / 480 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.1347, allocations: 35.67 kB / 480 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.1348, allocations: 16 kB / 480 MB, free: 3.93 MB / 350.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.0001714/0.1349, allocations: 171.5 kB / 480.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.37e-05/0.135, allocations: 31.66 kB / 480.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006282/0.1356, allocations: 320.3 kB / 480.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.1356, allocations: 11.98 kB / 480.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1356, allocations: 0 / 480.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1357, allocations: 3.984 kB / 480.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009452/0.1366, allocations: 0.7128 MB / 481.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1366, allocations: 0 / 481.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000278/0.1369, allocations: 55.89 kB / 481.3 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1369, allocations: 4 kB / 481.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.1369, allocations: 8 kB / 481.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.137, allocations: 0 / 481.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.137, allocations: 3.984 kB / 481.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008295/0.1378, allocations: 0.5267 MB / 481.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.271e-05/0.1379, allocations: 104.8 kB / 482 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.1379, allocations: 8.062 kB / 482 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1381, allocations: 11.98 kB / 482 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.949e-05/0.1382, allocations: 23.97 kB / 482 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.1382, allocations: 23.92 kB / 482 MB, free: 1.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001522/0.1384, allocations: 164.5 kB / 482.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1384, allocations: 0 / 482.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000362/0.1388, allocations: 71.84 kB / 482.2 MB, free: 1.59 MB / 350.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.0001226/0.1389, allocations: 111.2 kB / 482.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006195/0.1395, allocations: 291.4 kB / 482.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1395, allocations: 0 / 482.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.1398, allocations: 131.8 kB / 482.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.1401, allocations: 38.81 kB / 482.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.1412, allocations: 0.6288 MB / 483.4 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.1416, allocations: 0.7881 MB / 484.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.217e-05/0.1417, allocations: 39.42 kB / 484.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1417, allocations: 0 / 484.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of Templates: time 0.005543/0.1473, allocations: 3.604 MB / 487.9 MB, free: 11.91 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches