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.002206/0.002211, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.127/2.127, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001111/0.001111, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.771e-05/4.787e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09696/0.09705, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5446, allocations: 102.1 MB / 471.3 MB, free: 7.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.545, allocations: 81.97 kB / 471.4 MB, free: 7.297 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5689/1.114, allocations: 74.17 MB / 0.5328 GB, free: 100.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.114, allocations: 1.219 kB / 0.5328 GB, free: 100.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.609e-05/1.114, allocations: 13.41 kB / 0.5328 GB, free: 100.3 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.004074/1.118, allocations: 1.22 MB / 0.534 GB, free: 99.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.434e-05/1.118, allocations: 12.59 kB / 0.534 GB, free: 99.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001907/1.118, allocations: 59.53 kB / 0.534 GB, free: 99.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003784/1.119, allocations: 116.8 kB / 0.5341 GB, free: 99.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002285/1.121, allocations: 0.7648 MB / 0.5349 GB, free: 99.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/1.121, allocations: 17.95 kB / 0.5349 GB, free: 99.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.489e-05/1.121, allocations: 24.19 kB / 0.5349 GB, free: 99.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009247/1.122, allocations: 335 kB / 0.5352 GB, free: 99.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/1.122, allocations: 0 / 0.5352 GB, free: 99.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-05/1.122, allocations: 9.016 kB / 0.5353 GB, free: 99.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/1.122, allocations: 6.547 kB / 0.5353 GB, free: 99.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006883/1.123, allocations: 249.4 kB / 0.5355 GB, free: 99.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/1.127, allocations: 1.271 MB / 0.5367 GB, free: 98.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000608/1.127, allocations: 176.5 kB / 0.5369 GB, free: 98.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004487/1.128, allocations: 189.9 kB / 0.5371 GB, free: 98.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01494/1.143, allocations: 9.264 MB / 0.5461 GB, free: 92.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004431/1.143, allocations: 160.5 kB / 0.5463 GB, free: 91.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=19): time 3.176e-06/1.143, allocations: 1.344 kB / 0.5463 GB, free: 91.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009338/1.144, allocations: 298.2 kB / 0.5466 GB, free: 91.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/1.144, allocations: 108.2 kB / 0.5467 GB, free: 91.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001613/1.146, allocations: 0.7652 MB / 0.5474 GB, free: 91.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.426e-05/1.146, allocations: 31.39 kB / 0.5475 GB, free: 91.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000433/1.147, allocations: 450.5 kB / 0.5479 GB, free: 91.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/1.147, allocations: 55.28 kB / 0.5479 GB, free: 91.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/1.147, allocations: 9.016 kB / 0.5479 GB, free: 91.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.026e-05/1.147, allocations: 325.3 kB / 0.5483 GB, free: 91.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/1.147, allocations: 75.92 kB / 0.5483 GB, free: 91.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/1.148, allocations: 224.1 kB / 0.5485 GB, free: 90.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/1.148, allocations: 99.77 kB / 0.5486 GB, free: 90.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/1.148, allocations: 1.875 kB / 0.5486 GB, free: 90.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008756/1.149, allocations: 320.6 kB / 0.5489 GB, free: 90.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/1.149, allocations: 12.03 kB / 0.549 GB, free: 90.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.687e-05/1.149, allocations: 22.31 kB / 0.549 GB, free: 90.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/1.149, allocations: 13.03 kB / 0.549 GB, free: 90.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007289/1.15, allocations: 97.19 kB / 0.5491 GB, free: 90.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.938e-05/1.15, allocations: 7.625 kB / 0.5491 GB, free: 90.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009244/1.151, allocations: 70.59 kB / 0.5492 GB, free: 90.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-05/1.151, allocations: 22.83 kB / 0.5492 GB, free: 90.78 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 0.0001687/1.151, allocations: 132.9 kB / 0.5493 GB, free: 90.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/1.151, allocations: 112.6 kB / 0.5494 GB, free: 90.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001535/1.153, allocations: 379.5 kB / 0.5498 GB, free: 90.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/1.153, allocations: 6.516 kB / 0.5498 GB, free: 90.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/1.153, allocations: 0 / 0.5498 GB, free: 90.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/1.153, allocations: 3.953 kB / 0.5498 GB, free: 90.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/1.154, allocations: 0.5803 MB / 0.5503 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.603e-05/1.154, allocations: 20.84 kB / 0.5504 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005094/1.155, allocations: 56.17 kB / 0.5504 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.808e-06/1.155, allocations: 1.344 kB / 0.5504 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/1.155, allocations: 10.62 kB / 0.5504 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/1.155, allocations: 4.094 kB / 0.5504 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.155, allocations: 1.125 kB / 0.5504 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009359/1.156, allocations: 374.8 kB / 0.5508 GB, free: 90.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000449/1.156, allocations: 209.3 kB / 0.551 GB, free: 89.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/1.156, allocations: 10.03 kB / 0.551 GB, free: 89.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006341/1.157, allocations: 39.72 kB / 0.551 GB, free: 89.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/1.157, allocations: 33.45 kB / 0.5511 GB, free: 89.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.984e-05/1.157, allocations: 17.94 kB / 0.5511 GB, free: 89.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001196/1.158, allocations: 0.5876 MB / 0.5517 GB, free: 89.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.158, allocations: 1.438 kB / 0.5517 GB, free: 89.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001391/1.16, allocations: 254.5 kB / 0.5519 GB, free: 89.84 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.002343/1.162, allocations: 1.487 MB / 0.5534 GB, free: 88.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008405/1.163, allocations: 258 kB / 0.5536 GB, free: 88.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/1.163, allocations: 0 / 0.5536 GB, free: 88.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003576/1.164, allocations: 140.6 kB / 0.5537 GB, free: 88.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/1.165, allocations: 135.6 kB / 0.5539 GB, free: 88.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004085/1.169, allocations: 1.183 MB / 0.555 GB, free: 88.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/1.169, allocations: 0.9785 MB / 0.556 GB, free: 87.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006026/1.17, allocations: 327 kB / 0.5563 GB, free: 87.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/1.17, allocations: 3.938 kB / 0.5563 GB, free: 87.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.707/3.877, allocations: 16 MB / 0.5719 GB, free: 86.82 MB / 410.7 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