Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadModel(Modelica): time 1.93/1.93, allocations: 194.8 MB / 211.6 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003632, allocations: 15.98 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08304/0.08342, allocations: 44.51 MB / 308.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.003167/0.08663, allocations: 2.188 MB / 310.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.08792, allocations: 0.644 MB / 311.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.08807, allocations: 0 / 311.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.611e-05/0.08817, allocations: 31.75 kB / 311.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.08845, allocations: 103.7 kB / 311.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.08868, allocations: 47.89 kB / 311.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.08905, allocations: 227.3 kB / 311.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.08924, allocations: 61.16 kB / 311.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.08944, allocations: 103.6 kB / 311.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.08966, allocations: 127.4 kB / 311.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.355e-05/0.08973, allocations: 16 kB / 311.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.352e-05/0.0898, allocations: 16 kB / 311.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.451e-05/0.08987, allocations: 43.81 kB / 312 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.837e-05/0.08997, allocations: 69.58 kB / 312 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000333/0.09032, allocations: 235.6 kB / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.616e-06/0.09034, allocations: 0 / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.27e-06/0.09035, allocations: 0 / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.551e-06/0.09037, allocations: 4 kB / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001147/0.09152, allocations: 0.5716 MB / 312.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.09157, allocations: 8.031 kB / 312.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.807e-05/0.09167, allocations: 27.72 kB / 312.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.09208, allocations: 259.5 kB / 313.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.09213, allocations: 16.44 kB / 313.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/0.09219, allocations: 20 kB / 313.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006725/0.09288, allocations: 235.2 kB / 313.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.09291, allocations: 3.984 kB / 313.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.09295, allocations: 11.98 kB / 313.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.58e-06/0.09297, allocations: 4 kB / 313.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008019/0.09378, allocations: 225.6 kB / 313.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00188/0.09568, allocations: 0.8543 MB / 314.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009406/0.09665, allocations: 218.5 kB / 314.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.0967, allocations: 4 kB / 314.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005512/0.09726, allocations: 169.8 kB / 314.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 2.996e-06/0.09729, allocations: 4 kB / 314.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.002216/0.09951, allocations: 0.5421 MB / 315.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.408e-05/0.09963, allocations: 114.8 kB / 315.5 MB, free: 9.562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.1, allocations: 256.8 kB / 315.8 MB, free: 9.305 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.1001, allocations: 29.7 kB / 315.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.1003, allocations: 222.4 kB / 316 MB, free: 9.051 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.753e-05/0.1003, allocations: 51.38 kB / 316.1 MB, free: 9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.434e-05/0.1004, allocations: 0 / 316.1 MB, free: 9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1005, allocations: 322.8 kB / 316.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003584/0.1009, allocations: 92.06 kB / 316.5 MB, free: 8.586 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.1013, allocations: 156 kB / 316.6 MB, free: 8.406 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003942/0.1018, allocations: 126.6 kB / 316.8 MB, free: 8.277 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1018, allocations: 0 / 316.8 MB, free: 8.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001314/0.1031, allocations: 387.8 kB / 317.1 MB, free: 7.883 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.495e-05/0.1032, allocations: 35.88 kB / 317.2 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.673e-06/0.1032, allocations: 4 kB / 317.2 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005411/0.1037, allocations: 96.81 kB / 317.3 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.104, allocations: 47.91 kB / 317.3 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.1072, allocations: 1.77 MB / 319.1 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003776/0.1076, allocations: 47.88 kB / 319.1 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.1077, allocations: 8 kB / 319.1 MB, free: 5.723 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.1079, allocations: 138 kB / 319.3 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.108, allocations: 23.7 kB / 319.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.395e-05/0.1081, allocations: 29.83 kB / 319.3 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.462e-06/0.1081, allocations: 0 / 319.3 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.757e-06/0.1081, allocations: 3.938 kB / 319.3 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.623e-06/0.1081, allocations: 0 / 319.3 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003752/0.1085, allocations: 289.7 kB / 319.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.599e-06/0.1085, allocations: 0 / 319.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.1087, allocations: 35.91 kB / 319.6 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004806/0.1092, allocations: 92.78 kB / 319.7 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.1092, allocations: 4 kB / 319.7 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002816/0.1121, allocations: 1.669 MB / 321.4 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.387e-06/0.1121, allocations: 0 / 321.4 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.1132, allocations: 334.1 kB / 321.7 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1134, allocations: 108.8 kB / 321.8 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.1134, allocations: 4 kB / 321.8 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002804/0.1137, allocations: 27.97 kB / 321.9 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.1139, allocations: 27.86 kB / 321.9 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.1139, allocations: 8 kB / 321.9 MB, free: 2.715 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002497/0.1142, allocations: 180.5 kB / 322.1 MB, free: 2.539 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.87e-07/0.1142, allocations: 0 / 322.1 MB, free: 2.539 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004954/0.1147, allocations: 67.91 kB / 322.2 MB, free: 2.473 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.000155/0.1148, allocations: 103.2 kB / 322.3 MB, free: 2.363 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.1159, allocations: 394.2 kB / 322.6 MB, free: 1.953 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.1159, allocations: 4.062 kB / 322.6 MB, free: 1.949 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005298/0.1165, allocations: 226.4 kB / 322.9 MB, free: 1.715 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.1168, allocations: 44.34 kB / 322.9 MB, free: 1.672 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.118, allocations: 0.5075 MB / 323.4 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.1184, allocations: 0.756 MB / 324.2 MB, free: 360 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.756e-05/0.1185, allocations: 19.44 kB / 324.2 MB, free: 340 kB / 266.7 MB Notification: Performance of SimCode: time 1.462e-06/0.1185, allocations: 0 / 324.2 MB, free: 340 kB / 266.7 MB Notification: Performance of Templates: time 0.007793/0.1263, allocations: 3.843 MB / 328 MB, free: 12.49 MB / 282.7 MB