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.001593/0.001593, allocations: 105.6 kB / 17.58 MB, free: 5.422 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.001831/0.001831, allocations: 187.9 kB / 18.5 MB, free: 4.516 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.287/1.287, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001137/0.001137, allocations: 52.14 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07765/0.0788, allocations: 46.62 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006068/0.08492, allocations: 5.395 MB / 332.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01745/0.1024, allocations: 18.5 MB / 351.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005788/0.103, allocations: 11.94 kB / 351.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.1049, allocations: 0.7951 MB / 352.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003893/0.1089, allocations: 1.557 MB / 353.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002713/0.1116, allocations: 1.26 MB / 354.9 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002247/0.1138, allocations: 1.753 MB / 356.7 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.1141, allocations: 176.9 kB / 356.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003037/0.1144, allocations: 322.5 kB / 357.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.1148, allocations: 353.9 kB / 357.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.046e-05/0.1148, allocations: 32 kB / 357.5 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.1172, allocations: 1.132 MB / 358.6 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1173, allocations: 119.2 kB / 358.8 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003609/0.1177, allocations: 425.3 kB / 359.2 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001914/0.1196, allocations: 1.616 MB / 360.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1196, allocations: 0 / 360.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.1196, allocations: 0 / 360.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.699e-06/0.1197, allocations: 0 / 360.8 MB, free: 2.816 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.001915/0.1216, allocations: 1.382 MB / 362.2 MB, free: 1.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.1216, allocations: 15.97 kB / 362.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.725e-05/0.1217, allocations: 58.55 kB / 362.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.1218, allocations: 118.6 kB / 362.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009083/0.1228, allocations: 0.7938 MB / 363.2 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.1228, allocations: 12.56 kB / 363.2 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.1228, allocations: 27.94 kB / 363.2 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007092/0.1236, allocations: 348.6 kB / 363.5 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1236, allocations: 3.984 kB / 363.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.1236, allocations: 4 kB / 363.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.1236, allocations: 8 kB / 363.6 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008767/0.1245, allocations: 350 kB / 363.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.1263, allocations: 1.234 MB / 365.1 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008011/0.1271, allocations: 258.6 kB / 365.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004947/0.1276, allocations: 240.8 kB / 365.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00698/0.1346, allocations: 7.778 MB / 373.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004991/0.1351, allocations: 203.1 kB / 373.6 MB, free: 4.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.834e-06/0.1351, allocations: 4 kB / 373.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001292/0.1364, allocations: 492.7 kB / 374.1 MB, free: 4.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.1365, allocations: 55.41 kB / 374.1 MB, free: 4.184 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008604/0.1373, allocations: 0.8867 MB / 375 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.1374, allocations: 33.7 kB / 375.1 MB, free: 3.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003336/0.1377, allocations: 460.4 kB / 375.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.482e-05/0.1378, allocations: 67.11 kB / 375.6 MB, free: 2.723 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.1379, allocations: 85.52 kB / 375.7 MB, free: 2.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.138, allocations: 318 kB / 376 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.1384, allocations: 131.8 kB / 376.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000443/0.1388, allocations: 261.6 kB / 376.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007887/0.1396, allocations: 393.6 kB / 376.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1396, allocations: 0 / 376.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001006/0.1406, allocations: 0.492 MB / 377.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1407, allocations: 11.94 kB / 377.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.374e-05/0.1407, allocations: 24.56 kB / 377.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1407, allocations: 4 kB / 377.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/0.1411, allocations: 87.81 kB / 377.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1411, allocations: 11.98 kB / 377.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/0.1414, allocations: 59.56 kB / 377.4 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.73e-05/0.1415, allocations: 23.98 kB / 377.4 MB, free: 0.6992 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 (VDS.counter,$PRE.VDS.counter,VGS.counter,$PRE.VGS.counter,VGS.counter2,$PRE.VGS.counter2,VGS.T0,$PRE.VGS.T0,VDS.counter2,$PRE.VDS.counter2,VDS.T0,$PRE.VDS.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002242/0.1417, allocations: 213.7 kB / 377.7 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1418, allocations: 110.6 kB / 377.8 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1252/0.2671, allocations: 466.9 kB / 378.2 MB, free: 56.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.2671, allocations: 2.719 kB / 378.2 MB, free: 56.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2671, allocations: 0 / 378.2 MB, free: 56.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.2672, allocations: 2.141 kB / 378.2 MB, free: 56.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006827/0.2678, allocations: 0.5725 MB / 378.8 MB, free: 56.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-05/0.2679, allocations: 21.89 kB / 378.8 MB, free: 56.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/0.2681, allocations: 43.95 kB / 378.9 MB, free: 56.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.259e-06/0.2682, allocations: 1.781 kB / 378.9 MB, free: 56.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.2682, allocations: 13.88 kB / 378.9 MB, free: 56.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2682, allocations: 1.156 kB / 378.9 MB, free: 56.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2682, allocations: 1.188 kB / 378.9 MB, free: 56.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008722/0.2691, allocations: 449.3 kB / 379.3 MB, free: 56.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.2693, allocations: 199.1 kB / 379.5 MB, free: 56.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.581e-05/0.2694, allocations: 7.297 kB / 379.5 MB, free: 56.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.2697, allocations: 30.06 kB / 379.5 MB, free: 56.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.2698, allocations: 33.89 kB / 379.6 MB, free: 56.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.2698, allocations: 18.08 kB / 379.6 MB, free: 56.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006387/0.2704, allocations: 0.5933 MB / 380.2 MB, free: 55.92 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2704, allocations: 0.5312 kB / 380.2 MB, free: 55.92 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006617/0.2711, allocations: 218 kB / 380.4 MB, free: 55.92 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001478/0.2726, allocations: 1.362 MB / 381.8 MB, free: 55.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009106/0.2735, allocations: 350.2 kB / 382.1 MB, free: 55.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2735, allocations: 4 kB / 382.1 MB, free: 55.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004273/0.274, allocations: 180.4 kB / 382.3 MB, free: 55.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.2745, allocations: 152.5 kB / 382.4 MB, free: 55.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00736/0.2819, allocations: 6.175 MB / 388.6 MB, free: 51.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.2822, allocations: 0.965 MB / 389.6 MB, free: 50.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003538/0.2826, allocations: 98.66 kB / 389.7 MB, free: 50.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/0.2829, allocations: 323.1 kB / 390 MB, free: 50.63 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2829, allocations: 0 / 390 MB, free: 50.63 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.654/3.937, allocations: 22.16 MB / 412.1 MB, free: 32.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.714/12.65, allocations: 4.344 kB / 412.1 MB, free: 32.65 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.0101e-09 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkMosfetCharacterization/Spice3BenchmarkMosfetCharacterization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches