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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 103 kB / 16.93 MB, free: 5.793 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.002127/0.002127, allocations: 191.3 kB / 17.86 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.239/0.239, allocations: 43.53 MB / 314.6 MB, free: 0.5195 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 64.58 kB / 383.4 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1211, allocations: 57.79 MB / 441.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003741/0.1249, allocations: 2.216 MB / 443.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.1265, allocations: 0.815 MB / 444.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003316/0.1268, allocations: 7.938 kB / 444.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.1271, allocations: 31.59 kB / 444.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003672/0.1275, allocations: 51.45 kB / 444.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/0.1279, allocations: 155.7 kB / 444.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.1282, allocations: 347.1 kB / 444.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.1285, allocations: 133.8 kB / 444.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.1286, allocations: 139.4 kB / 445.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.1288, allocations: 151.3 kB / 445.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.337e-05/0.1289, allocations: 35.94 kB / 445.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.1289, allocations: 35.94 kB / 445.3 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.981e-05/0.129, allocations: 79.69 kB / 445.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.1292, allocations: 155.2 kB / 445.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.1294, allocations: 350.8 kB / 445.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1295, allocations: 4 kB / 445.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1295, allocations: 0 / 445.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1295, allocations: 0 / 445.9 MB, free: 2.207 MB / 318.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.0009597/0.1304, allocations: 0.6067 MB / 446.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1305, allocations: 11.89 kB / 446.5 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.1306, allocations: 44.55 kB / 446.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.131, allocations: 327.1 kB / 446.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.131, allocations: 20.94 kB / 446.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.561e-05/0.1311, allocations: 32.28 kB / 446.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004238/0.1315, allocations: 264.9 kB / 447.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1315, allocations: 0 / 447.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.1315, allocations: 8 kB / 447.1 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1316, allocations: 8 kB / 447.2 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003591/0.1319, allocations: 186.1 kB / 447.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.1331, allocations: 0.7794 MB / 448.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/0.1335, allocations: 203.9 kB / 448.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.1337, allocations: 96.81 kB / 448.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.1338, allocations: 11.97 kB / 448.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000424/0.1342, allocations: 231 kB / 448.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.803e-06/0.1342, allocations: 0 / 448.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008264/0.1351, allocations: 370 kB / 449 MB, free: 14.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.1351, allocations: 63.39 kB / 449.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.1354, allocations: 229 kB / 449.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.1354, allocations: 37.7 kB / 449.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1355, allocations: 164.6 kB / 449.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.461e-05/0.1356, allocations: 98.55 kB / 449.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.1358, allocations: 78.06 kB / 449.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1359, allocations: 338.8 kB / 450 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.1361, allocations: 92.62 kB / 450.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.1364, allocations: 226.4 kB / 450.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005107/0.137, allocations: 344.7 kB / 450.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.137, allocations: 8 kB / 450.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006725/0.1376, allocations: 369.2 kB / 451 MB, free: 12.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1377, allocations: 12 kB / 451 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1377, allocations: 7.938 kB / 451 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.1377, allocations: 8 kB / 451 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.138, allocations: 67.91 kB / 451.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.948e-05/0.1381, allocations: 19.91 kB / 451.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.1383, allocations: 23.84 kB / 451.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/0.1383, allocations: 23.98 kB / 451.2 MB, free: 12.53 MB / 334.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.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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.0002067/0.1385, allocations: 169.6 kB / 451.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.106e-05/0.1386, allocations: 31.61 kB / 451.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000681/0.1393, allocations: 319.4 kB / 451.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1393, allocations: 4 kB / 451.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1393, allocations: 0 / 451.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.1393, allocations: 7.984 kB / 451.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009818/0.1403, allocations: 0.7049 MB / 452.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1403, allocations: 0 / 452.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.1406, allocations: 47.97 kB / 452.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.1406, allocations: 0 / 452.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.1406, allocations: 11.98 kB / 452.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.1406, allocations: 7.938 kB / 452.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1406, allocations: 4 kB / 452.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000877/0.1415, allocations: 0.5262 MB / 453 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.1416, allocations: 96.77 kB / 453.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.864e-05/0.1417, allocations: 8.062 kB / 453.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.1419, allocations: 24.11 kB / 453.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/0.1419, allocations: 19.97 kB / 453.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.142, allocations: 15.98 kB / 453.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.1421, allocations: 168.6 kB / 453.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1421, allocations: 3.938 kB / 453.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003737/0.1425, allocations: 67.75 kB / 453.4 MB, free: 10.21 MB / 334.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.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.0001369/0.1427, allocations: 111.4 kB / 453.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006368/0.1433, allocations: 283.9 kB / 453.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1433, allocations: 4 kB / 453.8 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002549/0.1436, allocations: 124.8 kB / 453.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.144, allocations: 44.59 kB / 453.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.1451, allocations: 0.6318 MB / 454.6 MB, free: 8.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.1455, allocations: 0.7801 MB / 455.4 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.929e-05/0.1456, allocations: 39.42 kB / 455.4 MB, free: 8.137 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1456, allocations: 0 / 455.4 MB, free: 8.137 MB / 334.1 MB Notification: Performance of Templates: time 0.006273/0.1519, allocations: 3.55 MB / 458.9 MB, free: 4.594 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (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) 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) Reference file matches