Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_3_cpp_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.002072/0.002072, allocations: 178.1 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.958/1.958, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001493/0.001493, allocations: 86.11 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.134e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3728, allocations: 47.56 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1612/0.5341, allocations: 101.5 MB / 463.9 MB, free: 0.8008 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.5344, allocations: 75.95 kB / 464 MB, free: 0.7266 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5281/1.063, allocations: 70.08 MB / 0.5215 GB, free: 100.7 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.074e-06/1.063, allocations: 0 / 0.5215 GB, free: 100.7 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.378e-05/1.063, allocations: 13.91 kB / 0.5215 GB, free: 100.7 MB / 395.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.003096/1.066, allocations: 1.213 MB / 0.5227 GB, free: 99.89 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/1.066, allocations: 11.78 kB / 0.5227 GB, free: 99.89 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/1.066, allocations: 113.8 kB / 0.5228 GB, free: 99.83 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/1.068, allocations: 0.7724 MB / 0.5236 GB, free: 99.38 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/1.068, allocations: 11.84 kB / 0.5236 GB, free: 99.37 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/1.068, allocations: 17.78 kB / 0.5236 GB, free: 99.37 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006034/1.068, allocations: 233.6 kB / 0.5239 GB, free: 99.3 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006305/1.069, allocations: 303.2 kB / 0.5241 GB, free: 99.16 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/1.069, allocations: 2.875 kB / 0.5241 GB, free: 99.16 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/1.069, allocations: 0 / 0.5241 GB, free: 99.16 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/1.069, allocations: 7.844 kB / 0.5241 GB, free: 99.16 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002834/1.072, allocations: 1.217 MB / 0.5253 GB, free: 98.45 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004436/1.073, allocations: 166.8 kB / 0.5255 GB, free: 98.37 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/1.073, allocations: 177.5 kB / 0.5257 GB, free: 98.29 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01194/1.085, allocations: 9.265 MB / 0.5347 GB, free: 90.86 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003544/1.085, allocations: 155.5 kB / 0.5349 GB, free: 90.78 MB / 395.1 MB Notification: Performance of pre-optimization done (n=19): time 3.236e-06/1.085, allocations: 0 / 0.5349 GB, free: 90.78 MB / 395.1 MB Notification: Performance of matching and sorting (n=19): time 0.0007326/1.086, allocations: 280.7 kB / 0.5351 GB, free: 90.66 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/1.086, allocations: 110.1 kB / 0.5352 GB, free: 90.53 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/1.087, allocations: 0.7045 MB / 0.5359 GB, free: 90.21 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/1.087, allocations: 25.7 kB / 0.5359 GB, free: 90.18 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003602/1.088, allocations: 452.4 kB / 0.5364 GB, free: 89.77 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/1.088, allocations: 61.3 kB / 0.5364 GB, free: 89.73 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/1.088, allocations: 0 / 0.5364 GB, free: 89.73 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 7.263e-05/1.088, allocations: 328.2 kB / 0.5368 GB, free: 89.41 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/1.088, allocations: 71.78 kB / 0.5368 GB, free: 89.38 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/1.088, allocations: 210 kB / 0.537 GB, free: 89.17 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/1.089, allocations: 92.61 kB / 0.5371 GB, free: 89.14 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/1.089, allocations: 0 / 0.5371 GB, free: 89.14 MB / 395.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006758/1.089, allocations: 278 kB / 0.5374 GB, free: 89.04 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/1.089, allocations: 7.438 kB / 0.5374 GB, free: 89.04 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-05/1.089, allocations: 26.95 kB / 0.5374 GB, free: 89.03 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.704e-05/1.089, allocations: 7.312 kB / 0.5374 GB, free: 89.03 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00064/1.09, allocations: 93.55 kB / 0.5375 GB, free: 89.03 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/1.09, allocations: 11.62 kB / 0.5375 GB, free: 89.02 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007964/1.091, allocations: 67.98 kB / 0.5376 GB, free: 89 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.904e-05/1.091, allocations: 22.72 kB / 0.5376 GB, free: 89 MB / 395.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 ($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 0.0001375/1.091, allocations: 121.6 kB / 0.5377 GB, free: 88.88 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006164/1.092, allocations: 289.6 kB / 0.538 GB, free: 88.75 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/1.092, allocations: 107.8 kB / 0.5381 GB, free: 88.7 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/1.093, allocations: 372.2 kB / 0.5384 GB, free: 88.56 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/1.093, allocations: 2.219 kB / 0.5385 GB, free: 88.56 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/1.093, allocations: 0 / 0.5385 GB, free: 88.56 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/1.093, allocations: 6.062 kB / 0.5385 GB, free: 88.56 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007907/1.094, allocations: 0.5361 MB / 0.539 GB, free: 88.23 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.06e-05/1.094, allocations: 17.72 kB / 0.539 GB, free: 88.23 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/1.095, allocations: 57.66 kB / 0.5391 GB, free: 88.22 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/1.095, allocations: 2.281 kB / 0.5391 GB, free: 88.22 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/1.095, allocations: 15.69 kB / 0.5391 GB, free: 88.21 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/1.095, allocations: 0 / 0.5391 GB, free: 88.21 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.982e-06/1.095, allocations: 6.344 kB / 0.5391 GB, free: 88.21 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006364/1.095, allocations: 358.1 kB / 0.5394 GB, free: 88 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004177/1.096, allocations: 221.8 kB / 0.5396 GB, free: 87.82 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/1.096, allocations: 0 / 0.5396 GB, free: 87.82 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006079/1.097, allocations: 41.67 kB / 0.5397 GB, free: 87.82 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/1.097, allocations: 37.19 kB / 0.5397 GB, free: 87.81 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-05/1.097, allocations: 18.73 kB / 0.5397 GB, free: 87.8 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0008623/1.098, allocations: 0.5285 MB / 0.5402 GB, free: 87.55 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.52e-07/1.098, allocations: 0 / 0.5402 GB, free: 87.55 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001027/1.099, allocations: 229.6 kB / 0.5405 GB, free: 87.52 MB / 395.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) * 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.001938/1.101, allocations: 1.56 MB / 0.542 GB, free: 86.54 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0006254/1.101, allocations: 239.4 kB / 0.5422 GB, free: 86.43 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/1.101, allocations: 0 / 0.5422 GB, free: 86.43 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002797/1.102, allocations: 129.3 kB / 0.5423 GB, free: 86.37 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008939/1.103, allocations: 137 kB / 0.5425 GB, free: 86.31 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/1.106, allocations: 1.17 MB / 0.5436 GB, free: 85.79 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/1.106, allocations: 0.9784 MB / 0.5446 GB, free: 85.08 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005485/1.107, allocations: 322.1 kB / 0.5449 GB, free: 84.84 MB / 395.1 MB Notification: Performance of SimCode: time 1.373e-06/1.107, allocations: 0 / 0.5449 GB, free: 84.84 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.814/3.921, allocations: 15.93 MB / 0.5604 GB, free: 79.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat