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.00132/0.00132, allocations: 174.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009692/0.0009693, allocations: 108.4 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.785e-05/1.802e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08838/0.08841, allocations: 50.41 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3263/0.4148, allocations: 103.4 MB / 491 MB, free: 7.324 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4151, allocations: 67.97 kB / 491 MB, free: 7.258 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3862/0.8013, allocations: 77.43 MB / 0.5552 GB, free: 104.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.8013, allocations: 1.125 kB / 0.5552 GB, free: 104.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.8014, allocations: 15.91 kB / 0.5552 GB, free: 104.6 MB / 426.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.002253/0.8036, allocations: 1.21 MB / 0.5564 GB, free: 104 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.8037, allocations: 9.203 kB / 0.5564 GB, free: 104 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.8038, allocations: 116.8 kB / 0.5565 GB, free: 104 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.8049, allocations: 0.7584 MB / 0.5572 GB, free: 103.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.805, allocations: 8.391 kB / 0.5572 GB, free: 103.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.364e-05/0.805, allocations: 13.86 kB / 0.5572 GB, free: 103.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003769/0.8054, allocations: 239.3 kB / 0.5575 GB, free: 103.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004735/0.8059, allocations: 300.5 kB / 0.5577 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.8059, allocations: 1.25 kB / 0.5577 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.8059, allocations: 0.8906 kB / 0.5578 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.806, allocations: 10.64 kB / 0.5578 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.8079, allocations: 1.221 MB / 0.559 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.8083, allocations: 165 kB / 0.5591 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.8086, allocations: 173.5 kB / 0.5593 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009563/0.8182, allocations: 9.249 MB / 0.5683 GB, free: 96.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.8185, allocations: 154 kB / 0.5685 GB, free: 96.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=19): time 2.324e-06/0.8185, allocations: 0 / 0.5685 GB, free: 96.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.000585/0.8191, allocations: 280.7 kB / 0.5687 GB, free: 96.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.8192, allocations: 114.6 kB / 0.5688 GB, free: 96.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009585/0.8201, allocations: 0.6991 MB / 0.5695 GB, free: 95.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.8202, allocations: 27.05 kB / 0.5695 GB, free: 95.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.8205, allocations: 463.5 kB / 0.57 GB, free: 95.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.202e-05/0.8206, allocations: 62.7 kB / 0.57 GB, free: 95.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/0.8206, allocations: 0 / 0.57 GB, free: 95.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.628e-05/0.8207, allocations: 325.7 kB / 0.5704 GB, free: 95.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.8208, allocations: 70.47 kB / 0.5704 GB, free: 95.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.821, allocations: 215.1 kB / 0.5706 GB, free: 95.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.8212, allocations: 90.78 kB / 0.5707 GB, free: 95.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.8212, allocations: 2.625 kB / 0.5707 GB, free: 95.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006117/0.8218, allocations: 370.8 kB / 0.5711 GB, free: 95.19 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.8219, allocations: 10.97 kB / 0.5711 GB, free: 95.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/0.8219, allocations: 21.06 kB / 0.5711 GB, free: 95.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/0.822, allocations: 13.2 kB / 0.5711 GB, free: 95.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003981/0.8224, allocations: 88.23 kB / 0.5712 GB, free: 95.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.8224, allocations: 14.05 kB / 0.5712 GB, free: 95.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004754/0.8229, allocations: 72.38 kB / 0.5713 GB, free: 95.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.277e-05/0.8229, allocations: 18.59 kB / 0.5713 GB, free: 95.17 MB / 426.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 () * 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 9.27e-05/0.823, allocations: 120 kB / 0.5714 GB, free: 95.06 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004351/0.8235, allocations: 283.7 kB / 0.5717 GB, free: 94.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.8236, allocations: 108.5 kB / 0.5718 GB, free: 94.92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000826/0.8244, allocations: 367.3 kB / 0.5721 GB, free: 94.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.8244, allocations: 5.188 kB / 0.5721 GB, free: 94.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8244, allocations: 4.844 kB / 0.5721 GB, free: 94.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.8244, allocations: 0 / 0.5721 GB, free: 94.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006641/0.8251, allocations: 0.5334 MB / 0.5727 GB, free: 94.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.108e-05/0.8252, allocations: 20.56 kB / 0.5727 GB, free: 94.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.8254, allocations: 57.22 kB / 0.5727 GB, free: 94.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.545e-06/0.8255, allocations: 1.156 kB / 0.5727 GB, free: 94.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.8255, allocations: 11.91 kB / 0.5728 GB, free: 94.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.8255, allocations: 4.969 kB / 0.5728 GB, free: 94.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.8255, allocations: 6.578 kB / 0.5728 GB, free: 94.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.826, allocations: 369.5 kB / 0.5731 GB, free: 94.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.8263, allocations: 206 kB / 0.5733 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.8264, allocations: 5.812 kB / 0.5733 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003391/0.8267, allocations: 37.58 kB / 0.5734 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.689e-05/0.8268, allocations: 30.7 kB / 0.5734 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.8269, allocations: 14.5 kB / 0.5734 GB, free: 94.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000662/0.8275, allocations: 0.5298 MB / 0.5739 GB, free: 94.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8275, allocations: 0 / 0.5739 GB, free: 94.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008302/0.8284, allocations: 232.9 kB / 0.5741 GB, free: 94.18 MB / 426.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) * 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.00159/0.83, allocations: 1.557 MB / 0.5757 GB, free: 93.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004728/0.8305, allocations: 232.2 kB / 0.5759 GB, free: 93.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.8305, allocations: 0 / 0.5759 GB, free: 93.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002066/0.8307, allocations: 132.2 kB / 0.576 GB, free: 93.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/0.8315, allocations: 160.9 kB / 0.5762 GB, free: 93.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.8338, allocations: 1.131 MB / 0.5773 GB, free: 92.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.8342, allocations: 0.9779 MB / 0.5782 GB, free: 92.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003666/0.8345, allocations: 102.2 kB / 0.5783 GB, free: 92.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.8349, allocations: 322.2 kB / 0.5786 GB, free: 92.12 MB / 426.7 MB Notification: Performance of SimCode: time 7.12e-07/0.8349, allocations: 0 / 0.5786 GB, free: 92.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04342/0.8783, allocations: 18.42 MB / 0.5966 GB, free: 91.22 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001642/0.8785, allocations: 175.6 kB / 0.5968 GB, free: 91.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.707/3.585, allocations: 0 / 0.5968 GB, free: 91.02 MB / 426.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