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.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003708/0.000371, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07982/0.08022, allocations: 44.51 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00351/0.08377, allocations: 2.395 MB / 310.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.08531, allocations: 0.7141 MB / 311.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.08554, allocations: 7.938 kB / 311.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.955e-05/0.08565, allocations: 31.75 kB / 311.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003277/0.08599, allocations: 139.6 kB / 311.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.08626, allocations: 63.92 kB / 311.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.08671, allocations: 279.3 kB / 312 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.08693, allocations: 85.67 kB / 312.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000232/0.08718, allocations: 123.6 kB / 312.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.08742, allocations: 147.4 kB / 312.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.165e-05/0.08749, allocations: 16 kB / 312.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.11e-05/0.08756, allocations: 20 kB / 312.4 MB, free: 13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.44e-05/0.08764, allocations: 47.83 kB / 312.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.08776, allocations: 85.52 kB / 312.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.08814, allocations: 271.5 kB / 312.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.08816, allocations: 0 / 312.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.904e-06/0.08818, allocations: 0 / 312.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.0882, allocations: 3.938 kB / 312.8 MB, free: 12.59 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001068/0.08928, allocations: 0.5962 MB / 313.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.08934, allocations: 12.02 kB / 313.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.619e-05/0.08945, allocations: 43.62 kB / 313.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.08988, allocations: 266.3 kB / 313.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.08993, allocations: 20.56 kB / 313.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.734e-05/0.09, allocations: 24 kB / 313.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006859/0.09069, allocations: 264.8 kB / 314 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.09072, allocations: 0 / 314 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.289e-05/0.09078, allocations: 16 kB / 314 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.0908, allocations: 8 kB / 314 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006816/0.0915, allocations: 230.1 kB / 314.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002186/0.0937, allocations: 0.9837 MB / 315.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006998/0.09443, allocations: 304.3 kB / 315.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.09448, allocations: 8.188 kB / 315.5 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.09453, allocations: 38.73 kB / 315.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 3.272e-06/0.09454, allocations: 0 / 315.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001658/0.09621, allocations: 0.5767 MB / 316.1 MB, free: 8.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.09628, allocations: 59.39 kB / 316.2 MB, free: 8.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.09668, allocations: 262.5 kB / 316.4 MB, free: 8.641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.09673, allocations: 33.7 kB / 316.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.09692, allocations: 238.3 kB / 316.7 MB, free: 8.363 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.591e-05/0.09701, allocations: 74.94 kB / 316.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.646e-05/0.09704, allocations: 4 kB / 316.8 MB, free: 8.285 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.09722, allocations: 326.8 kB / 317.1 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.0975, allocations: 80.42 kB / 317.2 MB, free: 7.879 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.09781, allocations: 115.5 kB / 317.3 MB, free: 7.758 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.09813, allocations: 91.97 kB / 317.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.784e-06/0.09815, allocations: 3.938 kB / 317.4 MB, free: 7.664 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009024/0.09906, allocations: 323 kB / 317.7 MB, free: 7.336 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.0991, allocations: 4 kB / 317.7 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.64e-06/0.09912, allocations: 4 kB / 317.7 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003562/0.09948, allocations: 73.66 kB / 317.8 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.09975, allocations: 35.98 kB / 317.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/0.1031, allocations: 2.855 MB / 320.7 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.1034, allocations: 35.67 kB / 320.7 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.1034, allocations: 11.98 kB / 320.7 MB, free: 4.051 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002203/0.1037, allocations: 141.8 kB / 320.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.39e-05/0.1038, allocations: 31.72 kB / 320.9 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/0.1038, allocations: 30.16 kB / 320.9 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.613e-06/0.1038, allocations: 4 kB / 320.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.141e-06/0.1039, allocations: 0 / 320.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.1039, allocations: 0 / 320.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.1053, allocations: 0.7027 MB / 321.6 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.86e-06/0.1054, allocations: 0 / 321.6 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.1056, allocations: 31.98 kB / 321.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002806/0.1059, allocations: 69.67 kB / 321.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.1059, allocations: 8 kB / 321.7 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00322/0.1091, allocations: 2.85 MB / 324.6 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.727e-06/0.1092, allocations: 0 / 324.6 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008963/0.1101, allocations: 396.3 kB / 325 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.1102, allocations: 100.8 kB / 325.1 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.1103, allocations: 12 kB / 325.1 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.1106, allocations: 39.92 kB / 325.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.16e-05/0.1107, allocations: 19.97 kB / 325.1 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.1107, allocations: 8 kB / 325.1 MB, free: 15.24 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002595/0.111, allocations: 186 kB / 325.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.09e-07/0.111, allocations: 0 / 325.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005383/0.1116, allocations: 95.75 kB / 325.4 MB, free: 14.97 MB / 282.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001563/0.1117, allocations: 107.2 kB / 325.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.1128, allocations: 461.2 kB / 326 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.524e-06/0.1128, allocations: 4.125 kB / 326 MB, free: 14.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006057/0.1134, allocations: 357.2 kB / 326.3 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.1139, allocations: 56.45 kB / 326.4 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.115, allocations: 0.6202 MB / 327 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.1155, allocations: 0.7717 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.216e-05/0.1157, allocations: 19.44 kB / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of SimCode: time 1.535e-06/0.1157, allocations: 0 / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of Templates: time 0.009874/0.1256, allocations: 5.398 MB / 333.2 MB, free: 7.074 MB / 282.7 MB