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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.734/1.734, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.724e-05/1.728e-05, allocations: 7.938 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06913/0.06916, allocations: 38.76 MB / 261.3 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3186/0.3878, allocations: 67.34 MB / 328.6 MB, free: 4.98 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.388, allocations: 68.41 kB / 328.7 MB, free: 4.949 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01903/0.4071, allocations: 4.965 MB / 333.6 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4071, allocations: 0 / 333.6 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.4072, allocations: 8 kB / 333.6 MB, free: 0.7148 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.0009776/0.4082, allocations: 0.561 MB / 334.2 MB, free: 132 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4082, allocations: 8.031 kB / 334.2 MB, free: 124 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.759e-05/0.4083, allocations: 35.62 kB / 334.2 MB, free: 88 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.4088, allocations: 270.6 kB / 334.5 MB, free: 15.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.4088, allocations: 12 kB / 334.5 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.4089, allocations: 16 kB / 334.5 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004313/0.4093, allocations: 165.6 kB / 334.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.4098, allocations: 192.9 kB / 334.9 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.4098, allocations: 0 / 334.9 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/0.4099, allocations: 0 / 334.9 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.4099, allocations: 10.62 kB / 334.9 MB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.412, allocations: 0.9281 MB / 335.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004806/0.4125, allocations: 202 kB / 336 MB, free: 14.56 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.4128, allocations: 93.34 kB / 336.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.4128, allocations: 8.172 kB / 336.1 MB, free: 14.49 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.4128, allocations: 38.19 kB / 336.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.221e-06/0.4129, allocations: 0 / 336.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006555/0.4135, allocations: 225.5 kB / 336.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.4136, allocations: 51.41 kB / 336.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.4139, allocations: 204 kB / 336.6 MB, free: 14.03 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.4139, allocations: 25.7 kB / 336.7 MB, free: 14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.4141, allocations: 249.6 kB / 336.9 MB, free: 13.78 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.627e-05/0.4142, allocations: 66 kB / 337 MB, free: 13.72 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.337e-05/0.4142, allocations: 4 kB / 337 MB, free: 13.72 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.4144, allocations: 317 kB / 337.3 MB, free: 13.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.4145, allocations: 55.16 kB / 337.3 MB, free: 13.37 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.4147, allocations: 79.77 kB / 337.4 MB, free: 13.31 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.4149, allocations: 72.03 kB / 337.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.415e-06/0.4149, allocations: 0 / 337.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000619/0.4155, allocations: 242.6 kB / 337.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.4156, allocations: 4 kB / 337.7 MB, free: 13.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.4156, allocations: 7.938 kB / 337.7 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003485/0.416, allocations: 76.25 kB / 337.8 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.4163, allocations: 39.97 kB / 337.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003043/0.4193, allocations: 2.72 MB / 340.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.4196, allocations: 27.77 kB / 340.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.4197, allocations: 4 kB / 340.6 MB, free: 10.15 MB / 282.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.0001414/0.4198, allocations: 109 kB / 340.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.909e-05/0.4199, allocations: 23.72 kB / 340.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.18e-05/0.42, allocations: 28.45 kB / 340.8 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.034e-06/0.42, allocations: 7.953 kB / 340.8 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.421e-06/0.42, allocations: 0 / 340.8 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.643e-06/0.4201, allocations: 3.984 kB / 340.8 MB, free: 9.996 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.4212, allocations: 0.5846 MB / 341.3 MB, free: 9.465 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.85e-06/0.4212, allocations: 0 / 341.3 MB, free: 9.465 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.4214, allocations: 31.92 kB / 341.4 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000288/0.4217, allocations: 69.73 kB / 341.4 MB, free: 9.375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.4218, allocations: 11.89 kB / 341.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002999/0.4248, allocations: 2.704 MB / 344.2 MB, free: 6.609 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.551e-06/0.4248, allocations: 320 / 344.2 MB, free: 6.609 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000649/0.4255, allocations: 319 kB / 344.5 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.4257, allocations: 118.8 kB / 344.6 MB, free: 6.199 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.4257, allocations: 8 kB / 344.6 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.4261, allocations: 43.86 kB / 344.6 MB, free: 6.148 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.457e-05/0.4262, allocations: 19.34 kB / 344.7 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.4262, allocations: 4 kB / 344.7 MB, free: 6.129 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002246/0.4264, allocations: 165.1 kB / 344.8 MB, free: 5.996 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.36e-07/0.4264, allocations: 0 / 344.8 MB, free: 5.996 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005494/0.427, allocations: 91.75 kB / 344.9 MB, free: 5.906 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 () * 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.0001738/0.4272, allocations: 99.19 kB / 345 MB, free: 5.801 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007282/0.4279, allocations: 385.2 kB / 345.4 MB, free: 5.461 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.182e-06/0.428, allocations: 4.125 kB / 345.4 MB, free: 5.457 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004548/0.4284, allocations: 310.6 kB / 345.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.4288, allocations: 34.91 kB / 345.7 MB, free: 5.145 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008038/0.4296, allocations: 332.4 kB / 346.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.4301, allocations: 0.7794 MB / 346.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.721e-05/0.4302, allocations: 15.44 kB / 346.8 MB, free: 4 MB / 282.7 MB Notification: Performance of SimCode: time 1.591e-06/0.4303, allocations: 0 / 346.8 MB, free: 4 MB / 282.7 MB Notification: Performance of Templates: time 0.009553/0.4398, allocations: 5.202 MB / 352.1 MB, free: 14.83 MB / 298.7 MB