Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadModel(Modelica): time 1.541/1.541, allocations: 171.2 MB / 184.2 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.358e-05/2.374e-05, allocations: 0 / 228.8 MB, free: 15.44 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2451, allocations: 38.78 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1011/0.3463, allocations: 67.99 MB / 335.6 MB, free: 5.352 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.3465, allocations: 67.97 kB / 335.6 MB, free: 5.285 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01937/0.3659, allocations: 5.017 MB / 340.7 MB, free: 252 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.518e-06/0.366, allocations: 4 kB / 340.7 MB, free: 248 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.703e-05/0.366, allocations: 12 kB / 340.7 MB, free: 236 kB / 282.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.001014/0.367, allocations: 0.5567 MB / 341.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3671, allocations: 12.03 kB / 341.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.3672, allocations: 31.62 kB / 341.3 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/0.3676, allocations: 278.5 kB / 341.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.3677, allocations: 16.56 kB / 341.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.607e-05/0.3677, allocations: 28 kB / 341.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005885/0.3683, allocations: 236.9 kB / 341.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3684, allocations: 4 kB / 341.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.3684, allocations: 11.94 kB / 341.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.3685, allocations: 8 kB / 341.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.3689, allocations: 174.2 kB / 342 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/0.3711, allocations: 0.9875 MB / 343 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.3717, allocations: 211.2 kB / 343.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.372, allocations: 101.2 kB / 343.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.372, allocations: 4.188 kB / 343.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.372, allocations: 34.75 kB / 343.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.884e-06/0.3721, allocations: 0 / 343.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006817/0.3728, allocations: 256.9 kB / 343.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.3728, allocations: 59.39 kB / 343.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003375/0.3732, allocations: 223 kB / 343.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.3732, allocations: 33.7 kB / 343.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.3734, allocations: 246.3 kB / 344.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.152e-05/0.3735, allocations: 71.02 kB / 344.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.3735, allocations: 4 kB / 344.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.3737, allocations: 318.8 kB / 344.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.3739, allocations: 56.47 kB / 344.6 MB, free: 12.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.3741, allocations: 87.5 kB / 344.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.3743, allocations: 63.98 kB / 344.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.884e-06/0.3743, allocations: 4 kB / 344.7 MB, free: 11.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007261/0.375, allocations: 270.9 kB / 345 MB, free: 11.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3751, allocations: 8 kB / 345 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3751, allocations: 0 / 345 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003769/0.3755, allocations: 81.67 kB / 345.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00026/0.3758, allocations: 39.97 kB / 345.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/0.379, allocations: 2.823 MB / 348 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.3793, allocations: 31.7 kB / 348 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.3794, allocations: 12.25 kB / 348 MB, free: 8.379 MB / 298.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 () * 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.0001324/0.3795, allocations: 116.9 kB / 348.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.3796, allocations: 31.73 kB / 348.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.069e-05/0.3797, allocations: 29.95 kB / 348.2 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.729e-06/0.3797, allocations: 3.984 kB / 348.2 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.3798, allocations: 8 kB / 348.2 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.7e-06/0.3798, allocations: 0 / 348.2 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.381, allocations: 0.6442 MB / 348.8 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.581e-06/0.381, allocations: 4 kB / 348.8 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.3812, allocations: 35.91 kB / 348.9 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002864/0.3815, allocations: 73.77 kB / 348.9 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.3816, allocations: 0 / 348.9 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003143/0.3847, allocations: 2.827 MB / 351.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.731e-06/0.3848, allocations: 0 / 351.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006528/0.3854, allocations: 348.7 kB / 352.1 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.3856, allocations: 120.7 kB / 352.2 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.495e-05/0.3857, allocations: 4 kB / 352.2 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003318/0.386, allocations: 39.97 kB / 352.3 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.783e-05/0.3861, allocations: 19.97 kB / 352.3 MB, free: 3.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.3861, allocations: 8 kB / 352.3 MB, free: 3.695 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002518/0.3864, allocations: 183.1 kB / 352.5 MB, free: 3.516 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.16e-07/0.3864, allocations: 3.938 kB / 352.5 MB, free: 3.512 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005266/0.387, allocations: 95.84 kB / 352.6 MB, free: 3.418 MB / 298.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 () * 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.0001541/0.3871, allocations: 107.2 kB / 352.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007599/0.3879, allocations: 412.6 kB / 353.1 MB, free: 2.879 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.618e-06/0.3879, allocations: 0 / 353.1 MB, free: 2.879 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004879/0.3884, allocations: 333.2 kB / 353.4 MB, free: 2.527 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.3888, allocations: 47.25 kB / 353.4 MB, free: 2.484 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007854/0.3896, allocations: 355.6 kB / 353.8 MB, free: 2.113 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.3901, allocations: 0.7794 MB / 354.6 MB, free: 1.309 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.289e-05/0.3902, allocations: 15.44 kB / 354.6 MB, free: 1.293 MB / 298.7 MB Notification: Performance of SimCode: time 1.523e-06/0.3902, allocations: 4 kB / 354.6 MB, free: 1.289 MB / 298.7 MB Notification: Performance of Templates: time 0.1808/0.5711, allocations: 5.373 MB / 360 MB, free: 79.3 MB / 298.7 MB