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.001343/0.001343, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.00131/0.00131, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.482/1.482, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2056/0.2056, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 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.001478/0.001478, allocations: 63.91 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1252, allocations: 57.8 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003901/0.1292, allocations: 2.221 MB / 0.49 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1308, allocations: 0.8188 MB / 0.4908 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002545/0.1311, allocations: 7.938 kB / 0.4909 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.1313, allocations: 27.61 kB / 0.4909 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000323/0.1316, allocations: 63.44 kB / 0.4909 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.1321, allocations: 139.7 kB / 0.4911 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000462/0.1325, allocations: 359 kB / 0.4914 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.1328, allocations: 124.2 kB / 0.4915 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002582/0.1331, allocations: 147.4 kB / 0.4917 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.1333, allocations: 147.3 kB / 0.4918 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.958e-05/0.1334, allocations: 36 kB / 0.4919 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.166e-05/0.1335, allocations: 32 kB / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1336, allocations: 83.69 kB / 0.492 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.1338, allocations: 155.2 kB / 0.4921 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.1342, allocations: 354.7 kB / 0.4924 GB, free: 7.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.428e-06/0.1342, allocations: 8 kB / 0.4925 GB, free: 7.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1342, allocations: 0 / 0.4925 GB, free: 7.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.1342, allocations: 0 / 0.4925 GB, free: 7.098 MB / 382.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.001303/0.1355, allocations: 0.6105 MB / 0.4931 GB, free: 6.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.1356, allocations: 15.89 kB / 0.4931 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.1357, allocations: 36.56 kB / 0.4931 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005483/0.1362, allocations: 331.2 kB / 0.4934 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.1363, allocations: 20.94 kB / 0.4934 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.046e-05/0.1363, allocations: 36.28 kB / 0.4935 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.1369, allocations: 264.9 kB / 0.4937 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.1369, allocations: 0 / 0.4937 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.1369, allocations: 12 kB / 0.4937 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1369, allocations: 4 kB / 0.4937 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.1373, allocations: 186.1 kB / 0.4939 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.1386, allocations: 0.7717 MB / 0.4947 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004236/0.1391, allocations: 206.8 kB / 0.4949 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.1393, allocations: 104.7 kB / 0.495 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.1393, allocations: 7.984 kB / 0.495 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003857/0.1397, allocations: 227 kB / 0.4952 GB, free: 4.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.693e-06/0.1397, allocations: 4 kB / 0.4952 GB, free: 4.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007919/0.1405, allocations: 366 kB / 0.4955 GB, free: 3.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.1406, allocations: 59.39 kB / 0.4956 GB, free: 3.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.1408, allocations: 233 kB / 0.4958 GB, free: 3.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.958e-05/0.1409, allocations: 37.7 kB / 0.4959 GB, free: 3.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.141, allocations: 164.6 kB / 0.496 GB, free: 3.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.1411, allocations: 110.4 kB / 0.4961 GB, free: 3.133 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.704e-05/0.1412, allocations: 70.06 kB / 0.4962 GB, free: 3.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1413, allocations: 342.8 kB / 0.4965 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.1415, allocations: 88.7 kB / 0.4966 GB, free: 2.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.1418, allocations: 221.8 kB / 0.4968 GB, free: 2.352 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004951/0.1423, allocations: 344.8 kB / 0.4971 GB, free: 1.953 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1423, allocations: 4 kB / 0.4971 GB, free: 1.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000616/0.1429, allocations: 373 kB / 0.4975 GB, free: 1.578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.143, allocations: 11.94 kB / 0.4975 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.143, allocations: 11.92 kB / 0.4975 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.143, allocations: 8 kB / 0.4975 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.1433, allocations: 71.89 kB / 0.4976 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1433, allocations: 12.03 kB / 0.4976 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.1435, allocations: 39.7 kB / 0.4977 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.1435, allocations: 20.22 kB / 0.4977 GB, free: 1.406 MB / 382.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.000158/0.1437, allocations: 165.6 kB / 0.4978 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.95e-05/0.1437, allocations: 27.62 kB / 0.4979 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006227/0.1444, allocations: 327.3 kB / 0.4982 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1444, allocations: 4 kB / 0.4982 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1444, allocations: 0 / 0.4982 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.1444, allocations: 3.984 kB / 0.4982 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008545/0.1452, allocations: 0.705 MB / 0.4989 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1453, allocations: 0 / 0.4989 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.1455, allocations: 47.91 kB / 0.4989 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1455, allocations: 0 / 0.4989 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.1456, allocations: 15.98 kB / 0.4989 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1456, allocations: 4 kB / 0.4989 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1456, allocations: 0 / 0.4989 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008394/0.1464, allocations: 0.5225 MB / 0.4994 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.686e-05/0.1465, allocations: 100.8 kB / 0.4995 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.1465, allocations: 12.06 kB / 0.4995 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.1467, allocations: 15.98 kB / 0.4996 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.164e-05/0.1468, allocations: 19.97 kB / 0.4996 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.1468, allocations: 15.98 kB / 0.4996 GB, free: 15.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001446/0.147, allocations: 168.5 kB / 0.4998 GB, free: 15.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.147, allocations: 0 / 0.4998 GB, free: 15.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003284/0.1473, allocations: 71.69 kB / 0.4998 GB, free: 15.1 MB / 398.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.000137/0.1474, allocations: 119.6 kB / 0.4999 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005463/0.148, allocations: 263.5 kB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.148, allocations: 0.9375 kB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002409/0.1483, allocations: 127.8 kB / 0.5003 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.1486, allocations: 48.42 kB / 0.5004 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009318/0.1495, allocations: 0.5834 MB / 0.5009 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004157/0.15, allocations: 0.7764 MB / 0.5017 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.1501, allocations: 39.14 kB / 0.5017 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.37e-05/0.1502, allocations: 31.44 kB / 0.5018 GB, free: 13.05 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1502, allocations: 3.938 kB / 0.5018 GB, free: 13.05 MB / 398.1 MB Notification: Performance of Templates: time 0.005895/0.1561, allocations: 2.543 MB / 0.5042 GB, free: 10.51 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches