Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003777/0.0003776, allocations: 11.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1006, allocations: 44.5 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4567/0.5574, allocations: 97.78 MB / 406.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.5577, allocations: 75.53 kB / 406.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.241/0.7987, allocations: 74.2 MB / 480.6 MB, free: 7.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.7988, allocations: 4 kB / 480.6 MB, free: 7.301 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.964e-05/0.7988, allocations: 12 kB / 480.6 MB, free: 7.289 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.004353/0.8032, allocations: 1.419 MB / 482 MB, free: 5.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.8033, allocations: 8.031 kB / 482 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.8034, allocations: 54.55 kB / 482.1 MB, free: 5.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.8037, allocations: 130.4 kB / 482.2 MB, free: 5.621 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/0.8056, allocations: 0.764 MB / 483 MB, free: 4.805 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/0.8057, allocations: 24.55 kB / 483 MB, free: 4.781 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.092e-05/0.8058, allocations: 16 kB / 483 MB, free: 4.766 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.8072, allocations: 416.3 kB / 483.4 MB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.8073, allocations: 0 / 483.4 MB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.897e-05/0.8073, allocations: 12 kB / 483.4 MB, free: 4.328 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.8074, allocations: 4 kB / 483.4 MB, free: 4.324 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.809, allocations: 390 kB / 483.8 MB, free: 3.945 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003343/0.8124, allocations: 1.273 MB / 485.1 MB, free: 2.594 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.8139, allocations: 306.6 kB / 485.4 MB, free: 2.285 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/0.8294, allocations: 9.231 MB / 494.6 MB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000954/0.8304, allocations: 227.2 kB / 494.8 MB, free: 7.516 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 2.795e-06/0.8304, allocations: 3.938 kB / 494.8 MB, free: 7.512 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.002556/0.833, allocations: 0.6198 MB / 495.5 MB, free: 6.867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.706e-05/0.8331, allocations: 114.8 kB / 495.6 MB, free: 6.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.8347, allocations: 0.7712 MB / 496.3 MB, free: 5.949 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.728e-05/0.8348, allocations: 37.69 kB / 496.4 MB, free: 5.906 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004974/0.8353, allocations: 438.2 kB / 496.8 MB, free: 5.477 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.8354, allocations: 59.23 kB / 496.9 MB, free: 5.418 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.8355, allocations: 8 kB / 496.9 MB, free: 5.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.8356, allocations: 322.8 kB / 497.2 MB, free: 5.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007227/0.8364, allocations: 139.9 kB / 497.3 MB, free: 4.949 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008431/0.8372, allocations: 301.8 kB / 497.6 MB, free: 4.586 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007382/0.838, allocations: 168.2 kB / 497.8 MB, free: 4.422 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/0.838, allocations: 7.938 kB / 497.8 MB, free: 4.414 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001827/0.8398, allocations: 449 kB / 498.2 MB, free: 3.969 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.8399, allocations: 8 kB / 498.2 MB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.875e-05/0.84, allocations: 27.97 kB / 498.3 MB, free: 3.934 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.933e-05/0.84, allocations: 8 kB / 498.3 MB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006793/0.8407, allocations: 100.4 kB / 498.4 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.026e-05/0.8407, allocations: 11.94 kB / 498.4 MB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008241/0.8416, allocations: 67.56 kB / 498.5 MB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.928e-05/0.8417, allocations: 27.94 kB / 498.5 MB, free: 3.723 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.0005937/0.8423, allocations: 219.7 kB / 498.7 MB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.8425, allocations: 106.7 kB / 498.8 MB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002501/0.845, allocations: 0.5073 MB / 499.3 MB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.8451, allocations: 4 kB / 499.3 MB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.8451, allocations: 4 kB / 499.3 MB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.8451, allocations: 0 / 499.3 MB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.8464, allocations: 0.5749 MB / 499.9 MB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.165e-05/0.8464, allocations: 19.98 kB / 499.9 MB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.8469, allocations: 60.02 kB / 500 MB, free: 2.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-06/0.8469, allocations: 0 / 500 MB, free: 2.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.922e-05/0.847, allocations: 11.95 kB / 500 MB, free: 2.148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/0.847, allocations: 4 kB / 500 MB, free: 2.145 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.847, allocations: 0 / 500 MB, free: 2.145 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.8489, allocations: 0.5105 MB / 0.4888 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004418/0.8493, allocations: 203.6 kB / 0.489 GB, free: 1.383 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.8495, allocations: 8 kB / 0.489 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00059/0.8501, allocations: 39.94 kB / 0.489 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.8503, allocations: 35.95 kB / 0.489 GB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.228e-05/0.8504, allocations: 16 kB / 0.4891 GB, free: 1.285 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001266/0.8516, allocations: 0.6 MB / 0.4896 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8517, allocations: 0 / 0.4896 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001184/0.8528, allocations: 255.6 kB / 0.4899 GB, free: 440 kB / 378.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.003452/0.8563, allocations: 1.609 MB / 0.4915 GB, free: 14.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.8581, allocations: 395 kB / 0.4918 GB, free: 14.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.623e-05/0.8581, allocations: 4 kB / 0.4918 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008367/0.859, allocations: 205.7 kB / 0.492 GB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009581/0.86, allocations: 140.5 kB / 0.4922 GB, free: 14.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.8748, allocations: 7.927 MB / 0.4999 GB, free: 5.789 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007583/0.8756, allocations: 0.9841 MB / 0.5009 GB, free: 4.777 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006565/0.8762, allocations: 319.3 kB / 0.5012 GB, free: 4.465 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/0.8762, allocations: 0 / 0.5012 GB, free: 4.465 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.927/3.803, allocations: 16.31 MB / 0.5171 GB, free: 4.164 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat