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.001584/0.001584, allocations: 183 kB / 16.4 MB, free: 5.75 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.017/2.017, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001125/0.001124, allocations: 86.94 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000854/0.0008544, allocations: 11.98 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3964, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.005822/0.4023, allocations: 4.375 MB / 379 MB, free: 41.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02404/0.4264, allocations: 15.63 MB / 394.6 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009507/0.4274, allocations: 11.94 kB / 394.6 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003055/0.4305, allocations: 0.7392 MB / 395.4 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006267/0.4368, allocations: 1.347 MB / 396.7 MB, free: 26.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004766/0.4416, allocations: 1.048 MB / 397.8 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004177/0.4458, allocations: 1.632 MB / 399.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003857/0.4463, allocations: 155.8 kB / 399.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005089/0.4468, allocations: 274.7 kB / 399.8 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004363/0.4472, allocations: 322.2 kB / 400.1 MB, free: 23.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.945e-05/0.4473, allocations: 20 kB / 400.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004821/0.4522, allocations: 1.195 MB / 401.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002501/0.4525, allocations: 99.3 kB / 401.5 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003302/0.4528, allocations: 205.1 kB / 401.7 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001889/0.4547, allocations: 1.076 MB / 402.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4548, allocations: 0 / 402.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4548, allocations: 0 / 402.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.4548, allocations: 0 / 402.7 MB, free: 20.64 MB / 298.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.002624/0.4574, allocations: 1.27 MB / 404 MB, free: 19.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.4575, allocations: 12.03 kB / 404 MB, free: 19.31 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.348e-05/0.4576, allocations: 58.55 kB / 404.1 MB, free: 19.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002357/0.4578, allocations: 122.5 kB / 404.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.4594, allocations: 0.7325 MB / 404.9 MB, free: 18.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.4594, allocations: 20.56 kB / 404.9 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.906e-05/0.4595, allocations: 23.98 kB / 405 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.4609, allocations: 352.7 kB / 405.3 MB, free: 17.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.461, allocations: 0 / 405.3 MB, free: 17.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.4611, allocations: 12 kB / 405.3 MB, free: 17.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.4611, allocations: 7.984 kB / 405.3 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002361/0.4635, allocations: 390 kB / 405.7 MB, free: 17.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003946/0.4675, allocations: 1.253 MB / 407 MB, free: 16.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002034/0.4696, allocations: 314.6 kB / 407.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01368/0.4833, allocations: 7.813 MB / 415.1 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.4845, allocations: 235.5 kB / 415.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 4.228e-06/0.4846, allocations: 0 / 415.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.003221/0.4878, allocations: 0.6181 MB / 415.9 MB, free: 6.156 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/0.4879, allocations: 59.39 kB / 416 MB, free: 6.086 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001897/0.4899, allocations: 0.8827 MB / 416.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.096e-05/0.49, allocations: 29.7 kB / 416.9 MB, free: 5.156 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004854/0.4905, allocations: 442.2 kB / 417.3 MB, free: 4.719 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.4906, allocations: 63.19 kB / 417.4 MB, free: 4.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.565e-05/0.4907, allocations: 8 kB / 417.4 MB, free: 4.648 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.4908, allocations: 322.8 kB / 417.7 MB, free: 4.324 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009295/0.4917, allocations: 147.8 kB / 417.9 MB, free: 4.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.4927, allocations: 277.8 kB / 418.1 MB, free: 3.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009831/0.4938, allocations: 172 kB / 418.3 MB, free: 3.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.4938, allocations: 4 kB / 418.3 MB, free: 3.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002384/0.4962, allocations: 449.5 kB / 418.7 MB, free: 3.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.4963, allocations: 12 kB / 418.8 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-05/0.4964, allocations: 23.98 kB / 418.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.294e-05/0.4964, allocations: 8 kB / 418.8 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008919/0.4973, allocations: 95.81 kB / 418.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/0.4974, allocations: 8 kB / 418.9 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.4984, allocations: 71.56 kB / 419 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-05/0.4986, allocations: 23.94 kB / 419 MB, free: 2.992 MB / 298.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 () * 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.0005358/0.4991, allocations: 217 kB / 419.2 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.4993, allocations: 110.6 kB / 419.3 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002978/0.5023, allocations: 0.5068 MB / 419.8 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.5024, allocations: 4 kB / 419.8 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.5024, allocations: 0 / 419.8 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.5024, allocations: 3.953 kB / 419.8 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.5036, allocations: 0.5672 MB / 420.4 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.797e-05/0.5036, allocations: 24 kB / 420.4 MB, free: 1.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005615/0.5042, allocations: 55.88 kB / 420.5 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.034e-05/0.5042, allocations: 4 kB / 420.5 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.087e-05/0.5043, allocations: 4 kB / 420.5 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.5043, allocations: 8.062 kB / 420.5 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5043, allocations: 3.984 kB / 420.5 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.5065, allocations: 0.5048 MB / 421 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004407/0.507, allocations: 199.6 kB / 421.2 MB, free: 0.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.5072, allocations: 8 kB / 421.2 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008871/0.5081, allocations: 39.95 kB / 421.2 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.5084, allocations: 35.89 kB / 421.3 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-05/0.5085, allocations: 16 kB / 421.3 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001436/0.5099, allocations: 0.5844 MB / 421.9 MB, free: 15.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.51, allocations: 0 / 421.9 MB, free: 15.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001413/0.5114, allocations: 215.8 kB / 422.1 MB, free: 15.77 MB / 314.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) * 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.00409/0.5155, allocations: 1.543 MB / 423.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002801/0.5184, allocations: 390.9 kB / 424 MB, free: 13.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.216e-05/0.5184, allocations: 4 kB / 424 MB, free: 13.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001384/0.5198, allocations: 209.7 kB / 424.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.5214, allocations: 138.8 kB / 424.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02725/0.5487, allocations: 7.868 MB / 432.2 MB, free: 5.258 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.5498, allocations: 0.9761 MB / 433.2 MB, free: 4.254 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000962/0.5508, allocations: 319.3 kB / 433.5 MB, free: 3.941 MB / 314.7 MB Notification: Performance of SimCode: time 1.824e-06/0.5508, allocations: 0 / 433.5 MB, free: 3.941 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.843/3.394, allocations: 15.8 MB / 449.3 MB, free: 4.148 MB / 330.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