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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001778/0.001778, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.01/2.01, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 47.12 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1296, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.009775/0.1394, allocations: 5.543 MB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2481/0.3876, allocations: 19.41 MB / 375.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.3888, allocations: 8.406 kB / 375.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003857/0.3927, allocations: 0.8232 MB / 375.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009276/0.402, allocations: 1.593 MB / 377.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008902/0.411, allocations: 1.299 MB / 378.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004717/0.4157, allocations: 1.784 MB / 380.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004902/0.4163, allocations: 177.2 kB / 380.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007934/0.4171, allocations: 352.2 kB / 381.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00063/0.4177, allocations: 359.2 kB / 381.5 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.4179, allocations: 32.59 kB / 381.5 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006336/0.4242, allocations: 1.436 MB / 383 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002887/0.4245, allocations: 113 kB / 383.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007831/0.4253, allocations: 438.9 kB / 383.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005834/0.4312, allocations: 1.592 MB / 385.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.4312, allocations: 1.219 kB / 385.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4312, allocations: 2.344 kB / 385.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.4e-05/0.4313, allocations: 0 / 385.1 MB, free: 7.602 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.003261/0.4346, allocations: 1.382 MB / 386.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.4346, allocations: 9.969 kB / 386.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.227e-05/0.4347, allocations: 64.8 kB / 386.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002404/0.435, allocations: 117.4 kB / 386.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.4365, allocations: 0.7848 MB / 387.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.4365, allocations: 19.08 kB / 387.5 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.211e-05/0.4366, allocations: 27.11 kB / 387.5 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.4378, allocations: 337 kB / 387.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.4379, allocations: 0 / 387.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.218e-05/0.4379, allocations: 10.16 kB / 387.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.438, allocations: 11.7 kB / 387.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.4393, allocations: 340.3 kB / 388.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002581/0.4419, allocations: 1.245 MB / 389.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.4431, allocations: 267.1 kB / 389.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007054/0.4438, allocations: 230.2 kB / 389.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.4542, allocations: 7.761 MB / 397.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008033/0.4551, allocations: 203 kB / 397.9 MB, free: 14.01 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 2.985e-06/0.4551, allocations: 0 / 397.9 MB, free: 14.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.002178/0.4573, allocations: 490.7 kB / 398.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.4574, allocations: 59.52 kB / 398.4 MB, free: 13.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.459, allocations: 0.8853 MB / 399.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.4591, allocations: 31.52 kB / 399.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005267/0.4596, allocations: 463.4 kB / 399.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.847e-05/0.4597, allocations: 69.5 kB / 399.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.4599, allocations: 81.17 kB / 399.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4601, allocations: 318.6 kB / 400.2 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005696/0.4607, allocations: 126.4 kB / 400.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006892/0.4614, allocations: 262.5 kB / 400.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.4626, allocations: 393.9 kB / 401 MB, free: 11.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.4626, allocations: 2.5 kB / 401 MB, free: 11.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001683/0.4643, allocations: 0.4985 MB / 401.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.4644, allocations: 7.031 kB / 401.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-05/0.4644, allocations: 20.66 kB / 401.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/0.4645, allocations: 7.969 kB / 401.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.465, allocations: 87.66 kB / 401.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.465, allocations: 10.12 kB / 401.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000815/0.4659, allocations: 55.58 kB / 401.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.33e-05/0.4659, allocations: 20.97 kB / 401.7 MB, free: 11.43 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.0004591/0.4664, allocations: 208.8 kB / 401.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.4666, allocations: 107.9 kB / 402 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.4686, allocations: 482.2 kB / 402.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.4686, allocations: 6.906 kB / 402.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4686, allocations: 3.938 kB / 402.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4686, allocations: 0 / 402.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009794/0.4696, allocations: 0.5693 MB / 403.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.762e-05/0.4697, allocations: 17.5 kB / 403.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/0.47, allocations: 39.67 kB / 403.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.4701, allocations: 6.531 kB / 403.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.585e-05/0.4701, allocations: 14.92 kB / 403.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.4701, allocations: 6.031 kB / 403.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.4701, allocations: 2.094 kB / 403.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.4715, allocations: 437.5 kB / 403.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004204/0.472, allocations: 200.5 kB / 403.8 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.4722, allocations: 13.09 kB / 403.8 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004983/0.4727, allocations: 25.19 kB / 403.8 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.4728, allocations: 38.45 kB / 403.8 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.435e-05/0.4729, allocations: 10.94 kB / 403.8 MB, free: 9.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001057/0.474, allocations: 0.5979 MB / 404.4 MB, free: 9.477 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.474, allocations: 0 / 404.4 MB, free: 9.477 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001162/0.4751, allocations: 219.8 kB / 404.7 MB, free: 9.262 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.005816/0.481, allocations: 1.349 MB / 406 MB, free: 7.961 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001708/0.4827, allocations: 358.4 kB / 406.4 MB, free: 7.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4828, allocations: 128 / 406.4 MB, free: 7.605 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007549/0.4835, allocations: 180.7 kB / 406.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.4852, allocations: 180.8 kB / 406.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.4988, allocations: 6.153 MB / 412.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/0.4995, allocations: 0.9563 MB / 413.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000634/0.5001, allocations: 102 kB / 413.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005374/0.5007, allocations: 319.3 kB / 414.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5007, allocations: 0 / 414.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1531/0.6538, allocations: 22.06 MB / 436.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.9, allocations: 0 / 436.3 MB, free: 9.504 MB / 350.1 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches