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/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_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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009737/0.0009738, allocations: 181.5 kB / 8.482 MB, free: 1.789 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.023/1.023, allocations: 205.2 MB / 214.1 MB, free: 13.86 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.0008521/0.000852, allocations: 91.8 kB / 262.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0901/0.09099, allocations: 52.98 MB / 315.1 MB, free: 8.574 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.2737, allocations: 47.56 MB / 362.6 MB, free: 45.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1001/0.3739, allocations: 101.4 MB / 464 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001846/0.3741, allocations: 71.97 kB / 464.1 MB, free: 0.4922 MB / 346.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.2601/0.6341, allocations: 71.73 MB / 0.5232 GB, free: 99.85 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.6342, allocations: 6.969 kB / 0.5232 GB, free: 99.85 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.6343, allocations: 120.8 kB / 0.5234 GB, free: 99.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000949/0.6353, allocations: 0.7588 MB / 0.5241 GB, free: 99.35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.6353, allocations: 18.72 kB / 0.5241 GB, free: 99.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.6354, allocations: 23.39 kB / 0.5241 GB, free: 99.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003712/0.6358, allocations: 230.4 kB / 0.5244 GB, free: 99.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000404/0.6362, allocations: 294.7 kB / 0.5246 GB, free: 99.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.6362, allocations: 0 / 0.5246 GB, free: 99.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.43e-05/0.6362, allocations: 9.641 kB / 0.5247 GB, free: 99.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.6363, allocations: 7.938 kB / 0.5247 GB, free: 99.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.638, allocations: 1.223 MB / 0.5259 GB, free: 98.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.6382, allocations: 124.7 kB / 0.526 GB, free: 98.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/0.6385, allocations: 166.2 kB / 0.5261 GB, free: 98.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006683/0.6452, allocations: 9.244 MB / 0.5352 GB, free: 90.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.6454, allocations: 140 kB / 0.5353 GB, free: 90.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.854e-06/0.6454, allocations: 0 / 0.5353 GB, free: 90.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004033/0.6458, allocations: 273.4 kB / 0.5356 GB, free: 90.67 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.6459, allocations: 114.6 kB / 0.5357 GB, free: 90.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.6465, allocations: 0.702 MB / 0.5364 GB, free: 90.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.6465, allocations: 25.7 kB / 0.5364 GB, free: 90.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.6467, allocations: 269.1 kB / 0.5366 GB, free: 90 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.6467, allocations: 56.41 kB / 0.5367 GB, free: 89.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.6467, allocations: 0 / 0.5367 GB, free: 89.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.921e-05/0.6468, allocations: 321.3 kB / 0.537 GB, free: 89.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.6469, allocations: 63.41 kB / 0.5371 GB, free: 89.63 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.647, allocations: 217 kB / 0.5373 GB, free: 89.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.6472, allocations: 90.31 kB / 0.5373 GB, free: 89.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.6472, allocations: 3.906 kB / 0.5373 GB, free: 89.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004681/0.6477, allocations: 364.3 kB / 0.5377 GB, free: 89.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.6477, allocations: 7.875 kB / 0.5377 GB, free: 89.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-05/0.6477, allocations: 27.31 kB / 0.5377 GB, free: 89.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.6478, allocations: 8.812 kB / 0.5377 GB, free: 89.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003664/0.6481, allocations: 102.7 kB / 0.5378 GB, free: 89.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.6481, allocations: 7.188 kB / 0.5378 GB, free: 89.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004244/0.6486, allocations: 70.39 kB / 0.5379 GB, free: 89.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.6486, allocations: 24.69 kB / 0.5379 GB, free: 89.2 MB / 394.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 () * 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 8.338e-05/0.6487, allocations: 120.7 kB / 0.538 GB, free: 89.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-05/0.6488, allocations: 112.6 kB / 0.5382 GB, free: 89.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.6498, allocations: 432.8 kB / 0.5386 GB, free: 88.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.6498, allocations: 3.938 kB / 0.5386 GB, free: 88.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.6498, allocations: 0 / 0.5386 GB, free: 88.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.6498, allocations: 0 / 0.5386 GB, free: 88.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.6503, allocations: 0.5324 MB / 0.5391 GB, free: 88.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.488e-05/0.6503, allocations: 19.5 kB / 0.5391 GB, free: 88.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.6506, allocations: 61.78 kB / 0.5392 GB, free: 88.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.6506, allocations: 2.75 kB / 0.5392 GB, free: 88.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.6506, allocations: 7.812 kB / 0.5392 GB, free: 88.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.6506, allocations: 11.72 kB / 0.5392 GB, free: 88.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.6506, allocations: 0 / 0.5392 GB, free: 88.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003582/0.651, allocations: 357.8 kB / 0.5395 GB, free: 88.28 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004123/0.6514, allocations: 0.7506 MB / 0.5403 GB, free: 87.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.6516, allocations: 205.9 kB / 0.5405 GB, free: 87.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.6518, allocations: 7.719 kB / 0.5405 GB, free: 87.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003432/0.6521, allocations: 43.08 kB / 0.5405 GB, free: 87.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.142e-05/0.6522, allocations: 30.97 kB / 0.5405 GB, free: 87.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.6522, allocations: 20.55 kB / 0.5406 GB, free: 87.49 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004725/0.6527, allocations: 0.5299 MB / 0.5411 GB, free: 87.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001136/0.6539, allocations: 244.9 kB / 0.5413 GB, free: 87.18 MB / 394.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) * 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.0008572/0.6547, allocations: 0.6152 MB / 0.5419 GB, free: 87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003988/0.6551, allocations: 239.7 kB / 0.5421 GB, free: 86.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.6551, allocations: 1.344 kB / 0.5421 GB, free: 86.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.6553, allocations: 131.7 kB / 0.5423 GB, free: 86.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.6558, allocations: 128.8 kB / 0.5424 GB, free: 86.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.6577, allocations: 0.9736 MB / 0.5433 GB, free: 86.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000491/0.6582, allocations: 1.035 MB / 0.5444 GB, free: 85.65 MB / 394.7 MB Notification: Performance of SimCode: time 8.02e-07/0.6582, allocations: 0 / 0.5444 GB, free: 85.65 MB / 394.7 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)