Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=198,variableFilter="time|VGS.p.v|M1.D.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=198,variableFilter="time|VGS.p.v|M1.D.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009408/0.0009408, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008185/0.0008185, allocations: 98.95 kB / 299.8 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002071/0.0002072, allocations: 4 kB / 360.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1831, allocations: 51.41 MB / 412 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.003311/0.1865, allocations: 4.85 MB / 416.9 MB, free: 21.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0138/0.2003, allocations: 20.01 MB / 436.9 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006579/0.201, allocations: 11.94 kB / 436.9 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.2032, allocations: 0.7709 MB / 437.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004053/0.2072, allocations: 1.306 MB / 439 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003248/0.2105, allocations: 1.082 MB / 440.1 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002496/0.213, allocations: 1.733 MB / 441.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.2133, allocations: 162.4 kB / 442 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003576/0.2137, allocations: 318.3 kB / 442.3 MB, free: 11.12 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/0.214, allocations: 353.8 kB / 442.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.978e-05/0.2141, allocations: 20 kB / 442.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003014/0.2171, allocations: 1.318 MB / 444 MB, free: 9.434 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.2172, allocations: 99.3 kB / 444.1 MB, free: 9.336 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004271/0.2177, allocations: 439 kB / 444.5 MB, free: 8.898 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002443/0.2201, allocations: 1.553 MB / 446 MB, free: 7.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2201, allocations: 0 / 446 MB, free: 7.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2201, allocations: 0 / 446 MB, free: 7.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.2202, allocations: 0 / 446 MB, free: 7.34 MB / 314.7 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.002139/0.2223, allocations: 1.254 MB / 447.3 MB, free: 6.031 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2224, allocations: 8.031 kB / 447.3 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.2225, allocations: 122.5 kB / 447.4 MB, free: 5.902 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.2236, allocations: 0.7859 MB / 448.2 MB, free: 5.062 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.2237, allocations: 20.56 kB / 448.2 MB, free: 5.043 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-05/0.2238, allocations: 20 kB / 448.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000861/0.2246, allocations: 356.7 kB / 448.6 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.2247, allocations: 3.938 kB / 448.6 MB, free: 4.668 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.2247, allocations: 12 kB / 448.6 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.2247, allocations: 11.92 kB / 448.6 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008755/0.2256, allocations: 390 kB / 449 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.2274, allocations: 1.242 MB / 450.3 MB, free: 2.945 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008176/0.2282, allocations: 306.6 kB / 450.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005058/0.2287, allocations: 253 kB / 450.8 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007282/0.236, allocations: 7.921 MB / 458.7 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005419/0.2366, allocations: 239.2 kB / 459 MB, free: 9.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 2.565e-06/0.2366, allocations: 0 / 459 MB, free: 9.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001304/0.2379, allocations: 0.5288 MB / 459.5 MB, free: 8.598 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.2379, allocations: 63.33 kB / 459.5 MB, free: 8.523 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009639/0.2389, allocations: 0.8746 MB / 460.4 MB, free: 7.637 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.2389, allocations: 29.7 kB / 460.4 MB, free: 7.602 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003363/0.2393, allocations: 464.3 kB / 460.9 MB, free: 7.141 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.417e-05/0.2394, allocations: 63.19 kB / 461 MB, free: 7.078 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.907e-05/0.2394, allocations: 8 kB / 461 MB, free: 7.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.638e-05/0.2395, allocations: 322 kB / 461.3 MB, free: 6.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000407/0.2399, allocations: 139.9 kB / 461.4 MB, free: 6.613 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.2404, allocations: 286.8 kB / 461.7 MB, free: 6.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008022/0.2412, allocations: 431.6 kB / 462.1 MB, free: 5.785 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2412, allocations: 3.938 kB / 462.1 MB, free: 5.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00103/0.2422, allocations: 0.5388 MB / 462.7 MB, free: 5.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.2423, allocations: 9.25 kB / 462.7 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.589e-05/0.2423, allocations: 27.92 kB / 462.7 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.2423, allocations: 8 kB / 462.7 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.2427, allocations: 100.4 kB / 462.8 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.2427, allocations: 8 kB / 462.8 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/0.2431, allocations: 71.5 kB / 462.9 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.246e-05/0.2432, allocations: 24 kB / 462.9 MB, free: 4.992 MB / 330.7 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 ($PRE.VDS.counter,VDS.counter,$PRE.VGS.counter,VGS.counter,$whenCondition2,$whenCondition1,$PRE.VDS.T0,VDS.T0,$PRE.VDS.counter2,VDS.counter2,$PRE.VGS.T0,VGS.T0,$PRE.VGS.counter2,VGS.counter2) * 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.0002258/0.2434, allocations: 216.5 kB / 463.1 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.995e-05/0.2435, allocations: 106.7 kB / 463.2 MB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.2448, allocations: 0.5063 MB / 463.7 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2448, allocations: 4 kB / 463.7 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2448, allocations: 0 / 463.7 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.2448, allocations: 7.922 kB / 463.7 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005724/0.2454, allocations: 0.5632 MB / 464.3 MB, free: 3.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-05/0.2454, allocations: 20 kB / 464.3 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.2457, allocations: 56.02 kB / 464.4 MB, free: 3.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.2457, allocations: 4 kB / 464.4 MB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/0.2457, allocations: 12 kB / 464.4 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.2457, allocations: 3.984 kB / 464.4 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.2457, allocations: 7.938 kB / 464.4 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008964/0.2466, allocations: 480.9 kB / 464.9 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.2469, allocations: 199.6 kB / 465.1 MB, free: 2.715 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.399e-05/0.247, allocations: 11.98 kB / 465.1 MB, free: 2.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.2473, allocations: 35.97 kB / 465.1 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.162e-05/0.2474, allocations: 35.95 kB / 465.2 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.2474, allocations: 12 kB / 465.2 MB, free: 2.621 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006617/0.2481, allocations: 0.5764 MB / 465.7 MB, free: 2.039 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2481, allocations: 0 / 465.7 MB, free: 2.039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005809/0.2487, allocations: 219.8 kB / 466 MB, free: 1.824 MB / 330.7 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.0006545/0.2493, allocations: 491.2 kB / 466.4 MB, free: 1.332 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009366/0.2503, allocations: 398.2 kB / 466.8 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.2503, allocations: 4.125 kB / 466.8 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004543/0.2508, allocations: 197.7 kB / 467 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007672/0.2515, allocations: 164.4 kB / 467.2 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.2538, allocations: 1.765 MB / 468.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.2543, allocations: 0.9527 MB / 469.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003578/0.2546, allocations: 102 kB / 470 MB, free: 13.69 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.2547, allocations: 51.44 kB / 470 MB, free: 13.64 MB / 346.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2548, allocations: 3.938 kB / 470.1 MB, free: 13.63 MB / 346.7 MB Notification: Performance of Templates: time 0.01898/0.2737, allocations: 12.22 MB / 482.3 MB, free: 1.48 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkMosfetCharacterization/Spice3BenchmarkMosfetCharacterization.csv","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches