Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.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.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=198,variableFilter="time|VGS.p.v|M1.D.i",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") Notification: Performance of loadModel(Modelica): time 2.13/2.13, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004888/0.0004889, allocations: 15.94 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 44.51 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.543, allocations: 97.77 MB / 406.8 MB, free: 13.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.5433, allocations: 75.81 kB / 406.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2349/0.7782, allocations: 74.2 MB / 481.1 MB, free: 6.945 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.7783, allocations: 0 / 481.1 MB, free: 6.945 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.871e-05/0.7783, allocations: 12 kB / 481.1 MB, free: 6.934 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.004273/0.7826, allocations: 1.411 MB / 482.5 MB, free: 5.469 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.7827, allocations: 12.03 kB / 482.5 MB, free: 5.457 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.783, allocations: 118.5 kB / 482.6 MB, free: 5.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/0.785, allocations: 0.7794 MB / 483.4 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.7851, allocations: 16.56 kB / 483.4 MB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.595e-05/0.7852, allocations: 24 kB / 483.5 MB, free: 4.469 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.7866, allocations: 404.3 kB / 483.9 MB, free: 4.055 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.7867, allocations: 4 kB / 483.9 MB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/0.7867, allocations: 11.98 kB / 483.9 MB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.7868, allocations: 12 kB / 483.9 MB, free: 4.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.7884, allocations: 382 kB / 484.3 MB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003296/0.7917, allocations: 1.281 MB / 485.5 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.7933, allocations: 302.6 kB / 485.8 MB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01493/0.8082, allocations: 9.239 MB / 495.1 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009085/0.8092, allocations: 219.2 kB / 495.3 MB, free: 7.223 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 3.286e-06/0.8092, allocations: 0 / 495.3 MB, free: 7.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.002534/0.8118, allocations: 0.6231 MB / 495.9 MB, free: 6.574 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.8119, allocations: 110.8 kB / 496 MB, free: 6.441 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.8136, allocations: 0.8984 MB / 496.9 MB, free: 5.531 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.8136, allocations: 33.64 kB / 497 MB, free: 5.492 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005864/0.8142, allocations: 472.2 kB / 497.4 MB, free: 5.027 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.131e-05/0.8143, allocations: 55.27 kB / 497.5 MB, free: 4.973 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.8144, allocations: 12 kB / 497.5 MB, free: 4.961 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.8145, allocations: 318 kB / 497.8 MB, free: 4.645 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006875/0.8152, allocations: 139.9 kB / 497.9 MB, free: 4.508 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008182/0.816, allocations: 295.5 kB / 498.2 MB, free: 4.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007312/0.8168, allocations: 168.2 kB / 498.4 MB, free: 3.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.8168, allocations: 0 / 498.4 MB, free: 3.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001956/0.8188, allocations: 0.535 MB / 498.9 MB, free: 3.441 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.8188, allocations: 8 kB / 498.9 MB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.818e-05/0.8189, allocations: 20.56 kB / 498.9 MB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.8189, allocations: 15.98 kB / 499 MB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006423/0.8196, allocations: 91.88 kB / 499 MB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.8196, allocations: 7.938 kB / 499.1 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007161/0.8203, allocations: 71.64 kB / 499.1 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.8204, allocations: 20 kB / 499.1 MB, free: 3.211 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.VDS.counter,VDS.counter,$PRE.VGS.counter,VGS.counter,$whenCondition2,$whenCondition1,$PRE.VDS.T0,VDS.T0,$PRE.VDS.counter2,VDS.counter2,$PRE.VGS.T0,VGS.T0,$PRE.VGS.counter2,VGS.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000472/0.8209, allocations: 215.7 kB / 499.4 MB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.8211, allocations: 106.7 kB / 499.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/0.8234, allocations: 0.5228 MB / 500 MB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.8235, allocations: 7.938 kB / 500 MB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.8235, allocations: 3.938 kB / 500 MB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.8235, allocations: 3.984 kB / 500 MB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009753/0.8245, allocations: 0.5711 MB / 0.4888 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.551e-05/0.8245, allocations: 20 kB / 0.4889 GB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.825, allocations: 56.02 kB / 0.4889 GB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.825, allocations: 4 kB / 0.4889 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/0.8251, allocations: 11.94 kB / 0.4889 GB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.8251, allocations: 4 kB / 0.4889 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.8251, allocations: 0 / 0.4889 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.8268, allocations: 489.6 kB / 0.4894 GB, free: 1.117 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004196/0.8273, allocations: 207.6 kB / 0.4896 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001978/0.8275, allocations: 11.98 kB / 0.4896 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005929/0.8281, allocations: 35.97 kB / 0.4896 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.8282, allocations: 31.95 kB / 0.4897 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.357e-05/0.8283, allocations: 19.98 kB / 0.4897 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001211/0.8295, allocations: 0.6 MB / 0.4903 GB, free: 196 kB / 378.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8296, allocations: 0 / 0.4903 GB, free: 196 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.001208/0.8308, allocations: 251.8 kB / 0.4905 GB, free: 15.94 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,VDS.T0,VDS.counter,VDS.counter2,VGS.T0,VGS.counter,VGS.counter2) * Number of discrete states: 4 (VGS.counter,VDS.counter,VGS.counter2,VDS.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/0.832, allocations: 0.5391 MB / 0.491 GB, free: 15.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.8337, allocations: 385.5 kB / 0.4914 GB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.8338, allocations: 4.125 kB / 0.4914 GB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008335/0.8346, allocations: 209.6 kB / 0.4916 GB, free: 14.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008609/0.8355, allocations: 140.5 kB / 0.4917 GB, free: 14.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003702/0.8392, allocations: 1.646 MB / 0.4934 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006733/0.8399, allocations: 0.9802 MB / 0.4943 GB, free: 11.97 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006296/0.8406, allocations: 102.4 kB / 0.4944 GB, free: 11.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.8407, allocations: 55.38 kB / 0.4945 GB, free: 11.81 MB / 394.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8408, allocations: 0 / 0.4945 GB, free: 11.81 MB / 394.7 MB Notification: Performance of Templates: time 0.03696/0.8777, allocations: 13.09 MB / 0.5072 GB, free: 14.74 MB / 410.7 MB