Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.465/1.465, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 67.88 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3294, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.0071/0.3366, allocations: 5.558 MB / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02281/0.3594, allocations: 19.45 MB / 434.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.3606, allocations: 23.81 kB / 434.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002643/0.3633, allocations: 0.8252 MB / 434.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005629/0.3689, allocations: 1.581 MB / 436.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005362/0.3743, allocations: 1.307 MB / 437.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003399/0.3777, allocations: 1.808 MB / 439.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003266/0.3781, allocations: 173.2 kB / 439.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005207/0.3786, allocations: 354.4 kB / 440.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004888/0.3791, allocations: 361.8 kB / 440.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-05/0.3792, allocations: 32 kB / 440.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003933/0.3831, allocations: 1.447 MB / 442 MB, free: 324 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.3833, allocations: 115.2 kB / 442.1 MB, free: 208 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004388/0.3837, allocations: 429.3 kB / 442.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002905/0.3866, allocations: 1.611 MB / 444.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.3867, allocations: 0 / 444.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3867, allocations: 3.938 kB / 444.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.3867, allocations: 0 / 444.1 MB, free: 14.16 MB / 366.1 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.002385/0.3891, allocations: 1.42 MB / 445.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3891, allocations: 12.02 kB / 445.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.845e-05/0.3892, allocations: 62.53 kB / 445.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.3894, allocations: 127.1 kB / 445.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.3905, allocations: 0.7871 MB / 446.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.3905, allocations: 16.56 kB / 446.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.338e-05/0.3906, allocations: 27.98 kB / 446.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007816/0.3914, allocations: 336.6 kB / 446.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3914, allocations: 8 kB / 446.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.3915, allocations: 8 kB / 446.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.3915, allocations: 11.94 kB / 446.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009497/0.3924, allocations: 342 kB / 447.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.3945, allocations: 1.246 MB / 448.5 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008596/0.3954, allocations: 269.7 kB / 448.8 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000541/0.3959, allocations: 228.9 kB / 449 MB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00883/0.4048, allocations: 7.914 MB / 456.9 MB, free: 84 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006069/0.4054, allocations: 203.2 kB / 457.1 MB, free: 15.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 2.264e-06/0.4054, allocations: 0 / 457.1 MB, free: 15.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001423/0.4069, allocations: 0.4888 MB / 457.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.4069, allocations: 63.34 kB / 457.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.4081, allocations: 0.8785 MB / 458.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.4081, allocations: 33.7 kB / 458.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004337/0.4085, allocations: 468.8 kB / 459 MB, free: 13.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.053e-05/0.4086, allocations: 59.58 kB / 459.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.4088, allocations: 89.38 kB / 459.2 MB, free: 13.76 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4089, allocations: 322 kB / 459.5 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.4093, allocations: 123.9 kB / 459.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000525/0.4099, allocations: 257.9 kB / 459.8 MB, free: 13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009085/0.4108, allocations: 387.1 kB / 460.2 MB, free: 12.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4108, allocations: 0 / 460.2 MB, free: 12.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001183/0.412, allocations: 0.5096 MB / 460.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.412, allocations: 4.625 kB / 460.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-05/0.4121, allocations: 35.92 kB / 460.8 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.4121, allocations: 4 kB / 460.8 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003711/0.4125, allocations: 87.81 kB / 460.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.4125, allocations: 11.94 kB / 460.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.4129, allocations: 51.7 kB / 460.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.479e-05/0.413, allocations: 24 kB / 460.9 MB, free: 11.83 MB / 382.1 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 (VDS.counter,$PRE.VDS.counter,VGS.counter,$PRE.VGS.counter,VGS.counter2,$PRE.VGS.counter2,VGS.T0,$PRE.VGS.T0,VDS.counter2,$PRE.VDS.counter2,VDS.T0,$PRE.VDS.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003175/0.4133, allocations: 213.6 kB / 461.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.4135, allocations: 115.3 kB / 461.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.4148, allocations: 467.6 kB / 461.7 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.4148, allocations: 0 / 461.7 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4148, allocations: 7.938 kB / 461.7 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.4148, allocations: 3.984 kB / 461.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007028/0.4155, allocations: 0.5749 MB / 462.3 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/0.4156, allocations: 16 kB / 462.3 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.4158, allocations: 47.89 kB / 462.4 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4158, allocations: 0 / 462.4 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.4158, allocations: 8 kB / 462.4 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.4159, allocations: 7.984 kB / 462.4 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4159, allocations: 3.938 kB / 462.4 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.4169, allocations: 447.3 kB / 462.8 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.4172, allocations: 204.2 kB / 463 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.311e-05/0.4173, allocations: 11.98 kB / 463 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.4175, allocations: 23.97 kB / 463.1 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.4177, allocations: 35.91 kB / 463.1 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/0.4177, allocations: 11.98 kB / 463.1 MB, free: 9.547 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006994/0.4184, allocations: 0.5881 MB / 463.7 MB, free: 8.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4184, allocations: 0 / 463.7 MB, free: 8.953 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006453/0.4191, allocations: 227.7 kB / 463.9 MB, free: 8.73 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002204/0.4213, allocations: 1.359 MB / 465.3 MB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009731/0.4223, allocations: 345.3 kB / 465.6 MB, free: 6.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.4223, allocations: 4 kB / 465.6 MB, free: 6.988 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.4228, allocations: 182.1 kB / 465.8 MB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000758/0.4235, allocations: 183.9 kB / 466 MB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00901/0.4325, allocations: 5.807 MB / 471.8 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006389/0.4332, allocations: 0.9563 MB / 472.7 MB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000336/0.4336, allocations: 106 kB / 472.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004071/0.434, allocations: 315.3 kB / 473.2 MB, free: 15.16 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.434, allocations: 0 / 473.2 MB, free: 15.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05467/0.4887, allocations: 22.31 MB / 495.5 MB, free: 9.133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.28, allocations: 11.75 kB / 495.5 MB, free: 9.129 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.0101e-09 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1)