Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadModel(Modelica): time 2.137/2.137, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005858/0.0005861, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1264, allocations: 44.51 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4977/0.6242, allocations: 85.49 MB / 394.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.6245, allocations: 74.22 kB / 394.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1113/0.7358, allocations: 33.97 MB / 428.6 MB, free: 5.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.7359, allocations: 0 / 428.6 MB, free: 5.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.7359, allocations: 15.62 kB / 428.6 MB, free: 5.02 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.002606/0.7385, allocations: 1.215 MB / 429.8 MB, free: 4.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.7386, allocations: 11.69 kB / 429.8 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.7388, allocations: 116.7 kB / 429.9 MB, free: 4.051 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/0.7406, allocations: 0.7592 MB / 430.7 MB, free: 3.535 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.7407, allocations: 19.97 kB / 430.7 MB, free: 3.535 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.541e-05/0.7408, allocations: 26.84 kB / 430.7 MB, free: 3.531 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007151/0.7415, allocations: 311.1 kB / 431 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.7415, allocations: 7.984 kB / 431.1 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.399e-05/0.7416, allocations: 6.125 kB / 431.1 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.7416, allocations: 11.73 kB / 431.1 MB, free: 3.418 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006008/0.7422, allocations: 242 kB / 431.3 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.7448, allocations: 1.198 MB / 432.5 MB, free: 2.742 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/0.7453, allocations: 206.1 kB / 432.7 MB, free: 2.695 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01594/0.7613, allocations: 10.71 MB / 443.4 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.7614, allocations: 45.98 kB / 443.5 MB, free: 8.219 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.956e-06/0.7614, allocations: 0 / 443.5 MB, free: 8.219 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.002707/0.7641, allocations: 0.6356 MB / 444.1 MB, free: 7.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.7642, allocations: 81.11 kB / 444.2 MB, free: 7.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.7659, allocations: 0.8035 MB / 445 MB, free: 6.949 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.682e-05/0.766, allocations: 29.45 kB / 445 MB, free: 6.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004665/0.7665, allocations: 434 kB / 445.4 MB, free: 6.711 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.7666, allocations: 78.34 kB / 445.5 MB, free: 6.645 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.091e-05/0.7666, allocations: 3 kB / 445.5 MB, free: 6.645 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.7668, allocations: 324.4 kB / 445.8 MB, free: 6.328 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.7671, allocations: 68.02 kB / 445.9 MB, free: 6.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.7674, allocations: 141.9 kB / 446 MB, free: 6.137 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.7677, allocations: 96.08 kB / 446.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.7677, allocations: 0 / 446.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001168/0.7689, allocations: 405 kB / 446.5 MB, free: 5.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.769, allocations: 4 kB / 446.5 MB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.467e-05/0.769, allocations: 12 kB / 446.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005612/0.7696, allocations: 148.8 kB / 446.7 MB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.7699, allocations: 35.97 kB / 446.7 MB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009731/0.7709, allocations: 0.7035 MB / 447.4 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.7715, allocations: 39.11 kB / 447.5 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/0.7715, allocations: 13.94 kB / 447.5 MB, free: 4.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004898/0.772, allocations: 193.3 kB / 447.7 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.7722, allocations: 106.7 kB / 447.8 MB, free: 4.605 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.7737, allocations: 439.9 kB / 448.2 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.7738, allocations: 11.95 kB / 448.2 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.7738, allocations: 0 / 448.2 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.7738, allocations: 3.984 kB / 448.2 MB, free: 4.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.7748, allocations: 0.4942 MB / 448.7 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.03e-05/0.7749, allocations: 15.98 kB / 448.7 MB, free: 3.816 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.7751, allocations: 15.98 kB / 448.7 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004866/0.7756, allocations: 145.3 kB / 448.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.7757, allocations: 7.875 kB / 448.9 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.7767, allocations: 0.7042 MB / 449.6 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.7767, allocations: 0 / 449.6 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.7779, allocations: 468.4 kB / 450 MB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.7783, allocations: 175.4 kB / 450.2 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.7784, allocations: 7.578 kB / 450.2 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.7789, allocations: 8 kB / 450.2 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/0.779, allocations: 19.91 kB / 450.3 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/0.779, allocations: 12 kB / 450.3 MB, free: 2.387 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001213/0.7802, allocations: 0.5365 MB / 450.8 MB, free: 1.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7803, allocations: 0 / 450.8 MB, free: 1.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00109/0.7814, allocations: 219.1 kB / 451 MB, free: 1.766 MB / 330.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007865/0.7822, allocations: 315.8 kB / 451.3 MB, free: 1.453 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009618/0.7832, allocations: 290 kB / 451.6 MB, free: 1.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.7832, allocations: 0 / 451.6 MB, free: 1.211 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004679/0.7837, allocations: 176.4 kB / 451.8 MB, free: 1.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009048/0.7846, allocations: 130.3 kB / 451.9 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.7878, allocations: 1.395 MB / 453.3 MB, free: 15.63 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007027/0.7886, allocations: 0.9607 MB / 454.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006156/0.7892, allocations: 94.02 kB / 454.4 MB, free: 14.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.7893, allocations: 47.38 kB / 454.4 MB, free: 14.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.011e-06/0.7893, allocations: 4 kB / 454.4 MB, free: 14.5 MB / 346.7 MB Notification: Performance of Templates: time 0.02945/0.8188, allocations: 8.669 MB / 463.1 MB, free: 5.863 MB / 346.7 MB