Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.225/1.225, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006335/0.000634, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05458/0.05528, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2334/0.2888, allocations: 37.57 MB / 221.6 MB, free: 5.695 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.2891, allocations: 69.75 kB / 221.7 MB, free: 5.688 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1011/0.3902, allocations: 15.37 MB / 237 MB, free: 11.71 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.3903, allocations: 0 / 237 MB, free: 11.71 MB / 186.7 MB Notification: Performance of Transformations before backend: time 9.584e-05/0.3904, allocations: 20 kB / 237.1 MB, free: 11.7 MB / 186.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.008129/0.3985, allocations: 1.291 MB / 238.4 MB, free: 10.42 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.208e-05/0.3986, allocations: 16.03 kB / 238.4 MB, free: 10.4 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006509/0.3993, allocations: 102.8 kB / 238.5 MB, free: 10.3 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.4012, allocations: 0.511 MB / 239 MB, free: 9.859 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.4013, allocations: 60.88 kB / 239 MB, free: 9.824 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003979/0.4017, allocations: 90.7 kB / 239.1 MB, free: 9.762 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007433/0.4092, allocations: 1.17 MB / 240.3 MB, free: 8.918 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.309e-05/0.4093, allocations: 0 / 240.3 MB, free: 8.918 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002459/0.4095, allocations: 33.31 kB / 240.3 MB, free: 8.91 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.925e-05/0.4096, allocations: 20 kB / 240.4 MB, free: 8.891 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009337/0.419, allocations: 1.303 MB / 241.7 MB, free: 7.953 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01401/0.433, allocations: 3.491 MB / 245.1 MB, free: 5.32 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005639/0.4387, allocations: 1.197 MB / 246.3 MB, free: 4.215 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001221/0.4389, allocations: 8.562 kB / 246.4 MB, free: 4.207 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.439, allocations: 47.06 kB / 246.4 MB, free: 4.152 MB / 186.7 MB Notification: Performance of pre-optimization done (n=67): time 3.116e-06/0.439, allocations: 0 / 246.4 MB, free: 4.152 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.01689/0.4559, allocations: 3.511 MB / 249.9 MB, free: 0.5703 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.456, allocations: 60.06 kB / 250 MB, free: 0.5 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009971/0.457, allocations: 0.5068 MB / 250.5 MB, free: 15.98 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002401/0.4573, allocations: 37.7 kB / 250.5 MB, free: 15.94 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.4576, allocations: 433.8 kB / 250.9 MB, free: 15.51 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003383/0.458, allocations: 260.2 kB / 251.2 MB, free: 15.25 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.4581, allocations: 16 kB / 251.2 MB, free: 15.24 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4582, allocations: 334.8 kB / 251.5 MB, free: 14.9 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002698/0.4609, allocations: 0.5563 MB / 252.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002877/0.4639, allocations: 0.6728 MB / 252.8 MB, free: 13.63 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002921/0.4668, allocations: 0.5896 MB / 253.4 MB, free: 13.04 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.4669, allocations: 0 / 253.4 MB, free: 13.04 MB / 202.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.007105/0.474, allocations: 1.521 MB / 254.9 MB, free: 11.52 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.4741, allocations: 8.562 kB / 254.9 MB, free: 11.51 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.4741, allocations: 4 kB / 254.9 MB, free: 11.5 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009439/0.475, allocations: 177.5 kB / 255.1 MB, free: 11.33 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/0.4778, allocations: 299.6 kB / 255.4 MB, free: 11.04 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00605/0.4839, allocations: 2.645 MB / 258 MB, free: 8.242 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/0.4862, allocations: 132.1 kB / 258.1 MB, free: 8.113 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/0.4864, allocations: 35.98 kB / 258.2 MB, free: 8.078 MB / 202.7 MB Warning: Assuming fixed start value for the following 9 variables: Transistor2.Tr.C.v:VARIABLE(flow=false unit = "V" fixed = true ) "Potential at the pin" type: Real Transistor2.ct.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Transistor1.Tr.C.v:VARIABLE(flow=false unit = "V" fixed = true ) "Potential at the pin" type: Real Transistor1.ct.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C3.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C2.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C5.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C4.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(unit = "V" fixed = true ) "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 () * Number of clocked 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.0008323/0.4873, allocations: 248.2 kB / 258.4 MB, free: 7.828 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.4876, allocations: 71.2 kB / 258.5 MB, free: 7.758 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.4879, allocations: 90.22 kB / 258.6 MB, free: 7.664 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.4879, allocations: 4 kB / 258.6 MB, free: 7.66 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.288e-05/0.488, allocations: 4 kB / 258.6 MB, free: 7.656 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.488, allocations: 3.984 kB / 258.6 MB, free: 7.652 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.4901, allocations: 0.9976 MB / 259.6 MB, free: 6.605 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4901, allocations: 7.938 kB / 259.6 MB, free: 6.598 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002475/0.4926, allocations: 243.7 kB / 259.8 MB, free: 6.359 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009554/0.4936, allocations: 168.7 kB / 260 MB, free: 6.191 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/0.4938, allocations: 27.97 kB / 260 MB, free: 6.164 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005819/0.4996, allocations: 2.668 MB / 262.7 MB, free: 3.367 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4997, allocations: 0 / 262.7 MB, free: 3.367 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/0.5098, allocations: 2.18 MB / 264.9 MB, free: 1.168 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007375/0.5106, allocations: 244.2 kB / 265.1 MB, free: 0.9102 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002722/0.5109, allocations: 19.94 kB / 265.1 MB, free: 0.8906 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/0.513, allocations: 155.8 kB / 265.3 MB, free: 0.7383 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/0.5132, allocations: 48.58 kB / 265.3 MB, free: 0.6914 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.5134, allocations: 23.98 kB / 265.3 MB, free: 0.668 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0007001/0.5141, allocations: 362.8 kB / 265.7 MB, free: 320 kB / 202.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5141, allocations: 0 / 265.7 MB, free: 320 kB / 202.7 MB Notification: Performance of remove unused functions: time 0.001363/0.5155, allocations: 244.1 kB / 265.9 MB, free: 76 kB / 202.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 () * Number of clocked 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.0003863/0.5159, allocations: 139.3 kB / 266.1 MB, free: 15.93 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.008023/0.5239, allocations: 1.522 MB / 267.6 MB, free: 14.39 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.524, allocations: 0 / 267.6 MB, free: 14.39 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004145/0.5282, allocations: 0.893 MB / 268.5 MB, free: 13.48 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/0.53, allocations: 174.8 kB / 268.7 MB, free: 13.31 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006599/0.5366, allocations: 2.533 MB / 271.2 MB, free: 10.75 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006776/0.5374, allocations: 0.9775 MB / 272.2 MB, free: 9.742 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008104/0.5382, allocations: 59.39 kB / 272.2 MB, free: 9.684 MB / 218.7 MB Notification: Performance of SimCode: time 5.751e-06/0.5382, allocations: 0 / 272.2 MB, free: 9.684 MB / 218.7 MB Notification: Performance of Templates: time 0.03216/0.5704, allocations: 14.64 MB / 286.9 MB, free: 11.04 MB / 234.7 MB