Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001499/0.001499, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001829/0.001829, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2356, allocations: 50.54 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006075/0.2417, allocations: 5.565 MB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02033/0.2621, allocations: 19.45 MB / 433.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009032/0.263, allocations: 27.75 kB / 433.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0024/0.2655, allocations: 0.8253 MB / 434.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005971/0.2715, allocations: 1.596 MB / 436.2 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006054/0.2775, allocations: 1.307 MB / 437.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003141/0.2807, allocations: 1.816 MB / 439.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.281, allocations: 173.2 kB / 439.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004331/0.2815, allocations: 358.4 kB / 439.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003758/0.2819, allocations: 365.8 kB / 440.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.516e-05/0.2819, allocations: 32 kB / 440.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003644/0.2856, allocations: 1.447 MB / 441.7 MB, free: 444 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.2858, allocations: 111.3 kB / 441.8 MB, free: 332 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004323/0.2862, allocations: 429.4 kB / 442.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002588/0.2888, allocations: 1.607 MB / 443.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2888, allocations: 4 kB / 443.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2888, allocations: 0 / 443.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.558e-05/0.2889, allocations: 0 / 443.8 MB, free: 14.28 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.002208/0.2911, allocations: 1.424 MB / 445.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2912, allocations: 12.03 kB / 445.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.421e-05/0.2912, allocations: 62.53 kB / 445.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.2914, allocations: 127.1 kB / 445.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009626/0.2924, allocations: 0.787 MB / 446.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.2924, allocations: 16.56 kB / 446.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.2924, allocations: 24 kB / 446.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007413/0.2932, allocations: 336.7 kB / 446.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2932, allocations: 0 / 446.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.825e-05/0.2933, allocations: 15.98 kB / 446.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.2933, allocations: 7.938 kB / 446.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008903/0.2942, allocations: 346 kB / 447 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.296, allocations: 1.245 MB / 448.2 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007895/0.2968, allocations: 270.5 kB / 448.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004898/0.2973, allocations: 228.9 kB / 448.7 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007717/0.305, allocations: 7.914 MB / 456.6 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005785/0.3057, allocations: 212 kB / 456.8 MB, free: 15.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 9.147e-06/0.3057, allocations: 0 / 456.8 MB, free: 15.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001413/0.3071, allocations: 488.5 kB / 457.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.3072, allocations: 63.33 kB / 457.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.3082, allocations: 0.8863 MB / 458.2 MB, free: 14.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.3083, allocations: 29.7 kB / 458.3 MB, free: 14.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003538/0.3087, allocations: 468.8 kB / 458.7 MB, free: 14.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.427e-05/0.3087, allocations: 63.56 kB / 458.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.3089, allocations: 89.39 kB / 458.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.309, allocations: 322 kB / 459.2 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.3094, allocations: 123.9 kB / 459.3 MB, free: 13.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004661/0.3099, allocations: 257.9 kB / 459.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008233/0.3107, allocations: 393.1 kB / 459.9 MB, free: 12.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3107, allocations: 0 / 459.9 MB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001085/0.3118, allocations: 0.5007 MB / 460.4 MB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.3118, allocations: 8 kB / 460.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.981e-05/0.3119, allocations: 27.94 kB / 460.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.3119, allocations: 8 kB / 460.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.3123, allocations: 79.88 kB / 460.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.3123, allocations: 19.86 kB / 460.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004243/0.3127, allocations: 59.89 kB / 460.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.3128, allocations: 27.98 kB / 460.7 MB, free: 11.94 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.0002724/0.313, allocations: 209.6 kB / 460.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.3132, allocations: 111.3 kB / 461 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.3144, allocations: 473.8 kB / 461.4 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3144, allocations: 0 / 461.4 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3144, allocations: 7.938 kB / 461.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3144, allocations: 4 kB / 461.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006389/0.3151, allocations: 0.5711 MB / 462 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.707e-05/0.3151, allocations: 19.94 kB / 462 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002406/0.3154, allocations: 43.94 kB / 462.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.3154, allocations: 0 / 462.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.3154, allocations: 12 kB / 462.1 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3154, allocations: 8.062 kB / 462.1 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3154, allocations: 3.938 kB / 462.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009422/0.3164, allocations: 448.3 kB / 462.6 MB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002722/0.3167, allocations: 208.2 kB / 462.8 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3168, allocations: 8 kB / 462.8 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.3171, allocations: 23.95 kB / 462.8 MB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.3172, allocations: 31.97 kB / 462.8 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/0.3172, allocations: 16 kB / 462.8 MB, free: 9.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006905/0.3179, allocations: 0.592 MB / 463.4 MB, free: 9.062 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.318, allocations: 0 / 463.4 MB, free: 9.062 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006863/0.3186, allocations: 219.7 kB / 463.6 MB, free: 8.848 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.001886/0.3205, allocations: 1.362 MB / 465 MB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009296/0.3215, allocations: 353.7 kB / 465.3 MB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3215, allocations: 0 / 465.3 MB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.322, allocations: 189.7 kB / 465.5 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.3227, allocations: 166.8 kB / 465.7 MB, free: 6.746 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008279/0.331, allocations: 5.818 MB / 471.5 MB, free: 0.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.3315, allocations: 0.9563 MB / 472.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003107/0.3319, allocations: 98.02 kB / 472.6 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.3322, allocations: 319.3 kB / 472.9 MB, free: 15.27 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3322, allocations: 0 / 472.9 MB, free: 15.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04536/0.3776, allocations: 22.29 MB / 495.2 MB, free: 9.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.523/9.901, allocations: 6.516 kB / 495.2 MB, free: 9.156 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkMosfetCharacterization/Spice3BenchmarkMosfetCharacterization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches