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.833/1.833, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003588, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.07942, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3771/0.4566, allocations: 73.21 MB / 381.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.4568, allocations: 68.66 kB / 381.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0191/0.476, allocations: 4.896 MB / 386.6 MB, free: 18.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.089e-06/0.476, allocations: 4 kB / 386.6 MB, free: 18.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.341e-05/0.476, allocations: 10.47 kB / 386.6 MB, free: 18.22 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008534/0.4769, allocations: 0.5953 MB / 387.2 MB, free: 17.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4769, allocations: 8.406 kB / 387.2 MB, free: 17.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.463e-05/0.477, allocations: 35.28 kB / 387.3 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.4774, allocations: 273 kB / 387.5 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.4774, allocations: 19.06 kB / 387.6 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.4775, allocations: 24.75 kB / 387.6 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006387/0.4781, allocations: 264.5 kB / 387.8 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.4781, allocations: 0 / 387.8 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.4782, allocations: 13.75 kB / 387.9 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.4782, allocations: 6.812 kB / 387.9 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000632/0.4789, allocations: 236.2 kB / 388.1 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.4807, allocations: 0.9864 MB / 389.1 MB, free: 17.03 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005374/0.4812, allocations: 220.8 kB / 389.3 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.4813, allocations: 4.125 kB / 389.3 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.4813, allocations: 38.53 kB / 389.3 MB, free: 16.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.387e-06/0.4813, allocations: 4 kB / 389.3 MB, free: 16.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001481/0.4828, allocations: 0.579 MB / 389.9 MB, free: 16.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.194e-05/0.4828, allocations: 58.02 kB / 390 MB, free: 16.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.4831, allocations: 233.6 kB / 390.2 MB, free: 16.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.4832, allocations: 33.14 kB / 390.2 MB, free: 16.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.188e-05/0.4832, allocations: 239.4 kB / 390.5 MB, free: 16.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/0.4833, allocations: 71.94 kB / 390.5 MB, free: 16.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.4833, allocations: 3.188 kB / 390.5 MB, free: 16.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.179e-05/0.4834, allocations: 320.4 kB / 390.9 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.4837, allocations: 85.25 kB / 390.9 MB, free: 15.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.484, allocations: 116.4 kB / 391.1 MB, free: 15.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.4843, allocations: 107.1 kB / 391.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.182e-06/0.4843, allocations: 0 / 391.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008515/0.4851, allocations: 320.6 kB / 391.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.4852, allocations: 6.031 kB / 391.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.588e-06/0.4852, allocations: 0 / 391.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003182/0.4855, allocations: 78.05 kB / 391.6 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.4858, allocations: 44.48 kB / 391.6 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.4879, allocations: 2.853 MB / 394.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/0.4882, allocations: 37.25 kB / 394.5 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.4882, allocations: 3.938 kB / 394.5 MB, free: 13.22 MB / 314.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.0001592/0.4884, allocations: 139.1 kB / 394.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.4885, allocations: 33.17 kB / 394.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.896e-05/0.4885, allocations: 26.88 kB / 394.7 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.232e-06/0.4886, allocations: 7.938 kB / 394.7 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.423e-06/0.4886, allocations: 0 / 394.7 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.406e-06/0.4886, allocations: 1.969 kB / 394.7 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003777/0.489, allocations: 336.8 kB / 395 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.834e-06/0.489, allocations: 0 / 395 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.4892, allocations: 34.28 kB / 395.1 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002452/0.4894, allocations: 73.73 kB / 395.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.4895, allocations: 5.531 kB / 395.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00206/0.4915, allocations: 2.85 MB / 398 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.402e-06/0.4916, allocations: 0 / 398 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007832/0.4924, allocations: 395.6 kB / 398.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-05/0.4925, allocations: 112.1 kB / 398.5 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.835e-05/0.4925, allocations: 7.562 kB / 398.5 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.4929, allocations: 37.11 kB / 398.5 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.152e-05/0.493, allocations: 23.77 kB / 398.5 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.493, allocations: 7.781 kB / 398.6 MB, free: 10.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001918/0.4932, allocations: 185.7 kB / 398.7 MB, free: 9.934 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.4932, allocations: 0 / 398.7 MB, free: 9.934 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005234/0.4938, allocations: 88.81 kB / 398.8 MB, free: 9.926 MB / 314.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.0001166/0.4939, allocations: 110.5 kB / 398.9 MB, free: 9.832 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008116/0.4947, allocations: 468.3 kB / 399.4 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.374e-06/0.4947, allocations: 0 / 399.4 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004559/0.4952, allocations: 367.3 kB / 399.7 MB, free: 9.352 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.4956, allocations: 43.53 kB / 399.8 MB, free: 9.348 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008825/0.4965, allocations: 0.6185 MB / 400.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004878/0.497, allocations: 0.7733 MB / 401.2 MB, free: 24.26 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.833e-05/0.4971, allocations: 18.88 kB / 401.2 MB, free: 24.25 MB / 330.7 MB Notification: Performance of SimCode: time 1.505e-06/0.4971, allocations: 0 / 401.2 MB, free: 24.25 MB / 330.7 MB Notification: Performance of Templates: time 0.00765/0.5048, allocations: 5.413 MB / 406.6 MB, free: 24 MB / 330.7 MB