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.001395/0.001395, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.364/1.364, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007635/0.0007634, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.204e-05/4.217e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08023/0.0803, allocations: 47.56 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3018/0.3821, allocations: 102.1 MB / 472.2 MB, free: 7.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.3824, allocations: 72.62 kB / 472.3 MB, free: 7.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3398/0.7222, allocations: 74.18 MB / 0.5337 GB, free: 100.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.7222, allocations: 3.625 kB / 0.5337 GB, free: 100.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.813e-05/0.7223, allocations: 13.81 kB / 0.5337 GB, free: 100.7 MB / 410.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.002894/0.7252, allocations: 1.217 MB / 0.5349 GB, free: 100.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.7252, allocations: 9.719 kB / 0.5349 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001322/0.7254, allocations: 61.72 kB / 0.5349 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002781/0.7256, allocations: 116.2 kB / 0.535 GB, free: 100 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.7272, allocations: 0.7681 MB / 0.5358 GB, free: 99.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.7272, allocations: 15.66 kB / 0.5358 GB, free: 99.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.827e-05/0.7273, allocations: 23.08 kB / 0.5358 GB, free: 99.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006631/0.728, allocations: 334 kB / 0.5362 GB, free: 99.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.728, allocations: 2.812 kB / 0.5362 GB, free: 99.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.864e-05/0.7281, allocations: 9.125 kB / 0.5362 GB, free: 99.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.7281, allocations: 7.562 kB / 0.5362 GB, free: 99.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004688/0.7286, allocations: 244.9 kB / 0.5364 GB, free: 99.69 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.731, allocations: 1.277 MB / 0.5377 GB, free: 99.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.7313, allocations: 180.5 kB / 0.5378 GB, free: 99.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/0.7316, allocations: 186.5 kB / 0.538 GB, free: 99.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009192/0.7408, allocations: 9.258 MB / 0.547 GB, free: 92.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.7412, allocations: 161.3 kB / 0.5472 GB, free: 92.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=19): time 3.798e-06/0.7412, allocations: 3.125 kB / 0.5472 GB, free: 92.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005314/0.7418, allocations: 292.9 kB / 0.5475 GB, free: 92.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.7418, allocations: 115.8 kB / 0.5476 GB, free: 92.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.7429, allocations: 0.7608 MB / 0.5483 GB, free: 91.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.7429, allocations: 32.97 kB / 0.5484 GB, free: 91.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003279/0.7432, allocations: 465.8 kB / 0.5488 GB, free: 91.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.7433, allocations: 59.83 kB / 0.5489 GB, free: 91.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.7433, allocations: 10.78 kB / 0.5489 GB, free: 91.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.438e-05/0.7434, allocations: 317 kB / 0.5492 GB, free: 91.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.7435, allocations: 79.98 kB / 0.5493 GB, free: 91.47 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.7437, allocations: 220.8 kB / 0.5495 GB, free: 91.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.7439, allocations: 99.91 kB / 0.5496 GB, free: 91.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.7439, allocations: 1 kB / 0.5496 GB, free: 91.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005944/0.7445, allocations: 415.5 kB / 0.55 GB, free: 91.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.7445, allocations: 6.25 kB / 0.55 GB, free: 91.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.465e-05/0.7446, allocations: 25.84 kB / 0.55 GB, free: 91.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.7446, allocations: 8.719 kB / 0.55 GB, free: 91.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003652/0.745, allocations: 101.7 kB / 0.5501 GB, free: 91.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.745, allocations: 5.375 kB / 0.5501 GB, free: 91.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004537/0.7455, allocations: 66.78 kB / 0.5502 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.7455, allocations: 21.69 kB / 0.5502 GB, free: 91.18 MB / 410.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 8.661e-05/0.7456, allocations: 130.5 kB / 0.5503 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.7457, allocations: 112.7 kB / 0.5504 GB, free: 91.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007849/0.7465, allocations: 382.4 kB / 0.5508 GB, free: 90.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.7465, allocations: 2.438 kB / 0.5508 GB, free: 90.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.7465, allocations: 5.016 kB / 0.5508 GB, free: 90.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.7465, allocations: 3.953 kB / 0.5508 GB, free: 90.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.7471, allocations: 0.5816 MB / 0.5514 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.401e-05/0.7471, allocations: 17.59 kB / 0.5514 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.7474, allocations: 60.33 kB / 0.5514 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7474, allocations: 1.562 kB / 0.5514 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.7474, allocations: 10.56 kB / 0.5514 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.7474, allocations: 1.906 kB / 0.5514 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.7475, allocations: 1.125 kB / 0.5514 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004286/0.7479, allocations: 378.3 kB / 0.5518 GB, free: 90.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002288/0.7481, allocations: 212.8 kB / 0.552 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.7482, allocations: 8.969 kB / 0.552 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003266/0.7486, allocations: 39.11 kB / 0.5521 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.725e-05/0.7487, allocations: 30.61 kB / 0.5521 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.7487, allocations: 16.91 kB / 0.5521 GB, free: 90.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006294/0.7493, allocations: 0.5919 MB / 0.5527 GB, free: 90.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7493, allocations: 0 / 0.5527 GB, free: 90.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000748/0.7501, allocations: 247.8 kB / 0.5529 GB, free: 90.24 MB / 410.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.001291/0.7514, allocations: 1.485 MB / 0.5544 GB, free: 89.37 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000465/0.7519, allocations: 262.2 kB / 0.5546 GB, free: 89.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.7519, allocations: 8.812 kB / 0.5546 GB, free: 89.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.7521, allocations: 133.9 kB / 0.5548 GB, free: 89.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.7526, allocations: 140.4 kB / 0.5549 GB, free: 89.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.7545, allocations: 1.138 MB / 0.556 GB, free: 88.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.7548, allocations: 0.9811 MB / 0.557 GB, free: 88.19 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003181/0.7551, allocations: 111.4 kB / 0.5571 GB, free: 88.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.7554, allocations: 321.8 kB / 0.5574 GB, free: 88.17 MB / 410.7 MB Notification: Performance of SimCode: time 3.61e-07/0.7554, allocations: 0 / 0.5574 GB, free: 88.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.7903, allocations: 23 MB / 0.5798 GB, free: 86.85 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001525/0.7905, allocations: 185 kB / 0.58 GB, free: 86.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.772/3.562, allocations: 0 / 0.58 GB, free: 86.62 MB / 410.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