Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_1_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.1/package.mo): time 0.01513/0.01514, allocations: 104.4 kB / 15.05 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001723/0.001723, allocations: 168 kB / 15.93 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.78/1.78, allocations: 170.9 MB / 187.6 MB, free: 0.9922 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2621/0.2621, allocations: 38.09 MB / 265.1 MB, free: 3.965 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008823/0.0008824, allocations: 16 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1216, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001943/0.1236, allocations: 1.161 MB / 373.4 MB, free: 11.69 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009728/0.1246, allocations: 471.5 kB / 373.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.042e-05/0.1247, allocations: 0 / 373.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.212e-05/0.1247, allocations: 3.938 kB / 373.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.575e-05/0.1248, allocations: 7.984 kB / 373.9 MB, free: 11.21 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.125, allocations: 27.86 kB / 373.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.847e-05/0.1251, allocations: 27.89 kB / 374 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.999e-05/0.1252, allocations: 11.98 kB / 374 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.909e-05/0.1253, allocations: 11.94 kB / 374 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.75e-05/0.1254, allocations: 23.91 kB / 374 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/0.1254, allocations: 4 kB / 374 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.413e-05/0.1255, allocations: 0 / 374 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.1255, allocations: 7.984 kB / 374 MB, free: 11.1 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.1256, allocations: 29.7 kB / 374.1 MB, free: 11.06 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 6.995e-05/0.1256, allocations: 19.97 kB / 374.1 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1256, allocations: 0 / 374.1 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1257, allocations: 3.938 kB / 374.1 MB, free: 11.04 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1257, allocations: 0 / 374.1 MB, free: 11.04 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005243/0.1262, allocations: 351.5 kB / 374.4 MB, free: 10.65 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1263, allocations: 8.031 kB / 374.4 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.715e-05/0.1263, allocations: 30.56 kB / 374.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.1264, allocations: 7.906 kB / 374.5 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.1266, allocations: 178.9 kB / 374.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.1266, allocations: 8 kB / 374.7 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/0.1266, allocations: 3.984 kB / 374.7 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.1268, allocations: 45.69 kB / 374.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1269, allocations: 4 kB / 374.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.1269, allocations: 4 kB / 374.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1269, allocations: 3.984 kB / 374.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001468/0.1271, allocations: 27.86 kB / 374.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004999/0.1276, allocations: 268.9 kB / 375 MB, free: 9.965 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.1277, allocations: 34.56 kB / 375 MB, free: 9.922 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.1278, allocations: 4 kB / 375 MB, free: 9.918 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.128, allocations: 79.39 kB / 375.1 MB, free: 9.828 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.763e-06/0.128, allocations: 0 / 375.1 MB, free: 9.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.000361/0.1284, allocations: 85.58 kB / 375.2 MB, free: 9.738 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.1285, allocations: 51.41 kB / 375.3 MB, free: 9.676 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1286, allocations: 118 kB / 375.4 MB, free: 9.551 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1286, allocations: 29.69 kB / 375.4 MB, free: 9.516 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.292e-05/0.1287, allocations: 88.14 kB / 375.5 MB, free: 9.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.1287, allocations: 7.812 kB / 375.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-06/0.1287, allocations: 8 kB / 375.5 MB, free: 9.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1289, allocations: 322.8 kB / 375.8 MB, free: 9.086 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.175e-05/0.129, allocations: 12 kB / 375.8 MB, free: 9.074 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.1291, allocations: 48.22 kB / 375.9 MB, free: 9.012 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.649e-05/0.1292, allocations: 23.98 kB / 375.9 MB, free: 8.988 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1292, allocations: 0 / 375.9 MB, free: 8.988 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002734/0.1295, allocations: 89.55 kB / 376 MB, free: 8.895 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1296, allocations: 12.16 kB / 376 MB, free: 8.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1296, allocations: 0 / 376 MB, free: 8.883 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1296, allocations: 0 / 376 MB, free: 8.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.1297, allocations: 12 kB / 376 MB, free: 8.871 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.1298, allocations: 3.984 kB / 376 MB, free: 8.867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.747e-05/0.1298, allocations: 11.84 kB / 376 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.1299, allocations: 4 kB / 376 MB, free: 8.852 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.000106/0.13, allocations: 122.8 kB / 376.1 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.13, allocations: 8 kB / 376.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.463e-05/0.13, allocations: 7.906 kB / 376.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1301, allocations: 0 / 376.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.1301, allocations: 3.984 kB / 376.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1301, allocations: 0 / 376.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.1303, allocations: 169.6 kB / 376.3 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1303, allocations: 0 / 376.3 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.1304, allocations: 12 kB / 376.3 MB, free: 8.473 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1304, allocations: 3.938 kB / 376.3 MB, free: 8.469 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.1304, allocations: 3.984 kB / 376.4 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1304, allocations: 4 kB / 376.4 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1305, allocations: 0 / 376.4 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.1308, allocations: 117 kB / 376.5 MB, free: 8.328 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.701e-05/0.1309, allocations: 85.14 kB / 376.6 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.1309, allocations: 0 / 376.6 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.759e-05/0.131, allocations: 12.05 kB / 376.6 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.735e-05/0.1311, allocations: 3.938 kB / 376.6 MB, free: 8.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.1311, allocations: 4 kB / 376.6 MB, free: 8.207 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.632e-05/0.1312, allocations: 95.58 kB / 376.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1312, allocations: 0 / 376.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002631/0.1314, allocations: 7.906 kB / 376.7 MB, free: 8.105 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006344/0.1321, allocations: 0.6515 MB / 377.3 MB, free: 7.426 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002123/0.1323, allocations: 43.91 kB / 377.4 MB, free: 7.383 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1323, allocations: 384 / 377.4 MB, free: 7.383 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.1325, allocations: 28.2 kB / 377.4 MB, free: 7.355 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.1326, allocations: 7.938 kB / 377.4 MB, free: 7.348 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009336/0.1335, allocations: 0.9903 MB / 378.4 MB, free: 6.289 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.1338, allocations: 0.6927 MB / 379.1 MB, free: 5.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.554e-05/0.1339, allocations: 3.984 kB / 379.1 MB, free: 5.566 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.303e-05/0.134, allocations: 15.44 kB / 379.1 MB, free: 5.551 MB / 282.7 MB Notification: Performance of SimCode: time 7.42e-07/0.134, allocations: 3.938 kB / 379.1 MB, free: 5.547 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.1523, allocations: 1.198 MB / 380.3 MB, free: 4.426 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003099/0.1527, allocations: 157.9 kB / 380.5 MB, free: 4.184 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.342/2.495, allocations: 4 kB / 380.5 MB, free: 4.18 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat