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.001973/0.001973, allocations: 115.5 kB / 17.04 MB, free: 5.812 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.002538/0.002538, allocations: 195 kB / 17.98 MB, free: 5.027 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.622/1.622, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2388/0.2388, allocations: 43.52 MB / 314.7 MB, free: 492 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.001521/0.001521, allocations: 65.19 kB / 384.2 MB, free: 56.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.141, allocations: 57.79 MB / 442 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00349/0.1445, allocations: 2.221 MB / 444.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.1458, allocations: 0.8072 MB / 445 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.1459, allocations: 7.938 kB / 445 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.1461, allocations: 31.59 kB / 445 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.1463, allocations: 51.45 kB / 445.1 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.1466, allocations: 151.7 kB / 445.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.1469, allocations: 359 kB / 445.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.1472, allocations: 129.5 kB / 445.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.1474, allocations: 143.4 kB / 445.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002024/0.1476, allocations: 147.3 kB / 446 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.218e-05/0.1477, allocations: 32 kB / 446 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.107e-05/0.1477, allocations: 32 kB / 446.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.1478, allocations: 83.69 kB / 446.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.148, allocations: 159.2 kB / 446.3 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.1483, allocations: 350.7 kB / 446.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1483, allocations: 4 kB / 446.6 MB, free: 1.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1483, allocations: 3.938 kB / 446.6 MB, free: 1.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.1483, allocations: 0 / 446.6 MB, free: 1.469 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.001015/0.1494, allocations: 0.6144 MB / 447.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1494, allocations: 15.89 kB / 447.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.901e-05/0.1495, allocations: 44.55 kB / 447.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004528/0.15, allocations: 327.2 kB / 447.6 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.15, allocations: 24.92 kB / 447.7 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.1501, allocations: 36.28 kB / 447.7 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004151/0.1505, allocations: 260.8 kB / 447.9 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.1505, allocations: 0 / 447.9 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.1505, allocations: 19.98 kB / 448 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.1506, allocations: 4 kB / 448 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004018/0.151, allocations: 182.1 kB / 448.2 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1522, allocations: 0.7755 MB / 448.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004001/0.1527, allocations: 195.9 kB / 449.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.1529, allocations: 100.8 kB / 449.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.1529, allocations: 4 kB / 449.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003922/0.1533, allocations: 227 kB / 449.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.1533, allocations: 3.938 kB / 449.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007709/0.1541, allocations: 381.9 kB / 449.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.1542, allocations: 55.41 kB / 449.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.1544, allocations: 229 kB / 450.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.1544, allocations: 37.69 kB / 450.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1545, allocations: 168.6 kB / 450.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.791e-05/0.1546, allocations: 106.5 kB / 450.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.1547, allocations: 70.06 kB / 450.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1549, allocations: 334.8 kB / 450.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.1551, allocations: 92.69 kB / 450.9 MB, free: 13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.1554, allocations: 226.3 kB / 451.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005262/0.1559, allocations: 348.8 kB / 451.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.1559, allocations: 0 / 451.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006465/0.1566, allocations: 373.1 kB / 451.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1566, allocations: 5.25 kB / 451.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-05/0.1566, allocations: 11.94 kB / 451.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.1567, allocations: 4 kB / 451.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.157, allocations: 79.83 kB / 451.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.157, allocations: 8 kB / 451.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.1572, allocations: 27.83 kB / 451.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.1572, allocations: 20 kB / 452 MB, free: 11.79 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.0001959/0.1574, allocations: 173.6 kB / 452.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.946e-05/0.1575, allocations: 31.62 kB / 452.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006589/0.1582, allocations: 319.4 kB / 452.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1582, allocations: 4 kB / 452.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1582, allocations: 4 kB / 452.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.1582, allocations: 0 / 452.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009236/0.1591, allocations: 0.705 MB / 453.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1591, allocations: 4 kB / 453.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.1594, allocations: 47.89 kB / 453.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1594, allocations: 4.141 kB / 453.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.743e-05/0.1594, allocations: 8 kB / 453.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1594, allocations: 4 kB / 453.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.1594, allocations: 3.984 kB / 453.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008599/0.1603, allocations: 0.5225 MB / 453.8 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.271e-05/0.1604, allocations: 104.8 kB / 453.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.765e-05/0.1605, allocations: 12.06 kB / 453.9 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.1606, allocations: 15.98 kB / 453.9 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.133e-05/0.1607, allocations: 27.91 kB / 453.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.667e-05/0.1608, allocations: 11.98 kB / 454 MB, free: 9.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.1609, allocations: 164.5 kB / 454.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.161, allocations: 0 / 454.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003887/0.1613, allocations: 71.75 kB / 454.2 MB, free: 9.469 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.0001729/0.1615, allocations: 119.5 kB / 454.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005356/0.1621, allocations: 259.6 kB / 454.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1621, allocations: 4 kB / 454.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000233/0.1623, allocations: 124.8 kB / 454.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.1627, allocations: 44.58 kB / 454.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.1638, allocations: 0.5795 MB / 455.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.1642, allocations: 0.7801 MB / 456.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.1644, allocations: 47.22 kB / 456.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.285e-05/0.1644, allocations: 31.42 kB / 456.2 MB, free: 7.434 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1645, allocations: 0 / 456.2 MB, free: 7.434 MB / 334.1 MB Notification: Performance of Templates: time 0.006437/0.1709, allocations: 2.493 MB / 458.7 MB, free: 4.949 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 -s cvode -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