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.DifferenceAmplifier.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.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 1.003/1.003, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.913e-05/1.917e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04428/0.04432, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1735/0.2178, allocations: 36.82 MB / 210.1 MB, free: 6.984 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.2181, allocations: 60.2 kB / 210.2 MB, free: 6.984 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05676/0.2748, allocations: 15.25 MB / 225.4 MB, free: 2.824 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.187e-06/0.2749, allocations: 4 kB / 225.4 MB, free: 2.82 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.446e-05/0.275, allocations: 19.5 kB / 225.4 MB, free: 2.816 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.003537/0.2785, allocations: 1.218 MB / 226.7 MB, free: 2.062 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.2786, allocations: 7.406 kB / 226.7 MB, free: 2.062 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002795/0.2788, allocations: 104.7 kB / 226.8 MB, free: 2.012 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008259/0.2797, allocations: 0.5054 MB / 227.3 MB, free: 1.672 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.2797, allocations: 27.06 kB / 227.3 MB, free: 1.672 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.2799, allocations: 54.48 kB / 227.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002152/0.2821, allocations: 0.841 MB / 228.2 MB, free: 1.625 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.2839, allocations: 0.8432 MB / 229 MB, free: 1.406 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/0.284, allocations: 0 / 229 MB, free: 1.406 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.2841, allocations: 3.938 kB / 229 MB, free: 1.402 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.2841, allocations: 23.09 kB / 229.1 MB, free: 1.398 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006692/0.2908, allocations: 3.339 MB / 232.4 MB, free: 15.83 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.2925, allocations: 0.7783 MB / 233.2 MB, free: 15.77 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008299/0.2934, allocations: 445.7 kB / 233.6 MB, free: 15.74 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.672e-05/0.2934, allocations: 15.89 kB / 233.6 MB, free: 15.73 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.2935, allocations: 41.72 kB / 233.7 MB, free: 15.7 MB / 186.7 MB Notification: Performance of pre-optimization done (n=67): time 3.996e-06/0.2935, allocations: 0 / 233.7 MB, free: 15.7 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.00571/0.2992, allocations: 1.986 MB / 235.7 MB, free: 14.42 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.2993, allocations: 60.17 kB / 235.7 MB, free: 14.35 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006827/0.3, allocations: 406 kB / 236.1 MB, free: 13.95 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 9.336e-05/0.3001, allocations: 25.7 kB / 236.1 MB, free: 13.91 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.3005, allocations: 437.8 kB / 236.6 MB, free: 13.48 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/0.3008, allocations: 240.4 kB / 236.8 MB, free: 13.24 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/0.3009, allocations: 4 kB / 236.8 MB, free: 13.24 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.3011, allocations: 346.8 kB / 237.1 MB, free: 12.89 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008759/0.302, allocations: 338.1 kB / 237.5 MB, free: 12.56 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009978/0.303, allocations: 456.4 kB / 237.9 MB, free: 12.08 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.3041, allocations: 387.5 kB / 238.3 MB, free: 11.7 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.637e-06/0.3041, allocations: 0 / 238.3 MB, free: 11.7 MB / 186.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00302/0.3072, allocations: 1.04 MB / 239.3 MB, free: 10.66 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.3072, allocations: 4 kB / 239.3 MB, free: 10.65 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3072, allocations: 4 kB / 239.3 MB, free: 10.65 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007491/0.308, allocations: 181.4 kB / 239.5 MB, free: 10.47 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.3097, allocations: 283.6 kB / 239.8 MB, free: 10.19 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004847/0.3146, allocations: 2.533 MB / 242.3 MB, free: 7.543 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.316, allocations: 112 kB / 242.4 MB, free: 7.434 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.3161, allocations: 32.05 kB / 242.5 MB, free: 7.402 MB / 186.7 MB Warning: Assuming fixed start value for the following 9 variables: Transistor2.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor2.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Transistor1.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor1.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C3.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C5.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C4.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * 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: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003792/0.3165, allocations: 137.4 kB / 242.6 MB, free: 7.262 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.3168, allocations: 71.2 kB / 242.7 MB, free: 7.191 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002677/0.317, allocations: 74.27 kB / 242.8 MB, free: 7.113 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.3171, allocations: 11.94 kB / 242.8 MB, free: 7.102 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.3171, allocations: 4 kB / 242.8 MB, free: 7.098 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.3171, allocations: 7.922 kB / 242.8 MB, free: 7.09 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.3188, allocations: 0.8911 MB / 243.7 MB, free: 6.176 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.628e-06/0.3189, allocations: 0 / 243.7 MB, free: 6.176 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/0.3205, allocations: 239.7 kB / 243.9 MB, free: 5.941 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007473/0.3212, allocations: 176.7 kB / 244.1 MB, free: 5.766 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.3214, allocations: 11.98 kB / 244.1 MB, free: 5.754 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004701/0.3261, allocations: 2.53 MB / 246.6 MB, free: 3.109 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.423e-06/0.3261, allocations: 4 kB / 246.6 MB, free: 3.105 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004156/0.3303, allocations: 1.526 MB / 248.1 MB, free: 1.562 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005929/0.3309, allocations: 240.2 kB / 248.4 MB, free: 1.309 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.3311, allocations: 8 kB / 248.4 MB, free: 1.301 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.3323, allocations: 135.9 kB / 248.5 MB, free: 1.168 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.3325, allocations: 52.7 kB / 248.6 MB, free: 1.117 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.3327, allocations: 27.97 kB / 248.6 MB, free: 1.09 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0005214/0.3332, allocations: 307 kB / 248.9 MB, free: 0.7891 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.237e-06/0.3332, allocations: 0 / 248.9 MB, free: 0.7891 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001167/0.3344, allocations: 212 kB / 249.1 MB, free: 0.582 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000287/0.3347, allocations: 135.2 kB / 249.2 MB, free: 456 kB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002875/0.3376, allocations: 1.058 MB / 250.3 MB, free: 15.38 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.313e-06/0.3376, allocations: 0 / 250.3 MB, free: 15.38 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001789/0.3394, allocations: 0.6574 MB / 251 MB, free: 14.71 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009788/0.3404, allocations: 114.1 kB / 251.1 MB, free: 14.6 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003566/0.344, allocations: 1.605 MB / 252.7 MB, free: 12.96 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007948/0.3448, allocations: 0.9774 MB / 253.6 MB, free: 11.95 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005909/0.3454, allocations: 63.39 kB / 253.7 MB, free: 11.89 MB / 202.7 MB Notification: Performance of SimCode: time 1.788e-06/0.3454, allocations: 0 / 253.7 MB, free: 11.89 MB / 202.7 MB Notification: Performance of Templates: time 0.02561/0.3711, allocations: 14.23 MB / 267.9 MB, free: 13.65 MB / 218.7 MB