Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 2.157/2.157, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005868/0.0005869, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1334, allocations: 44.5 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.5446, allocations: 75.78 MB / 384.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.545, allocations: 81.52 kB / 384.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06903/0.614, allocations: 15.55 MB / 400.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6141, allocations: 4 kB / 400.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.935e-05/0.6142, allocations: 26.95 kB / 400.4 MB, free: 13.28 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.00566/0.6199, allocations: 1.298 MB / 401.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.6199, allocations: 9.031 kB / 401.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005705/0.6205, allocations: 105.9 kB / 401.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.6217, allocations: 0.5235 MB / 402.3 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.681e-05/0.6218, allocations: 63.09 kB / 402.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002649/0.622, allocations: 83.34 kB / 402.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004325/0.6264, allocations: 1.17 MB / 403.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.259e-05/0.6265, allocations: 0 / 403.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001746/0.6267, allocations: 36.53 kB / 403.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.6267, allocations: 23.33 kB / 403.7 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005678/0.6324, allocations: 1.305 MB / 405 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009938/0.6424, allocations: 3.5 MB / 408.5 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005542/0.648, allocations: 1.19 MB / 409.7 MB, free: 9.641 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001434/0.6482, allocations: 19.41 kB / 409.7 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.6483, allocations: 42.38 kB / 409.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 3.296e-06/0.6483, allocations: 0 / 409.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.0159/0.6642, allocations: 3.495 MB / 413.3 MB, free: 8.559 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.6643, allocations: 70.83 kB / 413.3 MB, free: 8.488 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008642/0.6651, allocations: 0.5183 MB / 413.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002827/0.6654, allocations: 38.08 kB / 413.9 MB, free: 8.258 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002618/0.6657, allocations: 439.9 kB / 414.3 MB, free: 7.949 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.666, allocations: 253.6 kB / 414.6 MB, free: 7.766 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.6661, allocations: 17 kB / 414.6 MB, free: 7.766 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.6662, allocations: 342.6 kB / 414.9 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002561/0.6688, allocations: 0.5636 MB / 415.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002631/0.6715, allocations: 0.685 MB / 416.2 MB, free: 7.141 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002637/0.6741, allocations: 0.5914 MB / 416.8 MB, free: 7.059 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.872e-06/0.6742, allocations: 3.938 kB / 416.8 MB, free: 7.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.006357/0.6805, allocations: 1.513 MB / 418.3 MB, free: 6.727 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.6806, allocations: 3.812 kB / 418.3 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.6806, allocations: 3.438 kB / 418.3 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008782/0.6815, allocations: 183.9 kB / 418.5 MB, free: 6.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002623/0.6842, allocations: 286.3 kB / 418.7 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005174/0.6894, allocations: 2.672 MB / 421.4 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/0.6915, allocations: 127.3 kB / 421.5 MB, free: 5.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/0.6917, allocations: 34.33 kB / 421.6 MB, free: 5 MB / 314.7 MB 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.0006293/0.6924, allocations: 220.9 kB / 421.8 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.6926, allocations: 69.53 kB / 421.9 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.6929, allocations: 87.17 kB / 421.9 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.6929, allocations: 11.8 kB / 422 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.6929, allocations: 7.562 kB / 422 MB, free: 4.809 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.693, allocations: 3.984 kB / 422 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/0.6947, allocations: 0.9996 MB / 423 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.6948, allocations: 3.984 kB / 423 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002339/0.6971, allocations: 239 kB / 423.2 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008751/0.698, allocations: 180.1 kB / 423.4 MB, free: 4.234 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001788/0.6982, allocations: 31.38 kB / 423.4 MB, free: 4.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005122/0.7034, allocations: 2.654 MB / 426.1 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.7034, allocations: 0 / 426.1 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009028/0.7124, allocations: 2.183 MB / 428.2 MB, free: 2.062 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.7128, allocations: 144 kB / 428.4 MB, free: 1.918 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003203/0.7131, allocations: 11.81 kB / 428.4 MB, free: 1.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/0.7151, allocations: 156.3 kB / 428.5 MB, free: 1.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.7153, allocations: 47.39 kB / 428.6 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.7154, allocations: 31.03 kB / 428.6 MB, free: 1.812 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005967/0.716, allocations: 353.8 kB / 429 MB, free: 1.602 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.716, allocations: 192 / 429 MB, free: 1.602 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001229/0.7173, allocations: 250.5 kB / 429.2 MB, free: 1.566 MB / 314.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.0003123/0.7176, allocations: 137.2 kB / 429.4 MB, free: 1.449 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006565/0.7242, allocations: 1.529 MB / 430.9 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.7243, allocations: 0 / 430.9 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003818/0.7281, allocations: 0.8956 MB / 431.8 MB, free: 224 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.7292, allocations: 113.3 kB / 431.9 MB, free: 156 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007166/0.7364, allocations: 2.607 MB / 434.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006417/0.7371, allocations: 0.9829 MB / 435.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008161/0.7379, allocations: 64.83 kB / 435.5 MB, free: 13.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.738, allocations: 0 / 435.5 MB, free: 13.48 MB / 330.7 MB Notification: Performance of Templates: time 0.03227/0.7702, allocations: 14.61 MB / 450.2 MB, free: 136 kB / 330.7 MB