Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.578/1.578, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003428, allocations: 11.98 kB / 233.3 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08039/0.08077, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3317/0.4126, allocations: 70.56 MB / 342.7 MB, free: 3.383 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.4129, allocations: 76.2 kB / 342.7 MB, free: 3.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07436/0.4873, allocations: 15.81 MB / 358.5 MB, free: 5.773 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.731e-06/0.4873, allocations: 4 kB / 358.5 MB, free: 5.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.804e-05/0.4874, allocations: 23.92 kB / 358.6 MB, free: 5.746 MB / 282.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.0056/0.493, allocations: 1.31 MB / 359.9 MB, free: 4.441 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4931, allocations: 8.031 kB / 359.9 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003787/0.4935, allocations: 132.6 kB / 360 MB, free: 4.348 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003213/0.4938, allocations: 102.8 kB / 360.1 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.4949, allocations: 0.5196 MB / 360.6 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.201e-05/0.495, allocations: 63.12 kB / 360.7 MB, free: 3.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002445/0.4952, allocations: 85.31 kB / 360.8 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004338/0.4996, allocations: 1.16 MB / 361.9 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.4997, allocations: 4 kB / 361.9 MB, free: 2.867 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/0.4998, allocations: 34.88 kB / 362 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-05/0.4999, allocations: 20 kB / 362 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00574/0.5056, allocations: 1.304 MB / 363.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009423/0.5151, allocations: 3.503 MB / 366.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005219/0.5204, allocations: 1.201 MB / 368 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.288e-05/0.5205, allocations: 12.55 kB / 368 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.5206, allocations: 38.62 kB / 368.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 3.337e-06/0.5206, allocations: 0 / 368.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.01607/0.5367, allocations: 3.516 MB / 371.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.5367, allocations: 60.06 kB / 371.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009098/0.5377, allocations: 467.9 kB / 372.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002937/0.538, allocations: 37.39 kB / 372.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004196/0.5384, allocations: 433.4 kB / 372.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004457/0.5389, allocations: 262.2 kB / 372.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.539, allocations: 11.56 kB / 372.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.5393, allocations: 349.9 kB / 373.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003467/0.5427, allocations: 0.5605 MB / 373.7 MB, free: 9.855 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/0.5464, allocations: 0.6816 MB / 374.4 MB, free: 9.316 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003757/0.5502, allocations: 0.5886 MB / 375 MB, free: 8.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.5502, allocations: 4 kB / 375 MB, free: 8.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.009202/0.5594, allocations: 1.509 MB / 376.5 MB, free: 7.219 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.5595, allocations: 8.625 kB / 376.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.5596, allocations: 4 kB / 376.5 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.5609, allocations: 185.4 kB / 376.7 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003752/0.5647, allocations: 287.7 kB / 377 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007773/0.5725, allocations: 2.661 MB / 379.6 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002693/0.5752, allocations: 132 kB / 379.8 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/0.5754, allocations: 31.94 kB / 379.8 MB, free: 3.785 MB / 298.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.0008768/0.5763, allocations: 217.7 kB / 380 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000339/0.5767, allocations: 71.16 kB / 380.1 MB, free: 3.492 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004311/0.5771, allocations: 90.45 kB / 380.2 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.5772, allocations: 8 kB / 380.2 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/0.5772, allocations: 0 / 380.2 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.5772, allocations: 7.984 kB / 380.2 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/0.58, allocations: 1.009 MB / 381.2 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.5801, allocations: 0 / 381.2 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/0.5831, allocations: 247.7 kB / 381.4 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/0.5843, allocations: 184.9 kB / 381.6 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/0.5845, allocations: 23.94 kB / 381.6 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00781/0.5924, allocations: 2.656 MB / 384.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5924, allocations: 0 / 384.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/0.6049, allocations: 2.189 MB / 386.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008403/0.6058, allocations: 244.1 kB / 386.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002949/0.6062, allocations: 16 kB / 386.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002568/0.6087, allocations: 148.1 kB / 386.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/0.609, allocations: 48.58 kB / 386.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001635/0.6092, allocations: 31.97 kB / 387 MB, free: 12.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009812/0.6102, allocations: 362.9 kB / 387.3 MB, free: 12.03 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6102, allocations: 0 / 387.3 MB, free: 12.03 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001897/0.6121, allocations: 248 kB / 387.6 MB, free: 11.79 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.01296/0.6251, allocations: 2.765 MB / 390.3 MB, free: 8.988 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00791/0.6331, allocations: 1.533 MB / 391.9 MB, free: 7.445 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.6331, allocations: 0 / 391.9 MB, free: 7.445 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003996/0.6371, allocations: 0.8857 MB / 392.7 MB, free: 6.543 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.6382, allocations: 115 kB / 392.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02063/0.6589, allocations: 7.974 MB / 400.8 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007189/0.6596, allocations: 0.9775 MB / 401.8 MB, free: 13.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.6608, allocations: 303.3 kB / 402.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6608, allocations: 0 / 402.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.892/3.553, allocations: 18.35 MB / 420.4 MB, free: 10.7 MB / 346.7 MB