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.399/2.399, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.037e-05, allocations: 4 kB / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4143/0.4143, allocations: 54.85 MB / 364.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.5921, allocations: 83.81 MB / 448.4 MB, free: 12.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.5924, allocations: 59.98 kB / 448.5 MB, free: 12.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04615/0.6386, allocations: 9.87 MB / 458.3 MB, free: 2.664 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.6387, allocations: 0 / 458.3 MB, free: 2.664 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.6387, allocations: 0 / 458.3 MB, free: 2.664 MB / 378.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.0006737/0.6394, allocations: 467.9 kB / 458.8 MB, free: 2.156 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.6394, allocations: 16.03 kB / 458.8 MB, free: 2.141 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.939e-05/0.6395, allocations: 34.52 kB / 458.9 MB, free: 2.098 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.337e-05/0.6395, allocations: 4.594 kB / 458.9 MB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.6396, allocations: 167 kB / 459 MB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.6397, allocations: 3.984 kB / 459 MB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.6397, allocations: 4 kB / 459 MB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.502e-05/0.6398, allocations: 29.7 kB / 459.1 MB, free: 1.848 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-06/0.6398, allocations: 0 / 459.1 MB, free: 1.848 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.6398, allocations: 0 / 459.1 MB, free: 1.848 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.6399, allocations: 8.797 kB / 459.1 MB, free: 1.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.861e-05/0.6399, allocations: 4 kB / 459.1 MB, free: 1.836 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.64, allocations: 141.7 kB / 459.2 MB, free: 1.648 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.668e-05/0.6401, allocations: 26.97 kB / 459.2 MB, free: 1.613 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.638e-05/0.6401, allocations: 4.859 kB / 459.2 MB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.135e-06/0.6401, allocations: 0 / 459.2 MB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.517e-05/0.6402, allocations: 60.27 kB / 459.3 MB, free: 1.531 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.6402, allocations: 4.062 kB / 459.3 MB, free: 1.527 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001609/0.6404, allocations: 59.41 kB / 459.4 MB, free: 1.457 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.6405, allocations: 81.62 kB / 459.4 MB, free: 1.359 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.341e-05/0.6405, allocations: 88.94 kB / 459.5 MB, free: 1.266 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.6405, allocations: 29.7 kB / 459.6 MB, free: 1.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/0.6406, allocations: 154.5 kB / 459.7 MB, free: 1.078 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.6407, allocations: 3.938 kB / 459.7 MB, free: 1.074 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-06/0.6407, allocations: 0 / 459.7 MB, free: 1.074 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6408, allocations: 316.5 kB / 460 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.6408, allocations: 4 kB / 460 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.988e-06/0.6408, allocations: 4 kB / 460 MB, free: 0.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.488e-05/0.6409, allocations: 25.7 kB / 460.1 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.6409, allocations: 0 / 460.1 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.664e-05/0.641, allocations: 59.41 kB / 460.1 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.6411, allocations: 33.69 kB / 460.1 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.6411, allocations: 0.875 kB / 460.1 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.6411, allocations: 0 / 460.1 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.477e-06/0.6411, allocations: 8.094 kB / 460.2 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.6411, allocations: 0 / 460.2 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.895e-05/0.6412, allocations: 0 / 460.2 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.6412, allocations: 3.953 kB / 460.2 MB, free: 0.5977 MB / 378.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 () * 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 9.42e-05/0.6413, allocations: 130.7 kB / 460.3 MB, free: 468 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.214e-05/0.6413, allocations: 0 / 460.3 MB, free: 468 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.724e-05/0.6413, allocations: 15.02 kB / 460.3 MB, free: 452 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.6414, allocations: 3.812 kB / 460.3 MB, free: 452 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6414, allocations: 0.5625 kB / 460.3 MB, free: 452 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.6414, allocations: 7.984 kB / 460.3 MB, free: 444 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.6415, allocations: 149.6 kB / 460.5 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6415, allocations: 0 / 460.5 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.6415, allocations: 0 / 460.5 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.6415, allocations: 0 / 460.5 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.6416, allocations: 1.312 kB / 460.5 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.6416, allocations: 0 / 460.5 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.6416, allocations: 0 / 460.5 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.6417, allocations: 102.8 kB / 460.6 MB, free: 116 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.6418, allocations: 77.11 kB / 460.6 MB, free: 20 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.6418, allocations: 0 / 460.6 MB, free: 20 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.15e-05/0.6418, allocations: 4 kB / 460.6 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.137e-05/0.6419, allocations: 3.984 kB / 460.6 MB, free: 12 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.6419, allocations: 3.938 kB / 460.6 MB, free: 8 kB / 378.7 MB Notification: Performance of sorting global known variables: time 5.331e-05/0.6419, allocations: 75.28 kB / 460.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.354e-06/0.6419, allocations: 0 / 460.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008074/0.6428, allocations: 179.7 kB / 460.9 MB, free: 15.76 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) * 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.001457/0.6442, allocations: 0.9423 MB / 461.8 MB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001072/0.6444, allocations: 59.41 kB / 461.9 MB, free: 14.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6444, allocations: 0 / 461.9 MB, free: 14.72 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.977e-05/0.6444, allocations: 55.41 kB / 461.9 MB, free: 14.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.979e-05/0.6445, allocations: 7.094 kB / 462 MB, free: 14.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004897/0.645, allocations: 196.1 kB / 462.1 MB, free: 14.42 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.6454, allocations: 0.6733 MB / 462.8 MB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.6454, allocations: 11.44 kB / 462.8 MB, free: 13.71 MB / 394.7 MB Notification: Performance of SimCode: time 7.32e-07/0.6454, allocations: 0 / 462.8 MB, free: 13.71 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.41/3.056, allocations: 3.983 MB / 466.8 MB, free: 9.723 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