Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 183.8 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.128/1.128, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009468/0.0009468, allocations: 94.69 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09138/0.09236, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.2741, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09996/0.3741, allocations: 103.4 MB / 490.4 MB, free: 15.37 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.3744, allocations: 71.97 kB / 490.4 MB, free: 15.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.2721/0.6465, allocations: 79.05 MB / 0.5561 GB, free: 52.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.6466, allocations: 8 kB / 0.5561 GB, free: 52.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.6467, allocations: 118.6 kB / 0.5563 GB, free: 52.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009548/0.6477, allocations: 0.7635 MB / 0.557 GB, free: 51.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.6477, allocations: 13.02 kB / 0.557 GB, free: 51.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.425e-05/0.6478, allocations: 12 kB / 0.557 GB, free: 51.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003638/0.6481, allocations: 241 kB / 0.5573 GB, free: 51.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.6486, allocations: 303.6 kB / 0.5575 GB, free: 51.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.6486, allocations: 0 / 0.5575 GB, free: 51.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.68e-05/0.6487, allocations: 0 / 0.5575 GB, free: 51.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.6487, allocations: 4 kB / 0.5575 GB, free: 51.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.6504, allocations: 1.226 MB / 0.5587 GB, free: 49.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.6506, allocations: 113.9 kB / 0.5589 GB, free: 49.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.6508, allocations: 184.4 kB / 0.559 GB, free: 49.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007217/0.6581, allocations: 9.2 MB / 0.568 GB, free: 39.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.6583, allocations: 152.1 kB / 0.5682 GB, free: 38.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 2.685e-06/0.6583, allocations: 0 / 0.5682 GB, free: 38.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004958/0.6588, allocations: 264.5 kB / 0.5684 GB, free: 38.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.6589, allocations: 114.8 kB / 0.5685 GB, free: 38.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008022/0.6597, allocations: 0.6967 MB / 0.5692 GB, free: 37.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.6597, allocations: 25.7 kB / 0.5692 GB, free: 37.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.6598, allocations: 268.2 kB / 0.5695 GB, free: 37.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.085e-05/0.6599, allocations: 59.25 kB / 0.5695 GB, free: 37.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.6599, allocations: 0 / 0.5695 GB, free: 37.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.83e-05/0.66, allocations: 318 kB / 0.5698 GB, free: 37.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.6601, allocations: 67.72 kB / 0.5699 GB, free: 37.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.6602, allocations: 225.2 kB / 0.5701 GB, free: 36.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.6604, allocations: 87.94 kB / 0.5702 GB, free: 36.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.6604, allocations: 0 / 0.5702 GB, free: 36.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005098/0.6609, allocations: 384 kB / 0.5706 GB, free: 36.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.6609, allocations: 7.984 kB / 0.5706 GB, free: 36.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-05/0.661, allocations: 20.62 kB / 0.5706 GB, free: 36.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.661, allocations: 8 kB / 0.5706 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003684/0.6614, allocations: 103.9 kB / 0.5707 GB, free: 36.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.6614, allocations: 11.94 kB / 0.5707 GB, free: 36.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004472/0.6618, allocations: 71.48 kB / 0.5708 GB, free: 36.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.6619, allocations: 24 kB / 0.5708 GB, free: 36.15 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 () * 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.073e-05/0.662, allocations: 120.8 kB / 0.5709 GB, free: 36.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.68e-05/0.6621, allocations: 106.7 kB / 0.571 GB, free: 35.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009902/0.6631, allocations: 425.1 kB / 0.5714 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.6631, allocations: 7.984 kB / 0.5714 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.6631, allocations: 3.906 kB / 0.5714 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.6631, allocations: 3.984 kB / 0.5714 GB, free: 35.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004732/0.6636, allocations: 0.5273 MB / 0.572 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.651e-05/0.6636, allocations: 19.98 kB / 0.572 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.6639, allocations: 59.95 kB / 0.572 GB, free: 34.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.6639, allocations: 0 / 0.572 GB, free: 34.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.6639, allocations: 15.94 kB / 0.5721 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.6639, allocations: 4 kB / 0.5721 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6639, allocations: 0 / 0.5721 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003624/0.6643, allocations: 352 kB / 0.5724 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00042/0.6647, allocations: 0.7473 MB / 0.5731 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002193/0.665, allocations: 203.7 kB / 0.5733 GB, free: 33.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.6651, allocations: 4 kB / 0.5733 GB, free: 33.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.6655, allocations: 47.95 kB / 0.5734 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.559e-05/0.6656, allocations: 31.86 kB / 0.5734 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.6656, allocations: 12 kB / 0.5734 GB, free: 33.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004787/0.6661, allocations: 0.5412 MB / 0.5739 GB, free: 32.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001165/0.6672, allocations: 235.8 kB / 0.5742 GB, free: 32.56 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) * 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.0007081/0.668, allocations: 0.6138 MB / 0.5748 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003557/0.6683, allocations: 233.5 kB / 0.575 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6683, allocations: 0 / 0.575 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.6685, allocations: 129.6 kB / 0.5751 GB, free: 31.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006181/0.6692, allocations: 161.2 kB / 0.5753 GB, free: 31.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.6708, allocations: 0.9658 MB / 0.5762 GB, free: 30.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/0.6712, allocations: 1.042 MB / 0.5772 GB, free: 29.34 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.6712, allocations: 0 / 0.5772 GB, free: 29.34 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1)