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.0009341/0.0009342, allocations: 95.47 kB / 16.93 MB, free: 5.98 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.0009257/0.0009257, allocations: 184.1 kB / 17.82 MB, free: 5.652 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.35/1.35, allocations: 205.4 MB / 224 MB, free: 13.18 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.0007897/0.0007899, allocations: 19.28 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09344/0.09425, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.004181/0.09847, allocations: 4.376 MB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.1145, allocations: 15.64 MB / 348.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008728/0.1154, allocations: 11.94 kB / 348.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002032/0.1174, allocations: 0.7353 MB / 349.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003884/0.1213, allocations: 1.34 MB / 350.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003241/0.1246, allocations: 1.051 MB / 351.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002963/0.1276, allocations: 1.647 MB / 353.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.1279, allocations: 147.8 kB / 353.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005164/0.1284, allocations: 270.7 kB / 353.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003347/0.1287, allocations: 326.1 kB / 353.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-05/0.1288, allocations: 20 kB / 354 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003167/0.132, allocations: 1.187 MB / 355.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.1321, allocations: 95.38 kB / 355.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.1324, allocations: 205.1 kB / 355.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.1336, allocations: 1.079 MB / 356.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1336, allocations: 0 / 356.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1336, allocations: 0 / 356.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.1336, allocations: 0 / 356.5 MB, free: 7.793 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.002171/0.1358, allocations: 1.277 MB / 357.8 MB, free: 6.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.1358, allocations: 8.031 kB / 357.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.567e-05/0.136, allocations: 58.55 kB / 357.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.1361, allocations: 118.6 kB / 358 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.1372, allocations: 0.7403 MB / 358.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.1372, allocations: 20.55 kB / 358.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.547e-05/0.1372, allocations: 24 kB / 358.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.1379, allocations: 348.7 kB / 359.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.138, allocations: 3.938 kB / 359.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.138, allocations: 12 kB / 359.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.138, allocations: 7.984 kB / 359.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008643/0.1389, allocations: 386 kB / 359.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.1407, allocations: 1.246 MB / 360.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007981/0.1416, allocations: 314.6 kB / 361.1 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007348/0.1489, allocations: 7.818 MB / 368.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005174/0.1495, allocations: 223.1 kB / 369.1 MB, free: 9.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 3.887e-06/0.1495, allocations: 7.922 kB / 369.1 MB, free: 9.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001368/0.1509, allocations: 0.6183 MB / 369.7 MB, free: 9.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.1509, allocations: 63.33 kB / 369.8 MB, free: 9.227 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008882/0.1518, allocations: 0.8788 MB / 370.7 MB, free: 8.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.1518, allocations: 33.7 kB / 370.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003168/0.1522, allocations: 464.3 kB / 371.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.355e-05/0.1522, allocations: 59.25 kB / 371.2 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-05/0.1522, allocations: 8 kB / 371.2 MB, free: 7.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.869e-05/0.1523, allocations: 318 kB / 371.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003704/0.1527, allocations: 139.9 kB / 371.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004403/0.1532, allocations: 281.8 kB / 371.9 MB, free: 6.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.1536, allocations: 163.9 kB / 372.1 MB, free: 6.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1536, allocations: 4 kB / 372.1 MB, free: 6.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009959/0.1546, allocations: 0.5316 MB / 372.6 MB, free: 6.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1546, allocations: 8 kB / 372.6 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.335e-05/0.1547, allocations: 31.95 kB / 372.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/0.1547, allocations: 11.94 kB / 372.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.1551, allocations: 91.88 kB / 372.8 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.1551, allocations: 15.94 kB / 372.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.1554, allocations: 67.56 kB / 372.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.82e-05/0.1555, allocations: 27.94 kB / 372.9 MB, free: 6.023 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.0002589/0.1558, allocations: 209.7 kB / 373.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.1559, allocations: 114.6 kB / 373.2 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.1572, allocations: 0.4996 MB / 373.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.1572, allocations: 4 kB / 373.7 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1572, allocations: 0 / 373.7 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1573, allocations: 3.953 kB / 373.7 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006283/0.1579, allocations: 0.5634 MB / 374.3 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/0.1579, allocations: 24.06 kB / 374.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.1582, allocations: 55.89 kB / 374.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.1582, allocations: 3.984 kB / 374.4 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.1582, allocations: 8 kB / 374.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1582, allocations: 4 kB / 374.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1582, allocations: 4 kB / 374.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009586/0.1592, allocations: 0.5008 MB / 374.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002311/0.1594, allocations: 199.7 kB / 375.1 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.506e-05/0.1595, allocations: 4 kB / 375.1 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.1598, allocations: 43.95 kB / 375.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.14e-05/0.1599, allocations: 35.86 kB / 375.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/0.16, allocations: 12 kB / 375.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006727/0.1607, allocations: 0.5883 MB / 375.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1607, allocations: 0 / 375.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006646/0.1613, allocations: 219.8 kB / 376 MB, free: 2.809 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.001885/0.1632, allocations: 1.543 MB / 377.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009489/0.1642, allocations: 391.4 kB / 377.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1642, allocations: 4.062 kB / 377.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004539/0.1647, allocations: 208.8 kB / 378.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004656/0.1651, allocations: 136.5 kB / 378.2 MB, free: 500 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1514/0.3165, allocations: 7.817 MB / 386 MB, free: 50.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.317, allocations: 0.9758 MB / 387 MB, free: 49.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000377/0.3174, allocations: 99.05 kB / 387.1 MB, free: 49.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/0.3178, allocations: 322.7 kB / 387.4 MB, free: 49.87 MB / 318.1 MB Notification: Performance of SimCode: time 1.803e-06/0.3178, allocations: 0 / 387.4 MB, free: 49.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03341/0.3512, allocations: 20.6 MB / 408 MB, free: 36.56 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.3514, allocations: 217.4 kB / 408.2 MB, free: 36.31 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.303/2.654, allocations: 0 / 408.2 MB, free: 36.31 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