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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00091/0.00091, allocations: 83.45 kB / 16.31 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 184.5 kB / 17.21 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.2 MB / 241.2 MB, free: 5.316 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002526, allocations: 8.781 kB / 300.9 MB, free: 5.613 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1161, allocations: 50.42 MB / 351.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.007162/0.1233, allocations: 4.836 MB / 356.2 MB, free: 6.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02429/0.1477, allocations: 17.62 MB / 373.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008679/0.1486, allocations: 15.88 kB / 373.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002229/0.1508, allocations: 0.72 MB / 374.5 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004567/0.1554, allocations: 1.227 MB / 375.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003582/0.159, allocations: 1.019 MB / 376.8 MB, free: 1.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002959/0.162, allocations: 1.679 MB / 378.4 MB, free: 200 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003027/0.1623, allocations: 147.8 kB / 378.6 MB, free: 36 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004412/0.1628, allocations: 302.6 kB / 378.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003473/0.1631, allocations: 334.1 kB / 379.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/0.1632, allocations: 16 kB / 379.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003276/0.1665, allocations: 1.311 MB / 380.5 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.1666, allocations: 95.36 kB / 380.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002052/0.1668, allocations: 201.1 kB / 380.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.168, allocations: 1.114 MB / 381.9 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.168, allocations: 0 / 381.9 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.168, allocations: 0 / 381.9 MB, free: 12.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.168, allocations: 0 / 381.9 MB, free: 12.67 MB / 318.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.00185/0.1699, allocations: 1.266 MB / 383.2 MB, free: 11.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1699, allocations: 12.03 kB / 383.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.155e-05/0.17, allocations: 66.53 kB / 383.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1701, allocations: 118.5 kB / 383.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009688/0.1711, allocations: 0.7402 MB / 384.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.1711, allocations: 16.56 kB / 384.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.1712, allocations: 20 kB / 384.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007449/0.172, allocations: 356.7 kB / 384.5 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.172, allocations: 0 / 384.5 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.172, allocations: 12 kB / 384.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.172, allocations: 11.92 kB / 384.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008487/0.1729, allocations: 382 kB / 384.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.1747, allocations: 1.249 MB / 386.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007967/0.1755, allocations: 306.6 kB / 386.5 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/0.1761, allocations: 262.9 kB / 386.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00785/0.1839, allocations: 7.756 MB / 394.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005533/0.1845, allocations: 227.1 kB / 394.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 2.184e-06/0.1845, allocations: 0 / 394.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001363/0.1859, allocations: 0.5418 MB / 395.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.186, allocations: 59.34 kB / 395.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/0.187, allocations: 0.8785 MB / 396.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.1871, allocations: 29.7 kB / 396.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004012/0.1875, allocations: 460.3 kB / 396.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.035e-05/0.1875, allocations: 63.17 kB / 396.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.1876, allocations: 12 kB / 396.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1877, allocations: 314 kB / 397 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.1881, allocations: 151.8 kB / 397.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004795/0.1886, allocations: 274.7 kB / 397.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.189, allocations: 173.3 kB / 397.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.189, allocations: 4 kB / 397.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001065/0.1901, allocations: 0.5315 MB / 398.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.1901, allocations: 8 kB / 398.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-05/0.1902, allocations: 27.94 kB / 398.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.1902, allocations: 8 kB / 398.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003551/0.1905, allocations: 88 kB / 398.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.1906, allocations: 19.92 kB / 398.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003801/0.191, allocations: 67.66 kB / 398.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.191, allocations: 20 kB / 398.4 MB, free: 10.83 MB / 334.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 () * 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.0003268/0.1913, allocations: 213.7 kB / 398.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.1915, allocations: 110.7 kB / 398.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.1928, allocations: 0.5094 MB / 399.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.1928, allocations: 0 / 399.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1928, allocations: 0 / 399.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1928, allocations: 0 / 399.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000618/0.1934, allocations: 0.5671 MB / 399.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.791e-05/0.1935, allocations: 23.98 kB / 399.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.1937, allocations: 51.89 kB / 399.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.685e-06/0.1937, allocations: 7.953 kB / 399.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.1937, allocations: 8.062 kB / 399.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1938, allocations: 8 kB / 399.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1938, allocations: 0 / 399.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009046/0.1947, allocations: 488.7 kB / 400.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002236/0.1949, allocations: 199.7 kB / 400.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.512e-05/0.195, allocations: 8 kB / 400.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.1953, allocations: 35.95 kB / 400.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.1954, allocations: 35.94 kB / 400.6 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.492e-05/0.1955, allocations: 16 kB / 400.7 MB, free: 8.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007453/0.1962, allocations: 0.5842 MB / 401.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1962, allocations: 0 / 401.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007115/0.1969, allocations: 215.8 kB / 401.4 MB, free: 7.652 MB / 334.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) * 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.00188/0.1988, allocations: 1.373 MB / 402.8 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009646/0.1998, allocations: 392 kB / 403.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1998, allocations: 0 / 403.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004668/0.2003, allocations: 205.8 kB / 403.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007576/0.2011, allocations: 167 kB / 403.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009245/0.2103, allocations: 4.857 MB / 408.4 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/0.2109, allocations: 0.9605 MB / 409.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004191/0.2113, allocations: 98.02 kB / 409.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003726/0.2117, allocations: 323.3 kB / 409.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2117, allocations: 0 / 409.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2244/0.4362, allocations: 20.68 MB / 430.5 MB, free: 65.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001455/0.4364, allocations: 229 kB / 430.7 MB, free: 65.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/2.831, allocations: 5.156 kB / 430.7 MB, free: 65.7 MB / 350.1 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