Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.796/1.796, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004959/0.0004959, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1145, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4772/0.5918, allocations: 73.2 MB / 382.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/0.5922, allocations: 77.31 kB / 382.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02639/0.6186, allocations: 4.904 MB / 387.1 MB, free: 14.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.6187, allocations: 0 / 387.1 MB, free: 14.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.264e-05/0.6187, allocations: 10.62 kB / 387.2 MB, free: 14.14 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.001433/0.6202, allocations: 0.595 MB / 387.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.6202, allocations: 9.344 kB / 387.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.6204, allocations: 33.84 kB / 387.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/0.6208, allocations: 271.4 kB / 388.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.6209, allocations: 19.66 kB / 388.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.237e-05/0.6209, allocations: 27.62 kB / 388.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008681/0.6218, allocations: 262.6 kB / 388.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.6219, allocations: 5.312 kB / 388.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.6219, allocations: 8.906 kB / 388.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.6219, allocations: 6.625 kB / 388.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008736/0.6228, allocations: 229.2 kB / 388.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002692/0.6255, allocations: 0.9976 MB / 389.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007172/0.6263, allocations: 225.1 kB / 389.8 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.6264, allocations: 5.391 kB / 389.8 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.6264, allocations: 34.31 kB / 389.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.855e-06/0.6264, allocations: 0 / 389.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001984/0.6284, allocations: 0.5807 MB / 390.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.6285, allocations: 59.28 kB / 390.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.6288, allocations: 259.8 kB / 390.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.6289, allocations: 33.36 kB / 390.8 MB, free: 12.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.629, allocations: 236.1 kB / 391 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.114e-05/0.6291, allocations: 74.06 kB / 391.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.6291, allocations: 2.688 kB / 391.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.244e-05/0.6292, allocations: 321.1 kB / 391.4 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.6295, allocations: 84.58 kB / 391.5 MB, free: 11.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003462/0.6298, allocations: 118.4 kB / 391.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.6302, allocations: 100.4 kB / 391.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6302, allocations: 0 / 391.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001017/0.6313, allocations: 319.4 kB / 392 MB, free: 11.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.6313, allocations: 9.438 kB / 392 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.495e-05/0.6313, allocations: 64 / 392 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004158/0.6318, allocations: 80.03 kB / 392.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.6322, allocations: 37.59 kB / 392.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002565/0.6347, allocations: 2.853 MB / 395 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004347/0.6352, allocations: 38.97 kB / 395 MB, free: 9.141 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.6353, allocations: 9.047 kB / 395 MB, free: 9.137 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.00025/0.6355, allocations: 146.9 kB / 395.2 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.766e-05/0.6356, allocations: 30.97 kB / 395.2 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.314e-05/0.6357, allocations: 29.69 kB / 395.2 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.6357, allocations: 3.875 kB / 395.2 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.6357, allocations: 3.875 kB / 395.2 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.6357, allocations: 0 / 395.2 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004603/0.6362, allocations: 333.1 kB / 395.6 MB, free: 8.805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.6362, allocations: 0 / 395.6 MB, free: 8.805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.6365, allocations: 34.27 kB / 395.6 MB, free: 8.801 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003329/0.6369, allocations: 71.47 kB / 395.7 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.6369, allocations: 3.516 kB / 395.7 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00248/0.6394, allocations: 2.848 MB / 398.5 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6394, allocations: 0 / 398.5 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009996/0.6404, allocations: 400.6 kB / 398.9 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.646e-05/0.6406, allocations: 111.6 kB / 399 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.869e-05/0.6406, allocations: 3.062 kB / 399 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004446/0.6411, allocations: 38.52 kB / 399.1 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.6412, allocations: 24.2 kB / 399.1 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.6412, allocations: 3.875 kB / 399.1 MB, free: 5.934 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002309/0.6415, allocations: 186.3 kB / 399.3 MB, free: 5.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6415, allocations: 0 / 399.3 MB, free: 5.855 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005333/0.642, allocations: 91.38 kB / 399.4 MB, free: 5.848 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.0001333/0.6422, allocations: 105.6 kB / 399.5 MB, free: 5.762 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.6433, allocations: 470.5 kB / 399.9 MB, free: 5.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.6433, allocations: 0 / 399.9 MB, free: 5.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006047/0.6439, allocations: 360.4 kB / 400.3 MB, free: 5.285 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005062/0.6444, allocations: 48.64 kB / 400.3 MB, free: 5.277 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.6456, allocations: 0.6241 MB / 401 MB, free: 4.887 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.646, allocations: 0.7771 MB / 401.7 MB, free: 20.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.6462, allocations: 19.06 kB / 401.7 MB, free: 20.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6462, allocations: 0 / 401.7 MB, free: 20.18 MB / 330.7 MB Notification: Performance of Templates: time 0.01007/0.6562, allocations: 5.413 MB / 407.2 MB, free: 19.92 MB / 330.7 MB