Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001618/0.001619, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008207/0.0008207, allocations: 96.19 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002254/0.0002254, allocations: 12 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2074, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.3229, allocations: 104.2 MB / 0.4939 GB, free: 8.266 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003021/0.3233, allocations: 79.84 kB / 0.494 GB, free: 8.188 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3737/0.697, allocations: 81.65 MB / 0.5737 GB, free: 39.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.6971, allocations: 0 / 0.5737 GB, free: 39.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.602e-05/0.6971, allocations: 19.94 kB / 0.5737 GB, free: 39.32 MB / 378.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.002489/0.6996, allocations: 1.416 MB / 0.5751 GB, free: 37.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.6997, allocations: 8.031 kB / 0.5751 GB, free: 37.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.244e-05/0.6997, allocations: 54.55 kB / 0.5751 GB, free: 37.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.6999, allocations: 120 kB / 0.5753 GB, free: 37.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009507/0.7008, allocations: 0.7675 MB / 0.576 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.7009, allocations: 16.52 kB / 0.576 GB, free: 36.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.7009, allocations: 28 kB / 0.5761 GB, free: 36.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007104/0.7016, allocations: 404.3 kB / 0.5764 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.7017, allocations: 0 / 0.5764 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.7017, allocations: 4 kB / 0.5764 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.7017, allocations: 15.98 kB / 0.5765 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007888/0.7025, allocations: 382 kB / 0.5768 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.7042, allocations: 1.269 MB / 0.5781 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00074/0.705, allocations: 310.7 kB / 0.5784 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007328/0.7123, allocations: 9.196 MB / 0.5873 GB, free: 23.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005136/0.7129, allocations: 229.7 kB / 0.5876 GB, free: 23.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 2.896e-06/0.7129, allocations: 0 / 0.5876 GB, free: 23.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001197/0.7141, allocations: 0.6171 MB / 0.5882 GB, free: 22.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.7142, allocations: 114.8 kB / 0.5883 GB, free: 22.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007513/0.7149, allocations: 0.767 MB / 0.589 GB, free: 22.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.715, allocations: 33.7 kB / 0.589 GB, free: 22.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.7152, allocations: 464.3 kB / 0.5895 GB, free: 21.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.261e-05/0.7153, allocations: 63.19 kB / 0.5896 GB, free: 21.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.7153, allocations: 4 kB / 0.5896 GB, free: 21.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.643e-05/0.7154, allocations: 322 kB / 0.5899 GB, free: 21.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003394/0.7157, allocations: 143.9 kB / 0.59 GB, free: 21.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003615/0.7161, allocations: 295.5 kB / 0.5903 GB, free: 20.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.7164, allocations: 164.6 kB / 0.5904 GB, free: 20.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.7164, allocations: 3.938 kB / 0.5904 GB, free: 20.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008862/0.7173, allocations: 0.5427 MB / 0.591 GB, free: 19.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.7174, allocations: 4 kB / 0.591 GB, free: 19.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.85e-05/0.7174, allocations: 20 kB / 0.591 GB, free: 19.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.7174, allocations: 8.562 kB / 0.591 GB, free: 19.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/0.7177, allocations: 103.8 kB / 0.5911 GB, free: 19.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.7178, allocations: 4 kB / 0.5911 GB, free: 19.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004518/0.7182, allocations: 71.55 kB / 0.5912 GB, free: 19.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.7183, allocations: 24 kB / 0.5912 GB, free: 19.73 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.0002198/0.7185, allocations: 214.7 kB / 0.5914 GB, free: 19.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.961e-05/0.7186, allocations: 110.6 kB / 0.5915 GB, free: 19.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.7198, allocations: 0.5064 MB / 0.592 GB, free: 18.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.7198, allocations: 0 / 0.592 GB, free: 18.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.7198, allocations: 0 / 0.592 GB, free: 18.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.7198, allocations: 3.984 kB / 0.592 GB, free: 18.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004585/0.7203, allocations: 0.5904 MB / 0.5926 GB, free: 18.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.072e-05/0.7203, allocations: 16 kB / 0.5926 GB, free: 18.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.7206, allocations: 56.02 kB / 0.5927 GB, free: 18.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.7206, allocations: 0 / 0.5927 GB, free: 18.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.7206, allocations: 19.98 kB / 0.5927 GB, free: 18.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.7206, allocations: 3.938 kB / 0.5927 GB, free: 18.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7206, allocations: 4 kB / 0.5927 GB, free: 18.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008044/0.7214, allocations: 0.4969 MB / 0.5932 GB, free: 17.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/0.7217, allocations: 203.6 kB / 0.5934 GB, free: 17.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.985e-05/0.7218, allocations: 11.98 kB / 0.5934 GB, free: 17.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.7221, allocations: 39.97 kB / 0.5934 GB, free: 17.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.94e-05/0.7222, allocations: 31.95 kB / 0.5934 GB, free: 17.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.7222, allocations: 15.98 kB / 0.5935 GB, free: 17.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005251/0.7227, allocations: 0.5959 MB / 0.594 GB, free: 16.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7227, allocations: 3.938 kB / 0.594 GB, free: 16.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007545/0.7235, allocations: 251.7 kB / 0.5943 GB, free: 16.44 MB / 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.00163/0.7251, allocations: 1.603 MB / 0.5958 GB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008187/0.726, allocations: 390.3 kB / 0.5962 GB, free: 14.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.726, allocations: 0 / 0.5962 GB, free: 14.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003873/0.7264, allocations: 213.7 kB / 0.5964 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006018/0.727, allocations: 161.5 kB / 0.5966 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006938/0.7339, allocations: 7.864 MB / 0.6043 GB, free: 5.863 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.7342, allocations: 0.9801 MB / 0.6052 GB, free: 4.855 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003795/0.7346, allocations: 102.4 kB / 0.6053 GB, free: 4.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002569/0.7349, allocations: 323.3 kB / 0.6056 GB, free: 4.434 MB / 378.7 MB Notification: Performance of SimCode: time 1.021e-06/0.7349, allocations: 7.938 kB / 0.6056 GB, free: 4.426 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03943/0.7743, allocations: 22.19 MB / 0.6273 GB, free: 14.52 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.7746, allocations: 210.7 kB / 0.6275 GB, free: 14.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.7/3.475, allocations: 0 / 0.6275 GB, free: 14.27 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat