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.00176/0.00176, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001494/0.001494, allocations: 210.1 kB / 23.74 MB, free: 4.672 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.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001629/0.001629, allocations: 51.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2443, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006894/0.2512, allocations: 5.592 MB / 436.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02986/0.281, allocations: 19.53 MB / 456.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001297/0.2823, allocations: 35.62 kB / 456.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002506/0.2848, allocations: 0.8272 MB / 457.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004986/0.2898, allocations: 1.621 MB / 458.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004394/0.2942, allocations: 1.324 MB / 460.1 MB, free: 9.801 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003273/0.2975, allocations: 1.828 MB / 461.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002847/0.2978, allocations: 118.2 kB / 462 MB, free: 7.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005562/0.2983, allocations: 366.4 kB / 462.4 MB, free: 7.473 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004844/0.2988, allocations: 361.8 kB / 462.7 MB, free: 7.117 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.56e-05/0.2989, allocations: 32 kB / 462.8 MB, free: 7.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003611/0.3025, allocations: 1.447 MB / 464.2 MB, free: 5.637 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.3026, allocations: 115.3 kB / 464.3 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004352/0.3031, allocations: 433.3 kB / 464.7 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002803/0.3059, allocations: 1.611 MB / 466.3 MB, free: 3.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3059, allocations: 0 / 466.3 MB, free: 3.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3059, allocations: 0 / 466.3 MB, free: 3.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.3059, allocations: 0 / 466.3 MB, free: 3.48 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.002228/0.3081, allocations: 1.341 MB / 467.7 MB, free: 2.105 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3082, allocations: 16.03 kB / 467.7 MB, free: 2.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.54e-05/0.3082, allocations: 62.53 kB / 467.8 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.3084, allocations: 127.1 kB / 467.9 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.3095, allocations: 0.7149 MB / 468.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.3095, allocations: 16.5 kB / 468.6 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/0.3096, allocations: 23.94 kB / 468.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007511/0.3103, allocations: 340.8 kB / 469 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3103, allocations: 0 / 469 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.399e-05/0.3104, allocations: 11.98 kB / 469 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.3104, allocations: 11.94 kB / 469 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008879/0.3113, allocations: 341.9 kB / 469.3 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.3133, allocations: 1.182 MB / 470.5 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008243/0.3142, allocations: 246.6 kB / 470.8 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005108/0.3147, allocations: 209 kB / 471 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007033/0.3217, allocations: 3.653 MB / 474.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005345/0.3222, allocations: 206.3 kB / 474.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.683e-06/0.3222, allocations: 0 / 474.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001358/0.3236, allocations: 0.4888 MB / 475.3 MB, free: 10.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.3237, allocations: 59.39 kB / 475.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.3247, allocations: 0.8824 MB / 476.2 MB, free: 9.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.3248, allocations: 37.64 kB / 476.3 MB, free: 9.219 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004106/0.3252, allocations: 468.7 kB / 476.7 MB, free: 8.758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.3252, allocations: 55.58 kB / 476.8 MB, free: 8.703 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.3254, allocations: 101.3 kB / 476.9 MB, free: 8.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3255, allocations: 318 kB / 477.2 MB, free: 8.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003688/0.3259, allocations: 123.9 kB / 477.3 MB, free: 8.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004761/0.3264, allocations: 261.8 kB / 477.6 MB, free: 7.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008178/0.3272, allocations: 395.5 kB / 478 MB, free: 7.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3272, allocations: 0 / 478 MB, free: 7.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001081/0.3283, allocations: 0.5025 MB / 478.5 MB, free: 6.883 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3283, allocations: 4 kB / 478.5 MB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/0.3283, allocations: 32.03 kB / 478.5 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3283, allocations: 4 kB / 478.5 MB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.3287, allocations: 87.8 kB / 478.6 MB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.3287, allocations: 8 kB / 478.6 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003739/0.3291, allocations: 55.69 kB / 478.7 MB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.296e-05/0.3291, allocations: 27.94 kB / 478.7 MB, free: 6.668 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.0002732/0.3294, allocations: 207.3 kB / 478.9 MB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.3295, allocations: 123.2 kB / 479 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.3307, allocations: 467.5 kB / 479.5 MB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3307, allocations: 0 / 479.5 MB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.3307, allocations: 4 kB / 479.5 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3307, allocations: 7.938 kB / 479.5 MB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006334/0.3314, allocations: 0.5351 MB / 480 MB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.887e-05/0.3314, allocations: 19.98 kB / 480 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.3316, allocations: 43.89 kB / 480.1 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3316, allocations: 7.938 kB / 480.1 MB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.3317, allocations: 8 kB / 480.1 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3317, allocations: 4 kB / 480.1 MB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3317, allocations: 0 / 480.1 MB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009689/0.3326, allocations: 453.6 kB / 480.5 MB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.3329, allocations: 131.1 kB / 480.7 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.836e-05/0.333, allocations: 7.984 kB / 480.7 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002867/0.3333, allocations: 23.97 kB / 480.7 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.449e-05/0.3334, allocations: 31.95 kB / 480.7 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.3334, allocations: 12 kB / 480.7 MB, free: 4.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007192/0.3341, allocations: 0.592 MB / 481.3 MB, free: 3.918 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3341, allocations: 7.938 kB / 481.3 MB, free: 3.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006117/0.3347, allocations: 223.7 kB / 481.6 MB, free: 3.691 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.001912/0.3367, allocations: 1.361 MB / 482.9 MB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009149/0.3376, allocations: 336.4 kB / 483.2 MB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3376, allocations: 0 / 483.2 MB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004453/0.338, allocations: 178.3 kB / 483.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007425/0.3388, allocations: 168.5 kB / 483.6 MB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008579/0.3473, allocations: 5.802 MB / 489.4 MB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006226/0.348, allocations: 0.9563 MB / 490.3 MB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000305/0.3483, allocations: 98.02 kB / 490.4 MB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000378/0.3486, allocations: 323.3 kB / 490.7 MB, free: 10.16 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3486, allocations: 3.938 kB / 490.8 MB, free: 10.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05776/0.4064, allocations: 22.66 MB / 0.5014 GB, free: 3.723 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.6, allocations: 0 / 0.5014 GB, free: 3.723 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.12999689999924]