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/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.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.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002666, allocations: 4 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04612/0.04642, allocations: 25.17 MB / 183.5 MB, free: 5.98 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1763/0.2228, allocations: 37.58 MB / 221.1 MB, free: 5.707 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.223, allocations: 65.53 kB / 221.1 MB, free: 5.699 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05773/0.2808, allocations: 15.38 MB / 236.5 MB, free: 11.67 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.496e-06/0.2808, allocations: 0 / 236.5 MB, free: 11.67 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.643e-05/0.2809, allocations: 20 kB / 236.5 MB, free: 11.65 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.003958/0.2849, allocations: 1.29 MB / 237.8 MB, free: 10.36 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.2849, allocations: 11.97 kB / 237.8 MB, free: 10.35 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003665/0.2853, allocations: 102.8 kB / 237.9 MB, free: 10.25 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000998/0.2863, allocations: 0.514 MB / 238.5 MB, free: 9.805 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.307e-05/0.2864, allocations: 64.86 kB / 238.5 MB, free: 9.77 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/0.2866, allocations: 86.83 kB / 238.6 MB, free: 9.711 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00347/0.2901, allocations: 1.158 MB / 239.8 MB, free: 8.875 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.2902, allocations: 4 kB / 239.8 MB, free: 8.871 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.2903, allocations: 34.94 kB / 239.8 MB, free: 8.863 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.2904, allocations: 20 kB / 239.8 MB, free: 8.844 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004563/0.295, allocations: 1.304 MB / 241.1 MB, free: 7.902 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00822/0.3032, allocations: 3.487 MB / 244.6 MB, free: 5.273 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004056/0.3073, allocations: 1.197 MB / 245.8 MB, free: 4.156 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.543e-05/0.3074, allocations: 8.562 kB / 245.8 MB, free: 4.148 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.3075, allocations: 43.08 kB / 245.9 MB, free: 4.098 MB / 186.7 MB Notification: Performance of pre-optimization done (n=67): time 4.035e-06/0.3075, allocations: 0 / 245.9 MB, free: 4.098 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.01237/0.3199, allocations: 3.511 MB / 249.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.32, allocations: 60.06 kB / 249.4 MB, free: 456 kB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009079/0.3209, allocations: 462.1 kB / 249.9 MB, free: 15.98 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001944/0.3211, allocations: 37.7 kB / 249.9 MB, free: 15.94 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.3215, allocations: 429.8 kB / 250.3 MB, free: 15.52 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003112/0.3218, allocations: 256.2 kB / 250.6 MB, free: 15.27 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.3219, allocations: 16 kB / 250.6 MB, free: 15.25 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.3221, allocations: 338.8 kB / 250.9 MB, free: 14.91 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.3241, allocations: 0.5563 MB / 251.5 MB, free: 14.35 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/0.3263, allocations: 0.6727 MB / 252.2 MB, free: 13.64 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002121/0.3284, allocations: 0.5896 MB / 252.8 MB, free: 13.05 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3285, allocations: 4 kB / 252.8 MB, free: 13.05 MB / 202.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.005157/0.3336, allocations: 1.513 MB / 254.3 MB, free: 11.53 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.3337, allocations: 8 kB / 254.3 MB, free: 11.52 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3337, allocations: 0 / 254.3 MB, free: 11.52 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007535/0.3345, allocations: 185.7 kB / 254.5 MB, free: 11.34 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.3364, allocations: 295.6 kB / 254.7 MB, free: 11.05 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00536/0.3418, allocations: 2.656 MB / 257.4 MB, free: 8.25 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.3433, allocations: 128 kB / 257.5 MB, free: 8.125 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.3434, allocations: 35.98 kB / 257.6 MB, free: 8.09 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.0007847/0.3442, allocations: 240.3 kB / 257.8 MB, free: 7.848 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.3445, allocations: 71.2 kB / 257.9 MB, free: 7.777 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000273/0.3448, allocations: 86.22 kB / 258 MB, free: 7.688 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.3448, allocations: 12 kB / 258 MB, free: 7.676 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.3448, allocations: 4 kB / 258 MB, free: 7.672 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.3448, allocations: 3.984 kB / 258 MB, free: 7.668 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.3468, allocations: 1.005 MB / 259 MB, free: 6.613 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.132e-06/0.3468, allocations: 0 / 259 MB, free: 6.613 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/0.3486, allocations: 243.7 kB / 259.2 MB, free: 6.375 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008/0.3494, allocations: 180.6 kB / 259.4 MB, free: 6.195 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/0.3496, allocations: 27.97 kB / 259.4 MB, free: 6.168 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00521/0.3548, allocations: 2.657 MB / 262.1 MB, free: 3.375 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3549, allocations: 0 / 262.1 MB, free: 3.375 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007287/0.3622, allocations: 2.185 MB / 264.3 MB, free: 1.168 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/0.3629, allocations: 236.1 kB / 264.5 MB, free: 0.918 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001797/0.3631, allocations: 19.98 kB / 264.5 MB, free: 0.8984 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.3644, allocations: 151.9 kB / 264.7 MB, free: 0.75 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.3646, allocations: 52.53 kB / 264.7 MB, free: 0.6992 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.3647, allocations: 19.98 kB / 264.7 MB, free: 0.6797 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006405/0.3654, allocations: 358.8 kB / 265.1 MB, free: 336 kB / 202.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.3654, allocations: 0 / 265.1 MB, free: 336 kB / 202.7 MB Notification: Performance of remove unused functions: time 0.001182/0.3666, allocations: 248.1 kB / 265.3 MB, free: 88 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.0003203/0.3669, allocations: 139.2 kB / 265.5 MB, free: 15.94 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.005246/0.3722, allocations: 1.517 MB / 267 MB, free: 14.41 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 6.77e-06/0.3722, allocations: 192 / 267 MB, free: 14.41 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003062/0.3753, allocations: 0.8974 MB / 267.9 MB, free: 13.5 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.3767, allocations: 172.8 kB / 268 MB, free: 13.33 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005538/0.3822, allocations: 2.541 MB / 270.6 MB, free: 10.76 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/0.3831, allocations: 0.9775 MB / 271.6 MB, free: 9.758 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006194/0.3837, allocations: 63.39 kB / 271.6 MB, free: 9.695 MB / 218.7 MB Notification: Performance of SimCode: time 1.827e-06/0.3837, allocations: 0 / 271.6 MB, free: 9.695 MB / 218.7 MB Notification: Performance of Templates: time 0.02668/0.4104, allocations: 14.64 MB / 286.3 MB, free: 11.06 MB / 234.7 MB