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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 91.92 kB / 16.95 MB, free: 6.891 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.001359/0.001359, allocations: 187.5 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.681/1.681, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004581/0.0004584, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1076, allocations: 47.58 MB / 328.4 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.005461/0.1132, allocations: 4.698 MB / 333.1 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01786/0.131, allocations: 16.74 MB / 349.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00097/0.1321, allocations: 11.94 kB / 349.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002192/0.1343, allocations: 0.7043 MB / 350.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004836/0.1391, allocations: 1.216 MB / 351.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0042/0.1433, allocations: 0.9677 MB / 352.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003488/0.1468, allocations: 1.632 MB / 354.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.1471, allocations: 151.8 kB / 354.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003739/0.1475, allocations: 278.7 kB / 354.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003804/0.1479, allocations: 326.2 kB / 355.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.392e-05/0.148, allocations: 23.94 kB / 355.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003197/0.1512, allocations: 1.042 MB / 356.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.1513, allocations: 99.3 kB / 356.3 MB, free: 8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002306/0.1516, allocations: 209.1 kB / 356.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.1531, allocations: 1.133 MB / 357.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.1531, allocations: 0 / 357.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.1531, allocations: 0 / 357.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.1531, allocations: 0 / 357.7 MB, free: 6.652 MB / 302.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.002235/0.1553, allocations: 1.27 MB / 358.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.784e-05/0.1554, allocations: 16.02 kB / 358.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.015e-05/0.1555, allocations: 58.55 kB / 359 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.1557, allocations: 118.6 kB / 359.1 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.1569, allocations: 0.748 MB / 359.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.1569, allocations: 16.56 kB / 359.9 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.346e-05/0.157, allocations: 24 kB / 359.9 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007516/0.1577, allocations: 360.7 kB / 360.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.1577, allocations: 0 / 360.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.1578, allocations: 8 kB / 360.3 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1578, allocations: 8 kB / 360.3 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000867/0.1587, allocations: 390 kB / 360.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.1606, allocations: 1.257 MB / 361.9 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008083/0.1614, allocations: 314.5 kB / 362.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004947/0.1619, allocations: 252.9 kB / 362.5 MB, free: 1.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009252/0.1712, allocations: 7.779 MB / 370.2 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006448/0.1719, allocations: 219.2 kB / 370.5 MB, free: 8.582 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 2.254e-06/0.1719, allocations: 4 kB / 370.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001308/0.1732, allocations: 0.5391 MB / 371 MB, free: 8.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.1733, allocations: 63.39 kB / 371.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.1743, allocations: 0.8788 MB / 371.9 MB, free: 7.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.1744, allocations: 29.7 kB / 372 MB, free: 7.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.1748, allocations: 468.3 kB / 372.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/0.1748, allocations: 59.19 kB / 372.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.1749, allocations: 8 kB / 372.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.175, allocations: 318 kB / 372.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/0.1753, allocations: 139.9 kB / 372.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004528/0.1758, allocations: 285.8 kB / 373.2 MB, free: 5.703 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.1762, allocations: 171.9 kB / 373.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1762, allocations: 0 / 373.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001014/0.1772, allocations: 0.5353 MB / 373.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1773, allocations: 4 kB / 373.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.283e-05/0.1773, allocations: 28 kB / 374 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.1773, allocations: 4 kB / 374 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000336/0.1777, allocations: 104 kB / 374.1 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.1777, allocations: 7.984 kB / 374.1 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.1781, allocations: 67.56 kB / 374.1 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-05/0.1781, allocations: 27.98 kB / 374.2 MB, free: 4.754 MB / 318.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.0002768/0.1784, allocations: 213.6 kB / 374.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.1785, allocations: 110.7 kB / 374.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/0.1798, allocations: 0.4957 MB / 375 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1798, allocations: 0 / 375 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/0.1798, allocations: 3.953 kB / 375 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1798, allocations: 4 kB / 375 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006248/0.1805, allocations: 0.5788 MB / 375.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.762e-05/0.1805, allocations: 19.98 kB / 375.6 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.1807, allocations: 55.95 kB / 375.6 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1808, allocations: 4.062 kB / 375.6 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.1808, allocations: 8 kB / 375.6 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1808, allocations: 3.938 kB / 375.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.1808, allocations: 3.953 kB / 375.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008893/0.1817, allocations: 478.7 kB / 376.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.1819, allocations: 199.6 kB / 376.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.3e-05/0.182, allocations: 11.95 kB / 376.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.1823, allocations: 43.95 kB / 376.4 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.403e-05/0.1824, allocations: 31.95 kB / 376.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.1824, allocations: 16 kB / 376.4 MB, free: 2.375 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006871/0.1831, allocations: 0.5844 MB / 377 MB, free: 1.785 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1831, allocations: 4 kB / 377 MB, free: 1.781 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006606/0.1838, allocations: 223.8 kB / 377.2 MB, free: 1.562 MB / 318.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.001906/0.1857, allocations: 1.383 MB / 378.6 MB, free: 144 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.2334/0.4192, allocations: 384.7 kB / 379 MB, free: 55.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.026e-06/0.4192, allocations: 0 / 379 MB, free: 55.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005408/0.4198, allocations: 207.2 kB / 379.2 MB, free: 55.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009187/0.4207, allocations: 137 kB / 379.3 MB, free: 55.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.4313, allocations: 4.884 MB / 384.2 MB, free: 53.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.4319, allocations: 0.9662 MB / 385.2 MB, free: 52.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000479/0.4324, allocations: 97.22 kB / 385.3 MB, free: 52.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003931/0.4328, allocations: 319.9 kB / 385.6 MB, free: 52.77 MB / 318.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4328, allocations: 3.625 kB / 385.6 MB, free: 52.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03664/0.4694, allocations: 20.79 MB / 406.4 MB, free: 38.51 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.4696, allocations: 215.2 kB / 406.6 MB, free: 38.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.763/3.233, allocations: 7.906 kB / 406.6 MB, free: 38.26 MB / 318.1 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) Environment - environmentSimulation: 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