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.001471/0.001471, allocations: 186.3 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 1.966/1.966, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001143/0.001142, allocations: 100.1 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003954, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.327, allocations: 47.57 MB / 374.6 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1643/0.4914, allocations: 102.2 MB / 476.8 MB, free: 10.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.4917, allocations: 67.97 kB / 476.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.494/0.9857, allocations: 74.33 MB / 0.5383 GB, free: 77.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.9857, allocations: 4 kB / 0.5383 GB, free: 77.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.9858, allocations: 16 kB / 0.5383 GB, free: 77.3 MB / 378.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.003466/0.9892, allocations: 1.416 MB / 0.5397 GB, free: 75.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.9893, allocations: 12.03 kB / 0.5397 GB, free: 75.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.9894, allocations: 58.53 kB / 0.5398 GB, free: 75.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.9896, allocations: 118.5 kB / 0.5399 GB, free: 75.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.9911, allocations: 0.7679 MB / 0.5406 GB, free: 74.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.9912, allocations: 16.55 kB / 0.5407 GB, free: 74.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.168e-05/0.9912, allocations: 24 kB / 0.5407 GB, free: 74.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.9924, allocations: 404.4 kB / 0.5411 GB, free: 74.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.9925, allocations: 0 / 0.5411 GB, free: 74.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.307e-05/0.9925, allocations: 8 kB / 0.5411 GB, free: 74.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.9926, allocations: 11.98 kB / 0.5411 GB, free: 74.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.994, allocations: 389.9 kB / 0.5415 GB, free: 73.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/0.9968, allocations: 1.281 MB / 0.5427 GB, free: 72.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.9982, allocations: 310.6 kB / 0.543 GB, free: 72.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/1.009, allocations: 9.224 MB / 0.552 GB, free: 61.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008221/1.01, allocations: 224.9 kB / 0.5522 GB, free: 61.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 2.655e-06/1.01, allocations: 8 kB / 0.5522 GB, free: 61.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.002265/1.013, allocations: 0.6159 MB / 0.5528 GB, free: 60.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/1.013, allocations: 110.8 kB / 0.5529 GB, free: 60.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/1.014, allocations: 0.7713 MB / 0.5537 GB, free: 59.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.505e-05/1.014, allocations: 29.7 kB / 0.5537 GB, free: 59.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/1.014, allocations: 454.1 kB / 0.5542 GB, free: 59.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.763e-05/1.014, allocations: 59.2 kB / 0.5542 GB, free: 59.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/1.014, allocations: 4 kB / 0.5542 GB, free: 59.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.361e-05/1.014, allocations: 330.8 kB / 0.5545 GB, free: 59.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006478/1.015, allocations: 143.8 kB / 0.5547 GB, free: 58.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007421/1.016, allocations: 295.6 kB / 0.555 GB, free: 58.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006721/1.017, allocations: 166.7 kB / 0.5551 GB, free: 58.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/1.017, allocations: 0 / 0.5551 GB, free: 58.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00158/1.018, allocations: 464.9 kB / 0.5556 GB, free: 57.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/1.018, allocations: 8 kB / 0.5556 GB, free: 57.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.935e-05/1.018, allocations: 20 kB / 0.5556 GB, free: 57.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.055e-05/1.018, allocations: 11.94 kB / 0.5556 GB, free: 57.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006185/1.019, allocations: 96.41 kB / 0.5557 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/1.019, allocations: 11.94 kB / 0.5557 GB, free: 57.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008296/1.02, allocations: 67.55 kB / 0.5558 GB, free: 57.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.492e-05/1.02, allocations: 28 kB / 0.5558 GB, free: 57.75 MB / 378.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.0004633/1.02, allocations: 209 kB / 0.556 GB, free: 57.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/1.02, allocations: 114.6 kB / 0.5561 GB, free: 57.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00216/1.023, allocations: 0.5058 MB / 0.5566 GB, free: 56.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-06/1.023, allocations: 4 kB / 0.5566 GB, free: 56.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/1.023, allocations: 7.938 kB / 0.5566 GB, free: 56.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/1.023, allocations: 7.938 kB / 0.5566 GB, free: 56.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008236/1.024, allocations: 0.5751 MB / 0.5572 GB, free: 56.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-05/1.024, allocations: 16 kB / 0.5572 GB, free: 56.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/1.024, allocations: 59.95 kB / 0.5572 GB, free: 56.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/1.024, allocations: 0 / 0.5572 GB, free: 56.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/1.024, allocations: 15.98 kB / 0.5573 GB, free: 56.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/1.024, allocations: 0 / 0.5573 GB, free: 56.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.024, allocations: 4 kB / 0.5573 GB, free: 56.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/1.026, allocations: 0.5009 MB / 0.5578 GB, free: 55.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/1.026, allocations: 211.6 kB / 0.558 GB, free: 55.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/1.026, allocations: 4 kB / 0.558 GB, free: 55.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/1.027, allocations: 31.97 kB / 0.558 GB, free: 55.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/1.027, allocations: 35.95 kB / 0.558 GB, free: 55.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/1.027, allocations: 19.98 kB / 0.558 GB, free: 55.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009688/1.028, allocations: 0.6039 MB / 0.5586 GB, free: 54.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.028, allocations: 0 / 0.5586 GB, free: 54.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009539/1.029, allocations: 247.7 kB / 0.5589 GB, free: 54.46 MB / 378.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.002673/1.032, allocations: 1.614 MB / 0.5604 GB, free: 52.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00156/1.033, allocations: 400 kB / 0.5608 GB, free: 52.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.033, allocations: 0 / 0.5608 GB, free: 52.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007556/1.034, allocations: 201.8 kB / 0.561 GB, free: 52.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008083/1.035, allocations: 145.8 kB / 0.5612 GB, free: 52.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/1.046, allocations: 7.929 MB / 0.5689 GB, free: 43.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/1.047, allocations: 0.9763 MB / 0.5699 GB, free: 42.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005171/1.047, allocations: 327.3 kB / 0.5702 GB, free: 42.49 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/1.047, allocations: 0 / 0.5702 GB, free: 42.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.695/3.743, allocations: 16.33 MB / 0.5861 GB, free: 26.16 MB / 378.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