Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.758/1.758, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004853/0.0004854, allocations: 12 kB / 233.8 MB, free: 0.9844 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09447, allocations: 38.77 MB / 272.5 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3634/0.4579, allocations: 68.06 MB / 340.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.4583, allocations: 67.97 kB / 340.7 MB, free: 15 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02844/0.4868, allocations: 5.024 MB / 345.7 MB, free: 9.969 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4869, allocations: 3.938 kB / 345.7 MB, free: 9.965 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.543e-05/0.4869, allocations: 12 kB / 345.7 MB, free: 9.953 MB / 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.001755/0.4887, allocations: 0.5884 MB / 346.3 MB, free: 9.316 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.4888, allocations: 12.03 kB / 346.3 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.4889, allocations: 39.53 kB / 346.4 MB, free: 9.266 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005882/0.4895, allocations: 270.6 kB / 346.6 MB, free: 8.961 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.402e-05/0.4896, allocations: 24.56 kB / 346.6 MB, free: 8.938 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.594e-05/0.4897, allocations: 27.95 kB / 346.7 MB, free: 8.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.4909, allocations: 264.8 kB / 346.9 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.4909, allocations: 0 / 346.9 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.561e-05/0.491, allocations: 12 kB / 346.9 MB, free: 8.633 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.491, allocations: 8 kB / 346.9 MB, free: 8.625 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.4922, allocations: 230.1 kB / 347.2 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00358/0.4958, allocations: 0.9992 MB / 348.2 MB, free: 7.328 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.4969, allocations: 225.2 kB / 348.4 MB, free: 7.102 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.4969, allocations: 4.172 kB / 348.4 MB, free: 7.098 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.497, allocations: 46.69 kB / 348.4 MB, free: 7.043 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.657e-06/0.497, allocations: 0 / 348.4 MB, free: 7.043 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.002845/0.4999, allocations: 0.5744 MB / 349 MB, free: 6.422 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.5, allocations: 59.39 kB / 349.1 MB, free: 6.352 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005761/0.5006, allocations: 262.6 kB / 349.3 MB, free: 6.082 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.973e-05/0.5006, allocations: 25.7 kB / 349.4 MB, free: 6.051 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.5009, allocations: 238.7 kB / 349.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.501, allocations: 78.89 kB / 349.7 MB, free: 5.738 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/0.501, allocations: 4 kB / 349.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.5012, allocations: 322.8 kB / 350 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000504/0.5018, allocations: 84.42 kB / 350.1 MB, free: 5.324 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005285/0.5023, allocations: 107.5 kB / 350.2 MB, free: 5.211 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005511/0.5029, allocations: 95.97 kB / 350.3 MB, free: 5.117 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.5029, allocations: 0 / 350.3 MB, free: 5.117 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00158/0.5045, allocations: 319 kB / 350.6 MB, free: 4.793 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.5045, allocations: 4.625 kB / 350.6 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.5046, allocations: 0 / 350.6 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005573/0.5051, allocations: 85.66 kB / 350.7 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.5056, allocations: 39.92 kB / 350.7 MB, free: 4.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004381/0.5101, allocations: 2.866 MB / 353.6 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/0.5106, allocations: 27.83 kB / 353.6 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.5107, allocations: 4 kB / 353.6 MB, free: 1.496 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 () * 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.0003372/0.511, allocations: 145.7 kB / 353.7 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.5111, allocations: 31.78 kB / 353.8 MB, free: 1.312 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.783e-05/0.5113, allocations: 30.11 kB / 353.8 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.5113, allocations: 4 kB / 353.8 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.5113, allocations: 0 / 353.8 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.5113, allocations: 0 / 353.8 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000757/0.5121, allocations: 341.2 kB / 354.1 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.5121, allocations: 0 / 354.1 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003522/0.5125, allocations: 35.97 kB / 354.2 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004464/0.5129, allocations: 69.67 kB / 354.2 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.513, allocations: 8 kB / 354.3 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004249/0.5172, allocations: 2.847 MB / 357.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.5173, allocations: 0 / 357.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.5188, allocations: 404.4 kB / 357.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.5191, allocations: 120.7 kB / 357.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.275e-05/0.5192, allocations: 8 kB / 357.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006606/0.5199, allocations: 39.98 kB / 357.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.52, allocations: 15.97 kB / 357.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.5201, allocations: 8 kB / 357.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004055/0.5205, allocations: 190 kB / 357.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5205, allocations: 4 kB / 357.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008694/0.5214, allocations: 91.84 kB / 358 MB, free: 12.77 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 () * 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.000209/0.5216, allocations: 103.2 kB / 358.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.5233, allocations: 469.7 kB / 358.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.5233, allocations: 0 / 358.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009554/0.5243, allocations: 365.2 kB / 358.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006624/0.525, allocations: 56.36 kB / 358.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.5267, allocations: 0.6221 MB / 359.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005492/0.5272, allocations: 0.7755 MB / 360.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.5274, allocations: 19.44 kB / 360.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of SimCode: time 1.363e-06/0.5274, allocations: 0 / 360.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of Templates: time 0.01524/0.5427, allocations: 5.383 MB / 365.7 MB, free: 4.875 MB / 298.7 MB