Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_ComplexMath_TestComplexFunctions",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.01116/0.01116, allocations: 108 kB / 15.06 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.2.mo): time 0.001198/0.001198, allocations: 182.1 kB / 15.95 MB, free: 5.52 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.151/2.151, allocations: 194.5 MB / 211.3 MB, free: 10.95 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.2659/0.2659, allocations: 40.04 MB / 296.5 MB, free: 6.121 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000469/0.0004691, allocations: 8 kB / 361.1 MB, free: 9.523 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1149, allocations: 54.89 MB / 416 MB, free: 2.539 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006368/0.1156, allocations: 208.4 kB / 416.2 MB, free: 2.332 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00441/0.12, allocations: 2.135 MB / 418.4 MB, free: 180 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.662e-05/0.1201, allocations: 0 / 418.4 MB, free: 180 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.1202, allocations: 4 kB / 418.4 MB, free: 176 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.1202, allocations: 0 / 418.4 MB, free: 176 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003419/0.1236, allocations: 0.8996 MB / 419.3 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.394e-05/0.1237, allocations: 4 kB / 419.3 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.291e-05/0.1237, allocations: 4 kB / 419.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.722e-05/0.1238, allocations: 0 / 419.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.634e-05/0.1238, allocations: 0 / 419.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.1238, allocations: 0 / 419.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.1258, allocations: 0.7296 MB / 420 MB, free: 14.53 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-06/0.1258, allocations: 0 / 420 MB, free: 14.53 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.764e-05/0.1259, allocations: 25.7 kB / 420 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006266/0.1265, allocations: 259.5 kB / 420.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1266, allocations: 0 / 420.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1266, allocations: 4 kB / 420.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1266, allocations: 0 / 420.3 MB, free: 14.24 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005093/0.1271, allocations: 429 kB / 420.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.1272, allocations: 8.031 kB / 420.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.1272, allocations: 30.56 kB / 420.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.1272, allocations: 0 / 420.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.1274, allocations: 163 kB / 420.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-06/0.1274, allocations: 0 / 420.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.1274, allocations: 7.953 kB / 420.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.803e-05/0.1275, allocations: 33.69 kB / 420.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1275, allocations: 3.984 kB / 420.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.1276, allocations: 0 / 420.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1276, allocations: 0 / 420.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.13e-05/0.1276, allocations: 4 kB / 420.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001541/0.1278, allocations: 145.7 kB / 421.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.076e-05/0.1279, allocations: 22.55 kB / 421.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-06/0.1279, allocations: 0 / 421.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.497e-05/0.128, allocations: 68.2 kB / 421.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.313e-06/0.128, allocations: 0 / 421.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001867/0.1282, allocations: 63.47 kB / 421.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/0.1283, allocations: 77.11 kB / 421.3 MB, free: 13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.398e-05/0.1283, allocations: 89.86 kB / 421.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.1283, allocations: 25.7 kB / 421.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.464e-05/0.1284, allocations: 80.14 kB / 421.5 MB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.1284, allocations: 8.062 kB / 421.5 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-06/0.1284, allocations: 4 kB / 421.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1286, allocations: 314.8 kB / 421.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.016e-05/0.1286, allocations: 0 / 421.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.624e-06/0.1286, allocations: 3.938 kB / 421.8 MB, free: 12.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.02e-05/0.1287, allocations: 33.7 kB / 421.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1287, allocations: 0 / 421.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.707e-05/0.1288, allocations: 63.31 kB / 421.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.1288, allocations: 37.62 kB / 422 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1289, allocations: 4.094 kB / 422 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.1289, allocations: 3.953 kB / 422 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.462e-06/0.1289, allocations: 0 / 422 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1289, allocations: 0 / 422 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.202e-05/0.1289, allocations: 4 kB / 422 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.525e-06/0.129, allocations: 0 / 422 MB, free: 12.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001085/0.1291, allocations: 131.8 kB / 422.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.1291, allocations: 4 kB / 422.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.514e-05/0.1291, allocations: 11.02 kB / 422.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1291, allocations: 7.953 kB / 422.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1292, allocations: 3.984 kB / 422.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1292, allocations: 0 / 422.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.1293, allocations: 145.7 kB / 422.3 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1293, allocations: 4 kB / 422.3 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.1293, allocations: 0 / 422.3 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1293, allocations: 0 / 422.3 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.1293, allocations: 4 kB / 422.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1294, allocations: 0 / 422.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.1294, allocations: 3.953 kB / 422.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.1295, allocations: 94.83 kB / 422.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.1296, allocations: 81.05 kB / 422.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.1296, allocations: 0 / 422.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.79e-05/0.1296, allocations: 7.984 kB / 422.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.1296, allocations: 0 / 422.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.1296, allocations: 3.953 kB / 422.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.096e-05/0.1297, allocations: 75.28 kB / 422.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.174e-06/0.1297, allocations: 4.031 kB / 422.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000697/0.1304, allocations: 139.9 kB / 422.7 MB, free: 11.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001353/0.1318, allocations: 0.8859 MB / 423.6 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001326/0.1319, allocations: 55.41 kB / 423.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1319, allocations: 0 / 423.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.792e-05/0.132, allocations: 63.33 kB / 423.7 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001096/0.1321, allocations: 4.062 kB / 423.7 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004736/0.1326, allocations: 184.3 kB / 423.9 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.1329, allocations: 0.6731 MB / 424.5 MB, free: 9.488 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.1329, allocations: 4 kB / 424.5 MB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.674e-05/0.1329, allocations: 7.438 kB / 424.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1329, allocations: 0 / 424.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.162, allocations: 4.873 MB / 429.4 MB, free: 4.668 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002959/0.1624, allocations: 232 kB / 429.6 MB, free: 4.418 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.56/2.723, allocations: 0 / 429.6 MB, free: 4.418 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat does not exist to compare? outputFormat=mat