Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.603/2.603, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006277/0.000628, allocations: 12 kB / 314.5 MB, free: 9.484 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3576, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1539/0.5116, allocations: 83.89 MB / 453.2 MB, free: 6.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.512, allocations: 75.84 kB / 453.3 MB, free: 6.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04772/0.5597, allocations: 9.886 MB / 463.2 MB, free: 12.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5598, allocations: 0 / 463.2 MB, free: 12.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.5598, allocations: 4 kB / 463.2 MB, free: 12.73 MB / 394.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.0007831/0.5606, allocations: 488.5 kB / 463.7 MB, free: 12.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.5607, allocations: 12.03 kB / 463.7 MB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.982e-05/0.5607, allocations: 30.56 kB / 463.7 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.189e-05/0.5608, allocations: 7.953 kB / 463.7 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.5609, allocations: 159.1 kB / 463.9 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.5609, allocations: 0 / 463.9 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-06/0.5609, allocations: 7.875 kB / 463.9 MB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.167e-05/0.5611, allocations: 33.69 kB / 463.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.5611, allocations: 0 / 463.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.5611, allocations: 0 / 463.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.5611, allocations: 7.953 kB / 463.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.946e-05/0.5611, allocations: 0 / 463.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.5613, allocations: 145.7 kB / 464.1 MB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.944e-05/0.5614, allocations: 18.61 kB / 464.1 MB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.5614, allocations: 3.938 kB / 464.1 MB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/0.5614, allocations: 60.69 kB / 464.2 MB, free: 11.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.753e-06/0.5615, allocations: 0 / 464.2 MB, free: 11.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002002/0.5617, allocations: 67.47 kB / 464.2 MB, free: 11.51 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.5617, allocations: 81.11 kB / 464.3 MB, free: 11.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.255e-05/0.5618, allocations: 85 kB / 464.4 MB, free: 11.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.5618, allocations: 25.7 kB / 464.4 MB, free: 11.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.5619, allocations: 150.6 kB / 464.6 MB, free: 11.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/0.5619, allocations: 0 / 464.6 MB, free: 11.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-06/0.5619, allocations: 0 / 464.6 MB, free: 11.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5621, allocations: 318.8 kB / 464.9 MB, free: 10.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.376e-05/0.5621, allocations: 4.125 kB / 464.9 MB, free: 10.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.29e-05/0.5621, allocations: 7.938 kB / 464.9 MB, free: 10.81 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.515e-05/0.5621, allocations: 29.64 kB / 464.9 MB, free: 10.78 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.5622, allocations: 0 / 464.9 MB, free: 10.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.707e-05/0.5623, allocations: 63.41 kB / 465 MB, free: 10.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.542e-05/0.5623, allocations: 33.69 kB / 465 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.5623, allocations: 0 / 465 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.5624, allocations: 4 kB / 465 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.703e-06/0.5624, allocations: 0 / 465 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.5624, allocations: 96 / 465 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/0.5624, allocations: 4 kB / 465 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.5624, allocations: 0 / 465 MB, free: 10.66 MB / 394.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.0001067/0.5626, allocations: 139.5 kB / 465.1 MB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.039e-05/0.5626, allocations: 0 / 465.1 MB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.558e-05/0.5626, allocations: 3.125 kB / 465.1 MB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.5626, allocations: 0 / 465.1 MB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.5626, allocations: 0 / 465.1 MB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.5626, allocations: 3.984 kB / 465.2 MB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.5628, allocations: 153.6 kB / 465.3 MB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.5628, allocations: 4 kB / 465.3 MB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.591e-06/0.5628, allocations: 7.938 kB / 465.3 MB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.5628, allocations: 0 / 465.3 MB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.5628, allocations: 3.984 kB / 465.3 MB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.5628, allocations: 3.938 kB / 465.3 MB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5629, allocations: 0 / 465.3 MB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.563, allocations: 94.78 kB / 465.4 MB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.203e-05/0.5631, allocations: 81.14 kB / 465.5 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.5631, allocations: 4 kB / 465.5 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.436e-05/0.5631, allocations: 0 / 465.5 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.58e-05/0.5631, allocations: 3.984 kB / 465.5 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.5632, allocations: 0 / 465.5 MB, free: 10.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.586e-05/0.5632, allocations: 75.28 kB / 465.6 MB, free: 9.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5632, allocations: 0 / 465.6 MB, free: 9.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009028/0.5641, allocations: 179.8 kB / 465.8 MB, free: 9.805 MB / 394.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.001685/0.5658, allocations: 0.9345 MB / 466.7 MB, free: 8.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.566, allocations: 59.41 kB / 466.7 MB, free: 8.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.566, allocations: 0 / 466.7 MB, free: 8.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.284e-05/0.5661, allocations: 55.41 kB / 466.8 MB, free: 8.703 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001056/0.5662, allocations: 3.266 kB / 466.8 MB, free: 8.703 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006589/0.5669, allocations: 229.8 kB / 467 MB, free: 8.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.5672, allocations: 0.677 MB / 467.7 MB, free: 7.727 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/0.5672, allocations: 11.56 kB / 467.7 MB, free: 7.715 MB / 394.7 MB Notification: Performance of SimCode: time 1.373e-06/0.5672, allocations: 0 / 467.7 MB, free: 7.715 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.465/3.033, allocations: 4.002 MB / 471.7 MB, free: 3.711 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat does not exist to compare? outputFormat=mat