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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.727/2.727, allocations: 235.1 MB / 243 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.931e-05, allocations: 7.938 kB / 303.3 MB, free: 3.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3595, allocations: 54.86 MB / 358.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.5197, allocations: 83.14 MB / 441.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.52, allocations: 63.97 kB / 441.3 MB, free: 12.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04692/0.5669, allocations: 9.709 MB / 451 MB, free: 2.602 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.567, allocations: 0 / 451 MB, free: 2.602 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.567, allocations: 0 / 451 MB, free: 2.602 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.0007975/0.5678, allocations: 475.8 kB / 451.5 MB, free: 2.086 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.5679, allocations: 16.02 kB / 451.5 MB, free: 2.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.826e-05/0.5679, allocations: 3.953 kB / 451.5 MB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.568, allocations: 159.1 kB / 451.7 MB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.5681, allocations: 0 / 451.7 MB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.5681, allocations: 0 / 451.7 MB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.552e-05/0.5681, allocations: 3.938 kB / 451.7 MB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.061e-05/0.5682, allocations: 33.7 kB / 451.7 MB, free: 1.828 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.5682, allocations: 0 / 451.7 MB, free: 1.828 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.5682, allocations: 0 / 451.7 MB, free: 1.828 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.5683, allocations: 7.953 kB / 451.7 MB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.5684, allocations: 126.2 kB / 451.8 MB, free: 1.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.002e-05/0.5685, allocations: 18.61 kB / 451.9 MB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.5685, allocations: 4.859 kB / 451.9 MB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-06/0.5685, allocations: 0 / 451.9 MB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.357e-05/0.5686, allocations: 64.77 kB / 451.9 MB, free: 1.547 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 5.391e-06/0.5686, allocations: 4 kB / 451.9 MB, free: 1.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001803/0.5688, allocations: 41.58 kB / 452 MB, free: 1.496 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.5689, allocations: 77.11 kB / 452 MB, free: 1.402 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.29e-05/0.5689, allocations: 88.98 kB / 452.1 MB, free: 1.309 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.569, allocations: 25.7 kB / 452.2 MB, free: 1.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.5e-05/0.569, allocations: 154.6 kB / 452.3 MB, free: 1.125 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.5691, allocations: 0 / 452.3 MB, free: 1.125 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-06/0.5691, allocations: 0 / 452.3 MB, free: 1.125 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5692, allocations: 314.8 kB / 452.6 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-06/0.5693, allocations: 4.031 kB / 452.6 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.051e-06/0.5693, allocations: 0 / 452.6 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.704e-05/0.5693, allocations: 4 kB / 452.6 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.5693, allocations: 0 / 452.6 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.632e-05/0.5694, allocations: 33.7 kB / 452.7 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.616e-05/0.5695, allocations: 37.69 kB / 452.7 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.5695, allocations: 3.938 kB / 452.7 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.5695, allocations: 0 / 452.7 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/0.5695, allocations: 0 / 452.7 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.5696, allocations: 4.094 kB / 452.7 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.866e-05/0.5696, allocations: 3.938 kB / 452.7 MB, free: 0.707 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-06/0.5696, allocations: 0 / 452.7 MB, free: 0.707 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 0.0001064/0.5697, allocations: 134.6 kB / 452.8 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.34e-05/0.5698, allocations: 37.69 kB / 452.9 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-06/0.5698, allocations: 0 / 452.9 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.228e-05/0.5699, allocations: 11.7 kB / 452.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.5699, allocations: 0 / 452.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5699, allocations: 0 / 452.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.5699, allocations: 4.031 kB / 452.9 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.57, allocations: 126.2 kB / 453 MB, free: 356 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.57, allocations: 0 / 453 MB, free: 356 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-06/0.57, allocations: 3.984 kB / 453 MB, free: 352 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.5701, allocations: 7.984 kB / 453 MB, free: 344 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.5701, allocations: 7.984 kB / 453 MB, free: 336 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.5701, allocations: 0 / 453 MB, free: 336 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5701, allocations: 0 / 453 MB, free: 336 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.5702, allocations: 65.03 kB / 453.1 MB, free: 252 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.5703, allocations: 81.09 kB / 453.2 MB, free: 152 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.5703, allocations: 7.938 kB / 453.2 MB, free: 144 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.162e-05/0.5703, allocations: 0 / 453.2 MB, free: 144 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.189e-05/0.5703, allocations: 0 / 453.2 MB, free: 144 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.5704, allocations: 4 kB / 453.2 MB, free: 140 kB / 378.7 MB Notification: Performance of sorting global known variables: time 3.906e-05/0.5704, allocations: 79.28 kB / 453.3 MB, free: 60 kB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5704, allocations: 0 / 453.3 MB, free: 60 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009117/0.5713, allocations: 179.8 kB / 453.4 MB, free: 15.88 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.001682/0.573, allocations: 0.8937 MB / 454.3 MB, free: 14.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.5732, allocations: 63.34 kB / 454.4 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.5732, allocations: 0 / 454.4 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.261e-05/0.5733, allocations: 51.41 kB / 454.4 MB, free: 14.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.5734, allocations: 8 kB / 454.5 MB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006765/0.5741, allocations: 195.1 kB / 454.6 MB, free: 14.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.5744, allocations: 0.6769 MB / 455.3 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.189e-05/0.5745, allocations: 7.438 kB / 455.3 MB, free: 13.88 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5745, allocations: 0 / 455.3 MB, free: 13.88 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.704/3.278, allocations: 4.075 MB / 459.4 MB, free: 9.793 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