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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.147/1.147, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002632, allocations: 4 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04605/0.04634, allocations: 25.17 MB / 183.5 MB, free: 5.965 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.2184, allocations: 34.62 MB / 218.1 MB, free: 6.516 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.2186, allocations: 67.78 kB / 218.2 MB, free: 6.508 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01005/0.2287, allocations: 2.986 MB / 221.2 MB, free: 5.25 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.681e-06/0.2287, allocations: 0 / 221.2 MB, free: 5.25 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.2287, allocations: 7.844 kB / 221.2 MB, free: 5.246 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.0006109/0.2294, allocations: 463.6 kB / 221.6 MB, free: 4.828 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.2294, allocations: 7.656 kB / 221.6 MB, free: 4.828 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.2295, allocations: 23.22 kB / 221.7 MB, free: 4.816 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.2297, allocations: 215.7 kB / 221.9 MB, free: 4.598 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.2297, allocations: 15.86 kB / 221.9 MB, free: 4.598 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/0.2298, allocations: 17.25 kB / 221.9 MB, free: 4.598 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/0.2302, allocations: 178.3 kB / 222.1 MB, free: 4.531 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.2302, allocations: 3.812 kB / 222.1 MB, free: 4.531 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.2303, allocations: 9.891 kB / 222.1 MB, free: 4.527 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.71e-06/0.2303, allocations: 5.266 kB / 222.1 MB, free: 4.527 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003758/0.2307, allocations: 148.5 kB / 222.2 MB, free: 4.508 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.2319, allocations: 0.761 MB / 223 MB, free: 3.984 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004459/0.2324, allocations: 172.2 kB / 223.2 MB, free: 3.934 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.2324, allocations: 7.688 kB / 223.2 MB, free: 3.93 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.2325, allocations: 34.12 kB / 223.2 MB, free: 3.891 MB / 170.7 MB Notification: Performance of pre-optimization done (n=13): time 2.644e-06/0.2325, allocations: 0 / 223.2 MB, free: 3.891 MB / 170.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005575/0.233, allocations: 202.3 kB / 223.4 MB, free: 3.824 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.2331, allocations: 51.41 kB / 223.5 MB, free: 3.762 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.2332, allocations: 138 kB / 223.6 MB, free: 3.66 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.2332, allocations: 25.7 kB / 223.6 MB, free: 3.629 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.2333, allocations: 203.4 kB / 223.8 MB, free: 3.445 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.2333, allocations: 41.86 kB / 223.9 MB, free: 3.414 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.746e-06/0.2334, allocations: 3.25 kB / 223.9 MB, free: 3.414 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.277e-05/0.2334, allocations: 322.5 kB / 224.2 MB, free: 3.098 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.2336, allocations: 49.95 kB / 224.2 MB, free: 3.09 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.2338, allocations: 70.77 kB / 224.3 MB, free: 3.062 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.2339, allocations: 62.77 kB / 224.4 MB, free: 3.055 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.647e-06/0.234, allocations: 4 kB / 224.4 MB, free: 3.051 MB / 170.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004139/0.2344, allocations: 174.8 kB / 224.5 MB, free: 2.996 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2344, allocations: 3.812 kB / 224.5 MB, free: 2.996 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.799e-06/0.2344, allocations: 0 / 224.5 MB, free: 2.996 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.2345, allocations: 3.906 kB / 224.5 MB, free: 2.996 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.2347, allocations: 52.81 kB / 224.6 MB, free: 2.98 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.869e-06/0.2347, allocations: 3.984 kB / 224.6 MB, free: 2.977 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.2349, allocations: 20.03 kB / 224.6 MB, free: 2.969 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.2349, allocations: 3.875 kB / 224.6 MB, free: 2.969 MB / 170.7 MB Warning: Assuming fixed start value for the following 3 variables: C2.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(start = 4.0 unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real L.i:VARIABLE(unit = "A" fixed = true ) "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 () * Number of clocked 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.0001904/0.2351, allocations: 145.4 kB / 224.8 MB, free: 2.84 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.2352, allocations: 15.53 kB / 224.8 MB, free: 2.828 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.784e-05/0.2352, allocations: 20.19 kB / 224.8 MB, free: 2.824 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.044e-06/0.2352, allocations: 0 / 224.8 MB, free: 2.824 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.367e-06/0.2353, allocations: 0 / 224.8 MB, free: 2.824 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.471e-06/0.2353, allocations: 5.172 kB / 224.8 MB, free: 2.82 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.2356, allocations: 268 kB / 225.1 MB, free: 2.594 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.485e-06/0.2356, allocations: 0 / 225.1 MB, free: 2.594 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.2359, allocations: 44.98 kB / 225.1 MB, free: 2.586 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.067e-06/0.2359, allocations: 4 kB / 225.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.2359, allocations: 0 / 225.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.521e-06/0.2359, allocations: 0 / 225.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.722e-06/0.2359, allocations: 0 / 225.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005426/0.2365, allocations: 319.8 kB / 225.4 MB, free: 2.41 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.2366, allocations: 96.66 kB / 225.5 MB, free: 2.301 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.2366, allocations: 3.438 kB / 225.5 MB, free: 2.301 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.2368, allocations: 18.81 kB / 225.5 MB, free: 2.297 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.493e-05/0.2369, allocations: 7.703 kB / 225.5 MB, free: 2.293 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.2369, allocations: 3.688 kB / 225.6 MB, free: 2.293 MB / 170.7 MB Notification: Performance of sorting global known variables: time 8.408e-05/0.237, allocations: 119.2 kB / 225.7 MB, free: 2.207 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.23e-07/0.237, allocations: 0 / 225.7 MB, free: 2.207 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0008145/0.2378, allocations: 50.84 kB / 225.7 MB, free: 2.199 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 () * Number of clocked 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.0002032/0.2381, allocations: 101.9 kB / 225.8 MB, free: 2.105 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0007751/0.2389, allocations: 146.2 kB / 226 MB, free: 2.078 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.805e-06/0.2389, allocations: 0 / 226 MB, free: 2.078 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003426/0.2393, allocations: 62.84 kB / 226 MB, free: 2.066 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007834/0.2401, allocations: 36.78 kB / 226.1 MB, free: 2.055 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.2421, allocations: 0.6377 MB / 226.7 MB, free: 1.555 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.2424, allocations: 0.7265 MB / 227.4 MB, free: 0.8359 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.2425, allocations: 15.12 kB / 227.4 MB, free: 0.8281 MB / 170.7 MB Notification: Performance of SimCode: time 2.153e-06/0.2425, allocations: 7.938 kB / 227.4 MB, free: 0.8203 MB / 170.7 MB Notification: Performance of Templates: time 0.006906/0.2495, allocations: 1.978 MB / 229.4 MB, free: 15.85 MB / 186.7 MB