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.0008947/0.0008947, allocations: 90.7 kB / 16.31 MB, free: 5.672 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.001034/0.001034, allocations: 183 kB / 17.2 MB, free: 5.602 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.338/1.338, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 9.5 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.106, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.005151/0.1112, allocations: 4.471 MB / 355.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02132/0.1326, allocations: 16.42 MB / 372.1 MB, free: 6.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008571/0.1335, allocations: 11.94 kB / 372.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002339/0.1359, allocations: 0.7548 MB / 372.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005445/0.1413, allocations: 1.355 MB / 374.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004748/0.1461, allocations: 1.09 MB / 375.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003655/0.1498, allocations: 1.658 MB / 377 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000349/0.1502, allocations: 147.7 kB / 377.1 MB, free: 1.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005581/0.1508, allocations: 306.7 kB / 377.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004678/0.1512, allocations: 334.1 kB / 377.8 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.243e-05/0.1513, allocations: 16 kB / 377.8 MB, free: 1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004475/0.1558, allocations: 1.405 MB / 379.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.156, allocations: 99.36 kB / 379.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003759/0.1564, allocations: 209.1 kB / 379.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001503/0.1579, allocations: 1.067 MB / 380.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.158, allocations: 0 / 380.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.158, allocations: 4 kB / 380.6 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.158, allocations: 0 / 380.6 MB, free: 14.21 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.002214/0.1602, allocations: 1.266 MB / 381.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.1603, allocations: 8.031 kB / 381.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.63e-05/0.1604, allocations: 58.55 kB / 381.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.1605, allocations: 118.5 kB / 382 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/0.1618, allocations: 0.7247 MB / 382.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.1619, allocations: 20.56 kB / 382.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.317e-05/0.1619, allocations: 24 kB / 382.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008083/0.1627, allocations: 356.7 kB / 383.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1628, allocations: 0 / 383.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.1628, allocations: 12 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.1628, allocations: 4 kB / 383.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009359/0.1638, allocations: 390 kB / 383.5 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.1659, allocations: 1.249 MB / 384.8 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008726/0.1668, allocations: 306.6 kB / 385.1 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009165/0.176, allocations: 7.798 MB / 392.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005907/0.1767, allocations: 229.2 kB / 393.1 MB, free: 428 kB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 2.935e-06/0.1767, allocations: 0 / 393.1 MB, free: 428 kB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001573/0.1783, allocations: 0.6207 MB / 393.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.1783, allocations: 59.41 kB / 393.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.1794, allocations: 0.8707 MB / 394.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1795, allocations: 29.7 kB / 394.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004051/0.1799, allocations: 472.2 kB / 395.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.1799, allocations: 55.36 kB / 395.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.18, allocations: 8 kB / 395.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1801, allocations: 322 kB / 395.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003976/0.1805, allocations: 143.8 kB / 395.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/0.181, allocations: 273.9 kB / 395.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004349/0.1815, allocations: 162.3 kB / 396.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.1815, allocations: 7.953 kB / 396.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001186/0.1827, allocations: 0.5427 MB / 396.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.1827, allocations: 8 kB / 396.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.24e-05/0.1828, allocations: 27.92 kB / 396.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.1828, allocations: 8 kB / 396.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.1832, allocations: 100.4 kB / 396.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.1832, allocations: 8 kB / 396.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004361/0.1836, allocations: 67.59 kB / 396.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-05/0.1837, allocations: 20 kB / 396.9 MB, free: 12.51 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.0003558/0.1841, allocations: 217.6 kB / 397.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.1842, allocations: 106.7 kB / 397.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.1856, allocations: 0.5073 MB / 397.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.1856, allocations: 7.938 kB / 397.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.1856, allocations: 0 / 397.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1856, allocations: 0 / 397.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006411/0.1862, allocations: 0.5634 MB / 398.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.676e-05/0.1863, allocations: 20 kB / 398.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003021/0.1866, allocations: 55.95 kB / 398.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.1866, allocations: 4 kB / 398.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.1866, allocations: 19.94 kB / 398.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.1866, allocations: 0 / 398.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1867, allocations: 0 / 398.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.1877, allocations: 0.5008 MB / 398.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.188, allocations: 195.7 kB / 399 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.1881, allocations: 11.94 kB / 399 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.1884, allocations: 35.95 kB / 399.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.966e-05/0.1885, allocations: 35.95 kB / 399.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.1885, allocations: 16 kB / 399.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007158/0.1892, allocations: 0.5803 MB / 399.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1892, allocations: 3.938 kB / 399.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007228/0.19, allocations: 211.8 kB / 399.9 MB, free: 9.301 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.001993/0.192, allocations: 1.541 MB / 401.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.193, allocations: 386.4 kB / 401.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.193, allocations: 4 kB / 401.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005196/0.1936, allocations: 201.8 kB / 402 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007406/0.1943, allocations: 160.4 kB / 402.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/0.2048, allocations: 7.799 MB / 410 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005932/0.2055, allocations: 0.98 MB / 411 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004207/0.2059, allocations: 94.02 kB / 411.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/0.2063, allocations: 315.3 kB / 411.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 1.303e-06/0.2063, allocations: 4 kB / 411.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2227/0.429, allocations: 20.49 MB / 431.9 MB, free: 67.26 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001595/0.4292, allocations: 211.6 kB / 432.1 MB, free: 67.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.315/2.744, allocations: 0 / 432.1 MB, free: 67.02 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