Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.54/1.54, allocations: 171.2 MB / 186.8 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 8 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07899/0.07938, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3724/0.4518, allocations: 93.95 MB / 366.1 MB, free: 11.76 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4521, allocations: 74.7 kB / 366.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4902/0.9424, allocations: 75.47 MB / 441.6 MB, free: 83.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.9424, allocations: 3.5 kB / 441.6 MB, free: 83.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.786e-05/0.9425, allocations: 13.91 kB / 441.6 MB, free: 83.18 MB / 346.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.003686/0.9462, allocations: 1.411 MB / 443 MB, free: 82.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.9462, allocations: 9.625 kB / 443 MB, free: 82.41 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.9463, allocations: 64.2 kB / 443.1 MB, free: 82.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.9465, allocations: 118.4 kB / 443.2 MB, free: 82.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.9482, allocations: 0.7727 MB / 444 MB, free: 81.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.9482, allocations: 17.66 kB / 444 MB, free: 81.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.632e-05/0.9483, allocations: 21.66 kB / 444 MB, free: 81.99 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.9496, allocations: 403 kB / 444.4 MB, free: 81.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.9496, allocations: 2.109 kB / 444.4 MB, free: 81.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.476e-05/0.9497, allocations: 13.53 kB / 444.4 MB, free: 81.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.9497, allocations: 6.875 kB / 444.5 MB, free: 81.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.9512, allocations: 391.8 kB / 444.8 MB, free: 81.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.9542, allocations: 1.288 MB / 446.1 MB, free: 81.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.9556, allocations: 304.1 kB / 446.4 MB, free: 81.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01201/0.9677, allocations: 9.225 MB / 455.6 MB, free: 74.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008022/0.9685, allocations: 231.7 kB / 455.9 MB, free: 74.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 2.966e-06/0.9685, allocations: 0 / 455.9 MB, free: 74.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.002313/0.9708, allocations: 0.6196 MB / 456.5 MB, free: 74.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.9709, allocations: 113.7 kB / 456.6 MB, free: 74.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.9722, allocations: 0.7683 MB / 457.4 MB, free: 74.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.152e-05/0.9722, allocations: 33.33 kB / 457.4 MB, free: 74.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003334/0.9726, allocations: 447.7 kB / 457.8 MB, free: 73.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.413e-05/0.9727, allocations: 56.27 kB / 457.9 MB, free: 73.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.948e-05/0.9727, allocations: 6.938 kB / 457.9 MB, free: 73.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.582e-05/0.9728, allocations: 328.5 kB / 458.2 MB, free: 73.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006545/0.9735, allocations: 148.1 kB / 458.4 MB, free: 73.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006949/0.9742, allocations: 292.1 kB / 458.7 MB, free: 73.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/0.9748, allocations: 163.4 kB / 458.8 MB, free: 73.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.9749, allocations: 0 / 458.8 MB, free: 73.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001574/0.9764, allocations: 466 kB / 459.3 MB, free: 73.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.9765, allocations: 6.719 kB / 459.3 MB, free: 73.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.111e-05/0.9766, allocations: 29.09 kB / 459.3 MB, free: 73.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.849e-05/0.9766, allocations: 7.188 kB / 459.3 MB, free: 73.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006023/0.9772, allocations: 98.69 kB / 459.4 MB, free: 73.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/0.9772, allocations: 11.09 kB / 459.4 MB, free: 73.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008892/0.9781, allocations: 66.02 kB / 459.5 MB, free: 73.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.915e-05/0.9782, allocations: 17.31 kB / 459.5 MB, free: 73.3 MB / 346.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.0004637/0.9787, allocations: 215.3 kB / 459.7 MB, free: 73.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.9789, allocations: 114.2 kB / 459.8 MB, free: 73.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002143/0.981, allocations: 0.5131 MB / 460.3 MB, free: 73.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.981, allocations: 0 / 460.3 MB, free: 73.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.9811, allocations: 3.953 kB / 460.3 MB, free: 73.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.9811, allocations: 3.656 kB / 460.3 MB, free: 73.06 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009154/0.982, allocations: 0.5805 MB / 460.9 MB, free: 72.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.229e-05/0.9821, allocations: 19.77 kB / 460.9 MB, free: 72.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004329/0.9825, allocations: 52.38 kB / 461 MB, free: 72.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.9825, allocations: 2.156 kB / 461 MB, free: 72.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.9826, allocations: 11.94 kB / 461 MB, free: 72.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.9826, allocations: 0 / 461 MB, free: 72.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.9826, allocations: 9 kB / 461 MB, free: 72.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.9842, allocations: 0.5068 MB / 461.5 MB, free: 72.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003583/0.9846, allocations: 209.2 kB / 461.7 MB, free: 72.49 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.9848, allocations: 7.906 kB / 461.7 MB, free: 72.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/0.9854, allocations: 37.41 kB / 461.8 MB, free: 72.49 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.9855, allocations: 32.88 kB / 461.8 MB, free: 72.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.9856, allocations: 19.06 kB / 461.8 MB, free: 72.49 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001001/0.9866, allocations: 0.5957 MB / 462.4 MB, free: 72.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9866, allocations: 3.938 kB / 462.4 MB, free: 72.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001221/0.9878, allocations: 254.4 kB / 462.7 MB, free: 72.35 MB / 346.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.003744/0.9916, allocations: 1.613 MB / 464.3 MB, free: 71.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002075/0.9937, allocations: 396.4 kB / 464.7 MB, free: 71.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.9938, allocations: 0 / 464.7 MB, free: 71.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009806/0.9948, allocations: 202.1 kB / 464.9 MB, free: 71.42 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.996, allocations: 140.9 kB / 465 MB, free: 71.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/1.014, allocations: 7.927 MB / 472.9 MB, free: 66.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006071/1.014, allocations: 0.9818 MB / 473.9 MB, free: 65.67 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007353/1.015, allocations: 325.1 kB / 474.2 MB, free: 65.66 MB / 346.7 MB Notification: Performance of SimCode: time 1.293e-06/1.015, allocations: 0 / 474.2 MB, free: 65.66 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.683/3.698, allocations: 16.34 MB / 490.6 MB, free: 64.58 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat