Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002077/0.002077, allocations: 211.3 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 47.92 kB / 377.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2282, allocations: 53.37 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006682/0.2349, allocations: 4.894 MB / 436 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02192/0.2568, allocations: 16.63 MB / 452.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007045/0.2575, allocations: 39.56 kB / 452.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002215/0.2597, allocations: 0.7211 MB / 453.4 MB, free: 260 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004914/0.2647, allocations: 1.603 MB / 455 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.2684, allocations: 1.285 MB / 456.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002842/0.2713, allocations: 1.821 MB / 458.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.2715, allocations: 102.2 kB / 458.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000471/0.272, allocations: 378.3 kB / 458.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004368/0.2724, allocations: 345.8 kB / 458.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.763e-05/0.2725, allocations: 32 kB / 458.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002618/0.2751, allocations: 1.171 MB / 460.1 MB, free: 9.488 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.2752, allocations: 115.2 kB / 460.2 MB, free: 9.375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.2755, allocations: 330 kB / 460.5 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002216/0.2778, allocations: 1.619 MB / 462.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2778, allocations: 0 / 462.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2778, allocations: 0 / 462.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.2778, allocations: 0 / 462.1 MB, free: 7.426 MB / 366.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.00221/0.28, allocations: 1.337 MB / 463.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.28, allocations: 12.03 kB / 463.5 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.714e-05/0.2801, allocations: 62.53 kB / 463.5 MB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.2803, allocations: 127.1 kB / 463.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.2814, allocations: 0.7072 MB / 464.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.2814, allocations: 28.44 kB / 464.4 MB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.2815, allocations: 16 kB / 464.4 MB, free: 5.051 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007766/0.2823, allocations: 340.8 kB / 464.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.2823, allocations: 3.938 kB / 464.8 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.584e-05/0.2823, allocations: 12 kB / 464.8 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.2823, allocations: 7.938 kB / 464.8 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009334/0.2833, allocations: 345.9 kB / 465.1 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.2853, allocations: 1.112 MB / 466.2 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008297/0.2861, allocations: 250.6 kB / 466.5 MB, free: 2.922 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005104/0.2866, allocations: 205 kB / 466.7 MB, free: 2.719 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006951/0.2936, allocations: 3.622 MB / 470.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005376/0.2941, allocations: 201.8 kB / 470.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 2.474e-06/0.2941, allocations: 4 kB / 470.5 MB, free: 14.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001392/0.2955, allocations: 0.4888 MB / 471 MB, free: 14.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.2956, allocations: 59.34 kB / 471 MB, free: 14.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.2967, allocations: 0.8824 MB / 471.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.419e-05/0.2967, allocations: 33.7 kB / 472 MB, free: 13.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000419/0.2971, allocations: 476.7 kB / 472.4 MB, free: 12.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.178e-05/0.2972, allocations: 55.53 kB / 472.5 MB, free: 12.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.2973, allocations: 93.38 kB / 472.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2974, allocations: 322 kB / 472.9 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003884/0.2978, allocations: 123.8 kB / 473 MB, free: 12.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004997/0.2983, allocations: 265.8 kB / 473.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008516/0.2992, allocations: 396.8 kB / 473.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2992, allocations: 0 / 473.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001111/0.3003, allocations: 0.5003 MB / 474.1 MB, free: 10.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3003, allocations: 11.98 kB / 474.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.855e-05/0.3004, allocations: 24 kB / 474.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.3004, allocations: 8 kB / 474.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.3007, allocations: 92.38 kB / 474.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.3008, allocations: 7.938 kB / 474.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003862/0.3011, allocations: 55.75 kB / 474.3 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.742e-05/0.3012, allocations: 23.98 kB / 474.4 MB, free: 10.72 MB / 382.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.0002728/0.3015, allocations: 205.7 kB / 474.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.3016, allocations: 111.3 kB / 474.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001245/0.3028, allocations: 474.2 kB / 475.1 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.3028, allocations: 7.984 kB / 475.1 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3028, allocations: 3.938 kB / 475.2 MB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3028, allocations: 0 / 475.2 MB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006231/0.3035, allocations: 0.5077 MB / 475.7 MB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.208e-05/0.3035, allocations: 23.98 kB / 475.7 MB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.3037, allocations: 47.89 kB / 475.7 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.3038, allocations: 0 / 475.7 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.3038, allocations: 12.06 kB / 475.7 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3038, allocations: 3.938 kB / 475.7 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.004e-06/0.3038, allocations: 7.938 kB / 475.8 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.3048, allocations: 439.2 kB / 476.2 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.3051, allocations: 127.2 kB / 476.3 MB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.3052, allocations: 11.98 kB / 476.3 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/0.3055, allocations: 27.97 kB / 476.3 MB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-05/0.3056, allocations: 31.89 kB / 476.4 MB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.3056, allocations: 12 kB / 476.4 MB, free: 8.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007443/0.3063, allocations: 0.592 MB / 477 MB, free: 8 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3063, allocations: 0 / 477 MB, free: 8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006388/0.307, allocations: 219.7 kB / 477.2 MB, free: 7.785 MB / 382.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.001919/0.3089, allocations: 1.368 MB / 478.6 MB, free: 6.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009737/0.3099, allocations: 342.3 kB / 478.9 MB, free: 6.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3099, allocations: 3.938 kB / 478.9 MB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004772/0.3104, allocations: 173.7 kB / 479.1 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000802/0.3112, allocations: 174.9 kB / 479.2 MB, free: 5.684 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008655/0.3198, allocations: 5.794 MB / 485 MB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.3202, allocations: 370.4 kB / 485.4 MB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003083/0.3205, allocations: 102 kB / 485.5 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003875/0.3209, allocations: 315.3 kB / 485.8 MB, free: 14.83 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3209, allocations: 0 / 485.8 MB, free: 14.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05693/0.3778, allocations: 23.64 MB / 0.4975 GB, free: 7.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.31, allocations: 27.73 kB / 0.4975 GB, free: 7.457 MB / 414.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkMosfetCharacterization/Spice3BenchmarkMosfetCharacterization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable VGS.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv. Warning: Get data of variable VGS.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv failed! Error: Could not read variable M1.D.i in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv. Warning: Get data of variable M1.D.i from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.810250819195062]