Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.342/2.342, allocations: 234.9 MB / 250.4 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004276/0.0004276, allocations: 16 kB / 314.4 MB, free: 9.66 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3562, allocations: 54.86 MB / 369.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006633/0.357, allocations: 204.5 kB / 369.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004549/0.3615, allocations: 2.141 MB / 371.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.282e-05/0.3616, allocations: 0 / 371.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.48e-05/0.3616, allocations: 0 / 371.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.259e-06/0.3617, allocations: 0 / 371.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003414/0.3651, allocations: 0.8997 MB / 372.5 MB, free: 9.539 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.935e-05/0.3651, allocations: 4 kB / 372.5 MB, free: 9.535 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.931e-05/0.3652, allocations: 0 / 372.5 MB, free: 9.535 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.927e-05/0.3652, allocations: 7.938 kB / 372.5 MB, free: 9.527 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.598e-05/0.3653, allocations: 0 / 372.5 MB, free: 9.527 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-06/0.3653, allocations: 0 / 372.5 MB, free: 9.527 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002201/0.3675, allocations: 0.8037 MB / 373.3 MB, free: 8.723 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.145e-06/0.3675, allocations: 0 / 373.3 MB, free: 8.723 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.438e-05/0.3676, allocations: 25.7 kB / 373.3 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006607/0.3683, allocations: 263.5 kB / 373.6 MB, free: 8.434 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3683, allocations: 4 kB / 373.6 MB, free: 8.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3683, allocations: 0 / 373.6 MB, free: 8.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.3683, allocations: 0 / 373.6 MB, free: 8.43 MB / 298.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.0005007/0.3688, allocations: 429 kB / 374 MB, free: 7.957 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.3689, allocations: 8.031 kB / 374 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.3689, allocations: 34.56 kB / 374.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.369, allocations: 3.906 kB / 374.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.3691, allocations: 163.1 kB / 374.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3691, allocations: 0 / 374.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.3691, allocations: 8 kB / 374.2 MB, free: 7.695 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.708e-05/0.3692, allocations: 29.64 kB / 374.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-06/0.3692, allocations: 0 / 374.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.3693, allocations: 3.953 kB / 374.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.3693, allocations: 0 / 374.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.929e-05/0.3693, allocations: 4 kB / 374.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.3695, allocations: 145.7 kB / 374.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.076e-05/0.3695, allocations: 22.61 kB / 374.4 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.3695, allocations: 4 kB / 374.4 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/0.3696, allocations: 60.27 kB / 374.5 MB, free: 7.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/0.3696, allocations: 3.938 kB / 374.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.3698, allocations: 67.44 kB / 374.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.3699, allocations: 81.06 kB / 374.7 MB, free: 7.172 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.625e-05/0.3699, allocations: 93.86 kB / 374.7 MB, free: 7.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.37, allocations: 25.7 kB / 374.8 MB, free: 7.039 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.823e-05/0.37, allocations: 154.7 kB / 374.9 MB, free: 6.887 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.3701, allocations: 4 kB / 374.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.3701, allocations: 0 / 374.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3702, allocations: 314.8 kB / 375.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.051e-05/0.3702, allocations: 0 / 375.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.622e-06/0.3703, allocations: 0 / 375.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.686e-05/0.3703, allocations: 29.7 kB / 375.3 MB, free: 6.531 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3703, allocations: 0 / 375.3 MB, free: 6.531 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.153e-05/0.3704, allocations: 71.39 kB / 375.3 MB, free: 6.449 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.3705, allocations: 33.7 kB / 375.4 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3705, allocations: 0 / 375.4 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.3705, allocations: 3.938 kB / 375.4 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-06/0.3705, allocations: 0 / 375.4 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3705, allocations: 0 / 375.4 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.329e-05/0.3706, allocations: 7.953 kB / 375.4 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.3706, allocations: 0 / 375.4 MB, free: 6.398 MB / 298.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 9.962e-05/0.3707, allocations: 135.5 kB / 375.5 MB, free: 6.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.3707, allocations: 4 kB / 375.5 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.157e-05/0.3707, allocations: 7.156 kB / 375.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.3708, allocations: 0 / 375.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3708, allocations: 0 / 375.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3708, allocations: 0 / 375.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.3709, allocations: 145.6 kB / 375.7 MB, free: 6.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3709, allocations: 4 kB / 375.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.076e-06/0.3709, allocations: 3.984 kB / 375.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3709, allocations: 0 / 375.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3709, allocations: 0 / 375.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.371, allocations: 0 / 375.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.371, allocations: 4 kB / 375.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.3711, allocations: 98.72 kB / 375.8 MB, free: 5.918 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.3711, allocations: 77.11 kB / 375.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.3712, allocations: 0 / 375.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.713e-05/0.3712, allocations: 8 kB / 375.8 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.738e-05/0.3712, allocations: 0 / 375.8 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.3712, allocations: 0 / 375.8 MB, free: 5.816 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.357e-05/0.3713, allocations: 79.31 kB / 375.9 MB, free: 5.738 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3713, allocations: 0 / 375.9 MB, free: 5.738 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006308/0.3719, allocations: 137 kB / 376.1 MB, free: 5.605 MB / 298.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.00129/0.3732, allocations: 0.8859 MB / 376.9 MB, free: 4.691 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.3734, allocations: 59.39 kB / 377 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3734, allocations: 0 / 377 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.464e-05/0.3734, allocations: 59.41 kB / 377.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.791e-05/0.3735, allocations: 6.844 kB / 377.1 MB, free: 4.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004634/0.374, allocations: 198 kB / 377.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.3743, allocations: 0.6731 MB / 377.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.619e-05/0.3743, allocations: 11.44 kB / 377.9 MB, free: 3.598 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3743, allocations: 0 / 377.9 MB, free: 3.598 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.419/2.793, allocations: 4.051 MB / 382 MB, free: 15.54 MB / 314.7 MB