Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001254/0.001254, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009136/0.0009134, allocations: 94.64 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002578, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2162, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.3264, allocations: 102.2 MB / 478.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.3267, allocations: 79.95 kB / 478.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2886/0.6153, allocations: 74.33 MB / 0.5396 GB, free: 77.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6153, allocations: 0 / 0.5396 GB, free: 77.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.87e-05/0.6154, allocations: 16 kB / 0.5396 GB, free: 77.22 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.002758/0.6181, allocations: 1.416 MB / 0.541 GB, free: 75.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.6182, allocations: 8.031 kB / 0.541 GB, free: 75.74 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.666e-05/0.6183, allocations: 62.53 kB / 0.541 GB, free: 75.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.6184, allocations: 122.5 kB / 0.5411 GB, free: 75.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009634/0.6194, allocations: 0.7717 MB / 0.5419 GB, free: 74.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.6194, allocations: 16.56 kB / 0.5419 GB, free: 74.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.052e-05/0.6195, allocations: 24 kB / 0.5419 GB, free: 74.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000649/0.6201, allocations: 396.4 kB / 0.5423 GB, free: 74.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.6202, allocations: 7.922 kB / 0.5423 GB, free: 74.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.6202, allocations: 12 kB / 0.5423 GB, free: 74.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.6202, allocations: 11.98 kB / 0.5423 GB, free: 74.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007579/0.621, allocations: 386 kB / 0.5427 GB, free: 73.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.6227, allocations: 1.273 MB / 0.5439 GB, free: 72.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000701/0.6234, allocations: 310.6 kB / 0.5442 GB, free: 72.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006768/0.6302, allocations: 9.228 MB / 0.5533 GB, free: 61.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004471/0.6306, allocations: 229.2 kB / 0.5535 GB, free: 61.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 2.525e-06/0.6307, allocations: 0 / 0.5535 GB, free: 61.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001168/0.6318, allocations: 0.6144 MB / 0.5541 GB, free: 60.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.6319, allocations: 118.7 kB / 0.5542 GB, free: 60.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006911/0.6326, allocations: 0.7712 MB / 0.5549 GB, free: 59.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.6326, allocations: 33.7 kB / 0.555 GB, free: 59.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.6329, allocations: 472.3 kB / 0.5554 GB, free: 59.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.6329, allocations: 55.27 kB / 0.5555 GB, free: 59.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.6329, allocations: 8 kB / 0.5555 GB, free: 59.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.633, allocations: 322 kB / 0.5558 GB, free: 59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.6333, allocations: 147.8 kB / 0.5559 GB, free: 58.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.6337, allocations: 283.6 kB / 0.5562 GB, free: 58.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.6341, allocations: 178.6 kB / 0.5564 GB, free: 58.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.6341, allocations: 0 / 0.5564 GB, free: 58.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008807/0.6349, allocations: 0.5388 MB / 0.5569 GB, free: 57.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.635, allocations: 8 kB / 0.5569 GB, free: 57.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.635, allocations: 24 kB / 0.5569 GB, free: 57.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.635, allocations: 8 kB / 0.5569 GB, free: 57.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.6354, allocations: 96.44 kB / 0.557 GB, free: 57.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.6354, allocations: 11.94 kB / 0.557 GB, free: 57.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000374/0.6358, allocations: 67.64 kB / 0.5571 GB, free: 57.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.6358, allocations: 24 kB / 0.5571 GB, free: 57.56 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.0002163/0.636, allocations: 211.8 kB / 0.5573 GB, free: 57.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.6361, allocations: 114.6 kB / 0.5574 GB, free: 57.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.6373, allocations: 0.5073 MB / 0.5579 GB, free: 56.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.6373, allocations: 4 kB / 0.5579 GB, free: 56.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.6373, allocations: 3.938 kB / 0.5579 GB, free: 56.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.6373, allocations: 7.938 kB / 0.558 GB, free: 56.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004465/0.6378, allocations: 0.5827 MB / 0.5585 GB, free: 56.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.066e-05/0.6378, allocations: 20 kB / 0.5585 GB, free: 56.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.638, allocations: 52.02 kB / 0.5586 GB, free: 55.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.638, allocations: 0 / 0.5586 GB, free: 55.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.6381, allocations: 15.98 kB / 0.5586 GB, free: 55.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.6381, allocations: 7.984 kB / 0.5586 GB, free: 55.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.6381, allocations: 0 / 0.5586 GB, free: 55.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007744/0.6389, allocations: 0.5009 MB / 0.5591 GB, free: 55.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002271/0.6391, allocations: 199.7 kB / 0.5593 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.449e-05/0.6392, allocations: 7.984 kB / 0.5593 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.6395, allocations: 39.97 kB / 0.5593 GB, free: 55.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.878e-05/0.6396, allocations: 31.95 kB / 0.5594 GB, free: 55.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.6396, allocations: 19.92 kB / 0.5594 GB, free: 55.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005297/0.6402, allocations: 0.6 MB / 0.56 GB, free: 54.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6402, allocations: 0 / 0.56 GB, free: 54.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006637/0.6408, allocations: 251.7 kB / 0.5602 GB, free: 54.27 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.001646/0.6425, allocations: 1.618 MB / 0.5618 GB, free: 52.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000785/0.6433, allocations: 390.3 kB / 0.5622 GB, free: 52.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.6433, allocations: 0 / 0.5622 GB, free: 52.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003814/0.6437, allocations: 205.8 kB / 0.5624 GB, free: 52.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.6441, allocations: 141.9 kB / 0.5625 GB, free: 51.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006694/0.6508, allocations: 7.893 MB / 0.5702 GB, free: 43.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.6512, allocations: 0.9802 MB / 0.5712 GB, free: 42.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003606/0.6515, allocations: 106.4 kB / 0.5713 GB, free: 42.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/0.6518, allocations: 323.3 kB / 0.5716 GB, free: 42.23 MB / 378.7 MB Notification: Performance of SimCode: time 5.62e-07/0.6518, allocations: 0 / 0.5716 GB, free: 42.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03429/0.6861, allocations: 22.29 MB / 0.5933 GB, free: 19.94 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/0.6863, allocations: 210.6 kB / 0.5935 GB, free: 19.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.621/3.308, allocations: 0 / 0.5935 GB, free: 19.69 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat