Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.0164/0.0164, allocations: 108.5 kB / 15.06 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001959/0.001959, allocations: 179.5 kB / 15.95 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.175/2.175, allocations: 194.6 MB / 211.3 MB, free: 11.05 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2978/0.2978, allocations: 40.04 MB / 296.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006544/0.000655, allocations: 12 kB / 361.1 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1356, allocations: 54.87 MB / 416 MB, free: 2.574 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003055/0.1387, allocations: 1.781 MB / 417.8 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.1405, allocations: 0.7417 MB / 418.5 MB, free: 24 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1407, allocations: 7.938 kB / 418.5 MB, free: 16 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.1409, allocations: 19.89 kB / 418.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.1412, allocations: 51.84 kB / 418.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.1416, allocations: 99.64 kB / 418.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.142, allocations: 187.6 kB / 418.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.1422, allocations: 102.6 kB / 419 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.1425, allocations: 103.5 kB / 419.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.1427, allocations: 115.4 kB / 419.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.653e-05/0.1428, allocations: 12 kB / 419.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.747e-05/0.1428, allocations: 8 kB / 419.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.592e-05/0.1429, allocations: 47.81 kB / 419.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.919e-05/0.143, allocations: 77.52 kB / 419.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003438/0.1434, allocations: 235.7 kB / 419.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.1434, allocations: 0 / 419.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1434, allocations: 0 / 419.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1434, allocations: 0 / 419.6 MB, free: 14.97 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001338/0.1447, allocations: 0.5477 MB / 420.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1448, allocations: 11.97 kB / 420.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001526/0.145, allocations: 74.91 kB / 420.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1451, allocations: 35.62 kB / 420.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006499/0.1458, allocations: 318 kB / 420.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.1458, allocations: 20.56 kB / 420.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.455e-05/0.1459, allocations: 43.84 kB / 420.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007909/0.1467, allocations: 264.8 kB / 420.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.1468, allocations: 7.984 kB / 420.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/0.1468, allocations: 8 kB / 420.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.1468, allocations: 8 kB / 420.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007289/0.1476, allocations: 202.1 kB / 421.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.1496, allocations: 0.8031 MB / 421.9 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006631/0.1503, allocations: 206.8 kB / 422.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.816e-05/0.1504, allocations: 7.984 kB / 422.1 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006578/0.151, allocations: 227.2 kB / 422.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.986e-06/0.151, allocations: 0 / 422.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.00138/0.1524, allocations: 389.2 kB / 422.7 MB, free: 11.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.1525, allocations: 63.34 kB / 422.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/0.1528, allocations: 228.9 kB / 423 MB, free: 11.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.1529, allocations: 33.7 kB / 423 MB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.1531, allocations: 172.4 kB / 423.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.1532, allocations: 102.6 kB / 423.3 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.1532, allocations: 12 kB / 423.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1534, allocations: 334.8 kB / 423.6 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003474/0.1538, allocations: 96.64 kB / 423.7 MB, free: 10.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004492/0.1542, allocations: 222.6 kB / 424 MB, free: 10.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004147/0.1546, allocations: 127.8 kB / 424.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1547, allocations: 0 / 424.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001083/0.1558, allocations: 376.7 kB / 424.4 MB, free: 9.805 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.1558, allocations: 12.42 kB / 424.5 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.1558, allocations: 8 kB / 424.5 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.1559, allocations: 16.12 kB / 424.5 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005344/0.1564, allocations: 71.91 kB / 424.6 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.24e-05/0.1564, allocations: 19.91 kB / 424.6 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.1567, allocations: 31.83 kB / 424.6 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.1568, allocations: 19.98 kB / 424.6 MB, free: 9.629 MB / 362.7 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,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002499/0.1571, allocations: 165.7 kB / 424.8 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.548e-05/0.1571, allocations: 27.62 kB / 424.8 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.1582, allocations: 339.3 kB / 425.1 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.1582, allocations: 4 kB / 425.1 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1582, allocations: 0 / 425.1 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1582, allocations: 0 / 425.1 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.1597, allocations: 0.7207 MB / 425.9 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1598, allocations: 0 / 425.9 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/0.1603, allocations: 47.97 kB / 425.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.1603, allocations: 3.953 kB / 425.9 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.1603, allocations: 11.98 kB / 425.9 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/0.1603, allocations: 4 kB / 425.9 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1604, allocations: 7.938 kB / 425.9 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.1618, allocations: 0.5306 MB / 426.5 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.537e-05/0.1619, allocations: 100.8 kB / 426.6 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.841e-05/0.162, allocations: 16.02 kB / 426.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.1623, allocations: 15.98 kB / 426.6 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/0.1625, allocations: 19.95 kB / 426.6 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.003e-05/0.1625, allocations: 16 kB / 426.6 MB, free: 7.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002246/0.1627, allocations: 164.5 kB / 426.8 MB, free: 7.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1628, allocations: 0 / 426.8 MB, free: 7.348 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000544/0.1633, allocations: 75.69 kB / 426.9 MB, free: 7.273 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001843/0.1652, allocations: 1.083 MB / 428 MB, free: 6.164 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009252/0.1661, allocations: 271.6 kB / 428.2 MB, free: 5.898 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1662, allocations: 0.9375 kB / 428.2 MB, free: 5.898 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004298/0.1666, allocations: 140.3 kB / 428.4 MB, free: 5.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.167, allocations: 36.58 kB / 428.4 MB, free: 5.727 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.1702, allocations: 3.94 MB / 432.3 MB, free: 1.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.1707, allocations: 0.788 MB / 433.1 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003067/0.171, allocations: 38.27 kB / 433.2 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.1713, allocations: 103.4 kB / 433.3 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/0.1713, allocations: 0 / 433.3 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03103/0.2023, allocations: 4.699 MB / 438 MB, free: 12.06 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002766/0.2027, allocations: 156.9 kB / 438.1 MB, free: 11.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.566/2.769, allocations: 0 / 438.1 MB, free: 11.82 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat