Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadModel(ModelicaTest): time 2.243/2.243, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009155/0.0009157, allocations: 12 kB / 314.3 MB, free: 9.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.358, allocations: 54.88 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005607/0.3586, allocations: 200.5 kB / 369.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003823/0.3624, allocations: 2.137 MB / 371.5 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.997e-05/0.3625, allocations: 3.938 kB / 371.5 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.781e-06/0.3625, allocations: 0 / 371.5 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.966e-06/0.3625, allocations: 0 / 371.5 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003294/0.3658, allocations: 0.9036 MB / 372.4 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.656e-05/0.3659, allocations: 0 / 372.4 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.3659, allocations: 0 / 372.4 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.685e-05/0.366, allocations: 4 kB / 372.4 MB, free: 7.445 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.051e-05/0.366, allocations: 0 / 372.4 MB, free: 7.445 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.899e-06/0.366, allocations: 0 / 372.4 MB, free: 7.445 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001652/0.3677, allocations: 0.8037 MB / 373.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.695e-06/0.3677, allocations: 0 / 373.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.3677, allocations: 29.7 kB / 373.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004894/0.3682, allocations: 255.5 kB / 373.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.3683, allocations: 0 / 373.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.82e-06/0.3683, allocations: 0 / 373.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.336e-06/0.3683, allocations: 4 kB / 373.5 MB, free: 6.352 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.0004775/0.3688, allocations: 425 kB / 373.9 MB, free: 5.883 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3688, allocations: 12.03 kB / 373.9 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.532e-05/0.3689, allocations: 4 kB / 373.9 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.369, allocations: 163 kB / 374.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.369, allocations: 0 / 374.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.723e-06/0.369, allocations: 3.938 kB / 374.1 MB, free: 5.664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.04e-05/0.3691, allocations: 29.7 kB / 374.1 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.477e-06/0.3692, allocations: 0 / 374.1 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.281e-06/0.3692, allocations: 0 / 374.1 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.461e-06/0.3692, allocations: 3.953 kB / 374.1 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.194e-05/0.3692, allocations: 3.984 kB / 374.1 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001719/0.3694, allocations: 157.7 kB / 374.3 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.148e-05/0.3695, allocations: 18.52 kB / 374.3 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.3695, allocations: 3.984 kB / 374.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.376e-05/0.3695, allocations: 60.36 kB / 374.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.075e-06/0.3696, allocations: 0 / 374.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001874/0.3697, allocations: 71.28 kB / 374.4 MB, free: 5.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.443e-05/0.3698, allocations: 85.23 kB / 374.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.581e-05/0.3699, allocations: 93.81 kB / 374.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.37, allocations: 25.7 kB / 374.6 MB, free: 4.996 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.37, allocations: 150.6 kB / 374.8 MB, free: 4.848 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.3701, allocations: 0 / 374.8 MB, free: 4.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-06/0.3701, allocations: 0 / 374.8 MB, free: 4.848 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3702, allocations: 314.8 kB / 375.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.702e-05/0.3703, allocations: 4 kB / 375.1 MB, free: 4.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.036e-05/0.3703, allocations: 7.938 kB / 375.1 MB, free: 4.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.553e-05/0.3703, allocations: 29.69 kB / 375.1 MB, free: 4.484 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.258e-06/0.3704, allocations: 0 / 375.1 MB, free: 4.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001174/0.3705, allocations: 63.41 kB / 375.2 MB, free: 4.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.11e-05/0.3705, allocations: 29.7 kB / 375.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.756e-06/0.3706, allocations: 7.984 kB / 375.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.3706, allocations: 0 / 375.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.497e-06/0.3706, allocations: 0 / 375.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.88e-06/0.3706, allocations: 3.984 kB / 375.2 MB, free: 4.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.89e-05/0.3706, allocations: 0 / 375.2 MB, free: 4.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.3707, allocations: 8.047 kB / 375.3 MB, free: 4.355 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 0.0001091/0.3708, allocations: 135.5 kB / 375.4 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.705e-06/0.3708, allocations: 0 / 375.4 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.891e-06/0.3708, allocations: 3.125 kB / 375.4 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.3708, allocations: 0 / 375.4 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.114e-06/0.3708, allocations: 3.938 kB / 375.4 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.006e-06/0.3708, allocations: 4 kB / 375.4 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.371, allocations: 153.6 kB / 375.5 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-06/0.371, allocations: 0 / 375.5 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.245e-06/0.371, allocations: 4 kB / 375.5 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.371, allocations: 0 / 375.5 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.959e-06/0.371, allocations: 0 / 375.5 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.963e-06/0.3711, allocations: 7.938 kB / 375.6 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.615e-06/0.3711, allocations: 0 / 375.6 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.3712, allocations: 90.78 kB / 375.6 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.3713, allocations: 81.11 kB / 375.7 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.3713, allocations: 0 / 375.7 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.29e-05/0.3713, allocations: 4.031 kB / 375.7 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.3713, allocations: 0 / 375.7 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.212e-06/0.3714, allocations: 0 / 375.7 MB, free: 3.773 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.025e-05/0.3714, allocations: 75.28 kB / 375.8 MB, free: 3.699 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.14e-07/0.3714, allocations: 4 kB / 375.8 MB, free: 3.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005775/0.372, allocations: 140.7 kB / 375.9 MB, free: 3.559 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.0008685/0.3729, allocations: 369.9 kB / 376.3 MB, free: 3.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.802e-05/0.373, allocations: 55.41 kB / 376.4 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.499e-06/0.373, allocations: 0 / 376.4 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.075e-05/0.3731, allocations: 59.41 kB / 376.4 MB, free: 3.059 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.737e-05/0.3732, allocations: 12.06 kB / 376.4 MB, free: 3.047 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000191/0.3734, allocations: 104.4 kB / 376.5 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.3737, allocations: 0.6731 MB / 377.2 MB, free: 2.215 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.4e-05/0.3738, allocations: 11.44 kB / 377.2 MB, free: 2.203 MB / 298.7 MB Notification: Performance of SimCode: time 1.289e-06/0.3738, allocations: 0 / 377.2 MB, free: 2.203 MB / 298.7 MB Notification: Performance of Templates: time 0.007872/0.3817, allocations: 3.897 MB / 381.1 MB, free: 14.3 MB / 314.7 MB