Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002736/0.002742, allocations: 363.1 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.947/3.947, allocations: 388.9 MB / 405.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003576/0.003576, allocations: 229.1 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5854/0.5854, allocations: 80.03 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006271/0.0006274, allocations: 12 kB / 0.6265 GB, free: 96.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1437, allocations: 54.88 MB / 0.6801 GB, free: 41.69 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.478/0.6218, allocations: 83.88 MB / 0.762 GB, free: 1.527 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.6221, allocations: 69.34 kB / 0.7621 GB, free: 1.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04644/0.6686, allocations: 9.604 MB / 0.7714 GB, free: 9.172 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.6686, allocations: 0 / 0.7714 GB, free: 9.172 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.6686, allocations: 4 kB / 0.7714 GB, free: 9.168 MB / 362.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.0007463/0.6694, allocations: 487.8 kB / 0.7719 GB, free: 8.645 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.6695, allocations: 8.031 kB / 0.7719 GB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.6695, allocations: 3.953 kB / 0.7719 GB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.6696, allocations: 163 kB / 0.7721 GB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.6696, allocations: 4 kB / 0.7721 GB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.6697, allocations: 4 kB / 0.7721 GB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.982e-05/0.6698, allocations: 29.39 kB / 0.7721 GB, free: 8.395 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.6698, allocations: 0 / 0.7721 GB, free: 8.395 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.6698, allocations: 0 / 0.7721 GB, free: 8.395 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.6698, allocations: 10.23 kB / 0.7721 GB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.145e-05/0.6699, allocations: 3.953 kB / 0.7721 GB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.67, allocations: 141.7 kB / 0.7723 GB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.981e-05/0.6701, allocations: 26.55 kB / 0.7723 GB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.953e-05/0.6701, allocations: 8.734 kB / 0.7723 GB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.6701, allocations: 0 / 0.7723 GB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/0.6702, allocations: 56.27 kB / 0.7723 GB, free: 8.082 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.6702, allocations: 0 / 0.7723 GB, free: 8.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001858/0.6704, allocations: 63.45 kB / 0.7724 GB, free: 8.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.6705, allocations: 77.23 kB / 0.7725 GB, free: 7.914 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.355e-05/0.6705, allocations: 101.5 kB / 0.7726 GB, free: 7.809 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.6706, allocations: 25.7 kB / 0.7726 GB, free: 7.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.846e-05/0.6706, allocations: 84.08 kB / 0.7727 GB, free: 7.691 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.6706, allocations: 0 / 0.7727 GB, free: 7.691 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.6707, allocations: 0 / 0.7727 GB, free: 7.691 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.6708, allocations: 314.8 kB / 0.773 GB, free: 7.375 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/0.6708, allocations: 3.984 kB / 0.773 GB, free: 7.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.038e-05/0.6709, allocations: 4 kB / 0.773 GB, free: 7.367 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.579e-05/0.6709, allocations: 29.77 kB / 0.773 GB, free: 7.332 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.6709, allocations: 3.938 kB / 0.773 GB, free: 7.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.499e-05/0.671, allocations: 63.03 kB / 0.7731 GB, free: 7.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.848e-05/0.6711, allocations: 29.7 kB / 0.7731 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.6711, allocations: 0 / 0.7731 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.6711, allocations: 7.984 kB / 0.7731 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.647e-06/0.6711, allocations: 0 / 0.7731 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.6711, allocations: 7.922 kB / 0.7731 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.6712, allocations: 0 / 0.7731 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.6712, allocations: 0 / 0.7731 GB, free: 7.207 MB / 362.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.0001177/0.6713, allocations: 144.3 kB / 0.7733 GB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-06/0.6713, allocations: 3.938 kB / 0.7733 GB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.6714, allocations: 7.078 kB / 0.7733 GB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.6714, allocations: 3.984 kB / 0.7733 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.6714, allocations: 0 / 0.7733 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.6714, allocations: 0 / 0.7733 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.6716, allocations: 157.1 kB / 0.7734 GB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.6716, allocations: 0 / 0.7734 GB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-06/0.6716, allocations: 4 kB / 0.7734 GB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.6716, allocations: 4 kB / 0.7734 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.6716, allocations: 0 / 0.7734 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.6716, allocations: 0 / 0.7734 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.6716, allocations: 0 / 0.7734 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.6718, allocations: 94.47 kB / 0.7735 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.6718, allocations: 77.11 kB / 0.7736 GB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.6719, allocations: 4 kB / 0.7736 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.15e-05/0.6719, allocations: 0 / 0.7736 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.854e-05/0.6719, allocations: 4.031 kB / 0.7736 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.6719, allocations: 3.984 kB / 0.7736 GB, free: 6.609 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.032e-05/0.672, allocations: 79.28 kB / 0.7737 GB, free: 6.531 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.672, allocations: 3.938 kB / 0.7737 GB, free: 6.527 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008557/0.6728, allocations: 177.7 kB / 0.7739 GB, free: 6.371 MB / 362.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.001163/0.674, allocations: 406.8 kB / 0.7742 GB, free: 5.992 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.6742, allocations: 59.41 kB / 0.7743 GB, free: 5.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.6742, allocations: 3.938 kB / 0.7743 GB, free: 5.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.202e-05/0.6742, allocations: 58.91 kB / 0.7744 GB, free: 5.852 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.6744, allocations: 3.953 kB / 0.7744 GB, free: 5.848 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002215/0.6746, allocations: 87.31 kB / 0.7744 GB, free: 5.734 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.675, allocations: 0.6692 MB / 0.7751 GB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.102e-06/0.675, allocations: 0 / 0.7751 GB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.29e-05/0.675, allocations: 11.44 kB / 0.7751 GB, free: 5.027 MB / 362.7 MB Notification: Performance of SimCode: time 8.12e-07/0.675, allocations: 0 / 0.7751 GB, free: 5.027 MB / 362.7 MB Notification: Performance of Templates: time 0.01218/0.6872, allocations: 4.037 MB / 0.7791 GB, free: 1 MB / 362.7 MB