Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ChuaCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="C1.v|C2.v|L.i|Time",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit") Notification: Performance of loadModel(Modelica): time 1.067/1.067, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.748e-05/1.757e-05, allocations: 0 / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04544/0.04548, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.2153, allocations: 33.86 MB / 207.2 MB, free: 6.992 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001851/0.2155, allocations: 63.11 kB / 207.2 MB, free: 6.992 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01052/0.226, allocations: 2.96 MB / 210.2 MB, free: 6.488 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.96e-06/0.2261, allocations: 5.062 kB / 210.2 MB, free: 6.484 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.2261, allocations: 3.469 kB / 210.2 MB, free: 6.484 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005803/0.2267, allocations: 445.5 kB / 210.6 MB, free: 6.105 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.2268, allocations: 13.12 kB / 210.6 MB, free: 6.102 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.358e-05/0.2268, allocations: 22.19 kB / 210.7 MB, free: 6.094 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.2271, allocations: 213.7 kB / 210.9 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.2271, allocations: 5.75 kB / 210.9 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.2272, allocations: 10.92 kB / 210.9 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002823/0.2275, allocations: 108.2 kB / 211 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000312/0.2278, allocations: 141.5 kB / 211.1 MB, free: 5.844 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.2278, allocations: 5.359 kB / 211.1 MB, free: 5.84 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.2279, allocations: 1.188 kB / 211.1 MB, free: 5.84 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.068e-06/0.2279, allocations: 3.906 kB / 211.1 MB, free: 5.84 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.2292, allocations: 0.7164 MB / 211.8 MB, free: 5.457 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.2295, allocations: 132.1 kB / 212 MB, free: 5.426 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.2296, allocations: 81.47 kB / 212.1 MB, free: 5.418 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.2296, allocations: 0 / 212.1 MB, free: 5.418 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.2297, allocations: 33.06 kB / 212.1 MB, free: 5.379 MB / 170.7 MB Notification: Performance of pre-optimization done (n=13): time 2.164e-06/0.2297, allocations: 4 kB / 212.1 MB, free: 5.375 MB / 170.7 MB Notification: Performance of matching and sorting (n=13): time 0.00029/0.23, allocations: 110.1 kB / 212.2 MB, free: 5.34 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.332e-05/0.23, allocations: 52.72 kB / 212.3 MB, free: 5.277 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.2301, allocations: 134.2 kB / 212.4 MB, free: 5.18 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.2302, allocations: 29.64 kB / 212.4 MB, free: 5.145 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.057e-05/0.2302, allocations: 204.2 kB / 212.6 MB, free: 4.969 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.2303, allocations: 48.2 kB / 212.7 MB, free: 4.938 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.269e-06/0.2303, allocations: 0 / 212.7 MB, free: 4.938 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.034e-05/0.2304, allocations: 318.6 kB / 213 MB, free: 4.621 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.288e-05/0.2305, allocations: 37.22 kB / 213 MB, free: 4.621 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-05/0.2306, allocations: 54.06 kB / 213.1 MB, free: 4.602 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.996e-05/0.2307, allocations: 44.27 kB / 213.1 MB, free: 4.602 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2307, allocations: 0 / 213.1 MB, free: 4.602 MB / 170.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002647/0.231, allocations: 139.1 kB / 213.2 MB, free: 4.559 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.231, allocations: 8.719 kB / 213.2 MB, free: 4.555 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.904e-06/0.231, allocations: 1.531 kB / 213.2 MB, free: 4.555 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.231, allocations: 5.5 kB / 213.3 MB, free: 4.551 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.2313, allocations: 43.7 kB / 213.3 MB, free: 4.551 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2313, allocations: 1.312 kB / 213.3 MB, free: 4.551 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.2315, allocations: 14.53 kB / 213.3 MB, free: 4.543 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.2315, allocations: 4 kB / 213.3 MB, free: 4.543 MB / 170.7 MB Warning: Assuming fixed start value for the following 3 variables: C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(start = 4.0 unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real L.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.0001358/0.2317, allocations: 119 kB / 213.4 MB, free: 4.426 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.125e-05/0.2317, allocations: 13.25 kB / 213.4 MB, free: 4.418 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.924e-05/0.2318, allocations: 14.47 kB / 213.5 MB, free: 4.41 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.896e-06/0.2318, allocations: 1.344 kB / 213.5 MB, free: 4.41 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.872e-06/0.2318, allocations: 1.312 kB / 213.5 MB, free: 4.41 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.133e-06/0.2318, allocations: 3.047 kB / 213.5 MB, free: 4.41 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.2321, allocations: 216.7 kB / 213.7 MB, free: 4.254 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.219e-06/0.2321, allocations: 3.953 kB / 213.7 MB, free: 4.25 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002803/0.2324, allocations: 41.7 kB / 213.7 MB, free: 4.246 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.2324, allocations: 1.562 kB / 213.7 MB, free: 4.246 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.2325, allocations: 3.625 kB / 213.7 MB, free: 4.246 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.043e-06/0.2325, allocations: 1.531 kB / 213.7 MB, free: 4.246 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.826e-06/0.2325, allocations: 3.984 kB / 213.7 MB, free: 4.242 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003488/0.2328, allocations: 266.8 kB / 214 MB, free: 4.098 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.2329, allocations: 95.19 kB / 214.1 MB, free: 3.992 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.2329, allocations: 1.469 kB / 214.1 MB, free: 3.992 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.2331, allocations: 17.06 kB / 214.1 MB, free: 3.988 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.2332, allocations: 8.375 kB / 214.1 MB, free: 3.988 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.2332, allocations: 1.812 kB / 214.1 MB, free: 3.988 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.804e-05/0.2333, allocations: 108.4 kB / 214.2 MB, free: 3.914 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.89e-07/0.2333, allocations: 0 / 214.2 MB, free: 3.914 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003788/0.2337, allocations: 47.25 kB / 214.3 MB, free: 3.902 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,C1.v,C2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0001183/0.2338, allocations: 100.8 kB / 214.4 MB, free: 3.812 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002318/0.2341, allocations: 106.4 kB / 214.5 MB, free: 3.805 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.523e-06/0.2341, allocations: 1.531 kB / 214.5 MB, free: 3.805 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 9.474e-05/0.2342, allocations: 48.72 kB / 214.5 MB, free: 3.801 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.2346, allocations: 31.05 kB / 214.5 MB, free: 3.793 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008287/0.2354, allocations: 413.6 kB / 215 MB, free: 3.508 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/0.2356, allocations: 0.7258 MB / 215.7 MB, free: 2.812 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.168e-05/0.2357, allocations: 13.94 kB / 215.7 MB, free: 2.805 MB / 170.7 MB Notification: Performance of SimCode: time 1.318e-06/0.2357, allocations: 0 / 215.7 MB, free: 2.805 MB / 170.7 MB Notification: Performance of Templates: time 0.003924/0.2396, allocations: 1.915 MB / 217.6 MB, free: 2.672 MB / 170.7 MB