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 0.9868/0.9868, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002595, allocations: 4 kB / 158.2 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0468/0.04709, allocations: 25.18 MB / 183.4 MB, free: 6 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006838/0.05397, allocations: 4.502 MB / 187.9 MB, free: 1.484 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003312/0.05733, allocations: 1.423 MB / 189.3 MB, free: 60 kB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006945/0.05807, allocations: 15.94 kB / 189.4 MB, free: 44 kB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.05838, allocations: 111.2 kB / 189.5 MB, free: 15.93 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008779/0.05927, allocations: 339 kB / 189.8 MB, free: 15.6 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000883/0.06017, allocations: 267.5 kB / 190.1 MB, free: 15.34 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.06167, allocations: 0.8667 MB / 190.9 MB, free: 14.47 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005921/0.06228, allocations: 300.2 kB / 191.2 MB, free: 14.16 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007053/0.063, allocations: 426.7 kB / 191.6 MB, free: 13.75 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007846/0.06381, allocations: 0.5292 MB / 192.2 MB, free: 13.21 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001668/0.06399, allocations: 68 kB / 192.2 MB, free: 13.15 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002386/0.06424, allocations: 72 kB / 192.3 MB, free: 13.08 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002412/0.0645, allocations: 203.2 kB / 192.5 MB, free: 12.88 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.06477, allocations: 205.2 kB / 192.7 MB, free: 12.67 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001534/0.06632, allocations: 1.2 MB / 193.9 MB, free: 11.47 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.964e-06/0.06634, allocations: 0 / 193.9 MB, free: 11.47 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.158e-06/0.06635, allocations: 4 kB / 193.9 MB, free: 11.46 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.06638, allocations: 0 / 193.9 MB, free: 11.46 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.003663/0.07005, allocations: 1.314 MB / 195.2 MB, free: 10.1 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.07011, allocations: 12.03 kB / 195.2 MB, free: 10.09 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.07042, allocations: 102.8 kB / 195.3 MB, free: 9.988 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009869/0.07142, allocations: 0.5081 MB / 195.8 MB, free: 9.441 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.516e-05/0.07151, allocations: 66 kB / 195.9 MB, free: 9.375 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002089/0.07173, allocations: 80 kB / 196 MB, free: 9.297 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003291/0.07504, allocations: 1.169 MB / 197.2 MB, free: 8.113 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.07508, allocations: 3.938 kB / 197.2 MB, free: 8.109 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001352/0.07523, allocations: 35.95 kB / 197.2 MB, free: 8.074 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/0.07527, allocations: 20 kB / 197.2 MB, free: 8.055 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004421/0.0797, allocations: 1.304 MB / 198.5 MB, free: 6.75 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008188/0.08792, allocations: 3.482 MB / 202 MB, free: 3.141 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004056/0.09203, allocations: 1.19 MB / 203.2 MB, free: 1.941 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.242e-05/0.09216, allocations: 20.53 kB / 203.2 MB, free: 1.922 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/0.09222, allocations: 43.12 kB / 203.3 MB, free: 1.871 MB / 170.7 MB Notification: Performance of pre-optimization done (n=67): time 4.293e-06/0.09224, allocations: 0 / 203.3 MB, free: 1.871 MB / 170.7 MB Notification: Performance of matching and sorting (n=71): time 0.1639/0.2562, allocations: 3.384 MB / 206.6 MB, free: 23.57 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.2562, allocations: 62.28 kB / 206.7 MB, free: 23.5 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008117/0.257, allocations: 0.5124 MB / 207.2 MB, free: 23.26 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.2572, allocations: 38.14 kB / 207.2 MB, free: 23.22 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.2574, allocations: 434 kB / 207.7 MB, free: 22.85 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/0.2577, allocations: 246.9 kB / 207.9 MB, free: 22.66 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/0.2578, allocations: 15.75 kB / 207.9 MB, free: 22.65 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.2579, allocations: 340.9 kB / 208.3 MB, free: 22.33 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001827/0.2597, allocations: 0.5564 MB / 208.8 MB, free: 22.15 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.2616, allocations: 0.6658 MB / 209.5 MB, free: 21.86 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001877/0.2635, allocations: 0.6015 MB / 210.1 MB, free: 21.63 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.547e-06/0.2635, allocations: 0 / 210.1 MB, free: 21.63 MB / 170.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.004823/0.2684, allocations: 1.515 MB / 211.6 MB, free: 21.09 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.2684, allocations: 6.188 kB / 211.6 MB, free: 21.09 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.2685, allocations: 3.562 kB / 211.6 MB, free: 21.09 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000731/0.2692, allocations: 171.9 kB / 211.8 MB, free: 21.04 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/0.271, allocations: 284.7 kB / 212.1 MB, free: 21.02 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004414/0.2755, allocations: 2.671 MB / 214.7 MB, free: 18.98 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.2768, allocations: 123.4 kB / 214.8 MB, free: 18.96 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.2769, allocations: 35.14 kB / 214.9 MB, free: 18.95 MB / 170.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.0005903/0.2775, allocations: 254.6 kB / 215.1 MB, free: 18.75 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.2777, allocations: 72.98 kB / 215.2 MB, free: 18.72 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.2779, allocations: 87.75 kB / 215.3 MB, free: 18.66 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.969e-06/0.278, allocations: 11.86 kB / 215.3 MB, free: 18.65 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.811e-05/0.278, allocations: 7.906 kB / 215.3 MB, free: 18.65 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.259e-06/0.278, allocations: 7.75 kB / 215.3 MB, free: 18.64 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.2794, allocations: 0.9953 MB / 216.3 MB, free: 18.12 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.2794, allocations: 0 / 216.3 MB, free: 18.12 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.2811, allocations: 238 kB / 216.5 MB, free: 18.06 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006597/0.2817, allocations: 186.4 kB / 216.7 MB, free: 17.96 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.917e-05/0.2819, allocations: 25.81 kB / 216.7 MB, free: 17.95 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/0.286, allocations: 2.654 MB / 219.4 MB, free: 15.76 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.585e-06/0.286, allocations: 1.375 kB / 219.4 MB, free: 15.76 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006331/0.2924, allocations: 2.179 MB / 221.6 MB, free: 14.63 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004852/0.2929, allocations: 250.5 kB / 221.8 MB, free: 14.39 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.2931, allocations: 16.95 kB / 221.8 MB, free: 14.38 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.2942, allocations: 151 kB / 222 MB, free: 14.33 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.2944, allocations: 49.05 kB / 222 MB, free: 14.3 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.97e-05/0.2945, allocations: 25.83 kB / 222.1 MB, free: 14.3 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0004632/0.295, allocations: 351 kB / 222.4 MB, free: 14.08 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.57e-07/0.295, allocations: 0 / 222.4 MB, free: 14.08 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001039/0.296, allocations: 238.9 kB / 222.6 MB, free: 13.92 MB / 170.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.0002159/0.2963, allocations: 141.5 kB / 222.8 MB, free: 13.77 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.004361/0.3006, allocations: 1.528 MB / 224.3 MB, free: 12.24 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.3007, allocations: 3.5 kB / 224.3 MB, free: 12.24 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/0.3032, allocations: 0.8848 MB / 225.2 MB, free: 11.34 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.3043, allocations: 166.4 kB / 225.4 MB, free: 11.18 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004213/0.3086, allocations: 2.551 MB / 227.9 MB, free: 8.609 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.309, allocations: 0.9775 MB / 228.9 MB, free: 7.602 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.3096, allocations: 55.41 kB / 228.9 MB, free: 7.547 MB / 170.7 MB Notification: Performance of SimCode: time 1.72e-06/0.3096, allocations: 0 / 228.9 MB, free: 7.547 MB / 170.7 MB Notification: Performance of Templates: time 0.02377/0.3334, allocations: 14.68 MB / 243.6 MB, free: 8.863 MB / 186.7 MB