Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=198,variableFilter="time|VGS.p.v|M1.D.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001032, allocations: 93.17 kB / 17.3 MB, free: 6.395 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.001378/0.001378, allocations: 173.4 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.324/1.324, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006037/0.0006033, allocations: 16 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09489, allocations: 47.58 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.005268/0.1002, allocations: 5.005 MB / 334 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01865/0.1189, allocations: 18.35 MB / 352.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008891/0.1198, allocations: 11.94 kB / 352.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.1221, allocations: 0.7657 MB / 353.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004816/0.1269, allocations: 1.275 MB / 354.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004185/0.1311, allocations: 1.047 MB / 355.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002982/0.1341, allocations: 1.726 MB / 357.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.1344, allocations: 161.7 kB / 357.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00035/0.1347, allocations: 294.5 kB / 357.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.1351, allocations: 341.9 kB / 357.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.126e-05/0.1352, allocations: 20 kB / 357.9 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003217/0.1384, allocations: 1.105 MB / 359 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.1385, allocations: 99.31 kB / 359.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004165/0.139, allocations: 443 kB / 359.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002379/0.1414, allocations: 1.561 MB / 361.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.1414, allocations: 0 / 361.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1414, allocations: 0 / 361.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1414, allocations: 0 / 361.1 MB, free: 3.426 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.002172/0.1436, allocations: 1.262 MB / 362.4 MB, free: 2.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.1437, allocations: 11.97 kB / 362.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.1438, allocations: 118.6 kB / 362.5 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.1449, allocations: 0.7861 MB / 363.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.145, allocations: 16.56 kB / 363.3 MB, free: 1.121 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.65e-05/0.145, allocations: 27.94 kB / 363.4 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008139/0.1459, allocations: 364.7 kB / 363.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1459, allocations: 0 / 363.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.1459, allocations: 4 kB / 363.7 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.1459, allocations: 15.98 kB / 363.7 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000941/0.1469, allocations: 382 kB / 364.1 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.1488, allocations: 1.246 MB / 365.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008996/0.1497, allocations: 314.5 kB / 365.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005482/0.1503, allocations: 253 kB / 365.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007407/0.1577, allocations: 7.786 MB / 373.7 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005784/0.1583, allocations: 231.1 kB / 373.9 MB, free: 5.379 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 2.144e-06/0.1583, allocations: 0 / 373.9 MB, free: 5.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001433/0.1598, allocations: 0.5469 MB / 374.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.1599, allocations: 59.41 kB / 374.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.1609, allocations: 0.879 MB / 375.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.1609, allocations: 33.7 kB / 375.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003763/0.1613, allocations: 468.2 kB / 375.9 MB, free: 3.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.865e-05/0.1614, allocations: 63.23 kB / 376 MB, free: 3.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.239e-05/0.1614, allocations: 33.7 kB / 376 MB, free: 3.258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1616, allocations: 322 kB / 376.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004129/0.162, allocations: 147.9 kB / 376.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004932/0.1625, allocations: 281.8 kB / 376.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009015/0.1634, allocations: 437.5 kB / 377.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1634, allocations: 0 / 377.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001111/0.1645, allocations: 0.5311 MB / 377.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.1646, allocations: 11.94 kB / 377.7 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.796e-05/0.1646, allocations: 24.56 kB / 377.7 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.1646, allocations: 8 kB / 377.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.165, allocations: 95.81 kB / 377.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.165, allocations: 11.98 kB / 377.8 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.1654, allocations: 67.66 kB / 377.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.1655, allocations: 24 kB / 377.9 MB, free: 1.184 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.0002528/0.1657, allocations: 201.7 kB / 378.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.1659, allocations: 114.6 kB / 378.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.1673, allocations: 0.5267 MB / 378.8 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1673, allocations: 0 / 378.8 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1674, allocations: 0 / 378.8 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1674, allocations: 0 / 378.8 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1667/0.334, allocations: 0.5651 MB / 379.3 MB, free: 55.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-05/0.3341, allocations: 18.02 kB / 379.3 MB, free: 55.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.3344, allocations: 59.66 kB / 379.4 MB, free: 55.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.3345, allocations: 5.125 kB / 379.4 MB, free: 55.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.41e-05/0.3345, allocations: 9.984 kB / 379.4 MB, free: 55.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.3345, allocations: 5.766 kB / 379.4 MB, free: 55.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3345, allocations: 1.375 kB / 379.4 MB, free: 55.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3356, allocations: 484.3 kB / 379.9 MB, free: 55.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.3358, allocations: 201.8 kB / 380.1 MB, free: 55.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.347e-05/0.3359, allocations: 6.984 kB / 380.1 MB, free: 55.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.3363, allocations: 40.53 kB / 380.1 MB, free: 55.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.418e-05/0.3364, allocations: 35.91 kB / 380.2 MB, free: 55.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.428e-05/0.3364, allocations: 13.22 kB / 380.2 MB, free: 55.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006618/0.3371, allocations: 0.5947 MB / 380.8 MB, free: 55.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3371, allocations: 3.469 kB / 380.8 MB, free: 55.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007322/0.3378, allocations: 218.5 kB / 381 MB, free: 55.17 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.0006824/0.3385, allocations: 479.9 kB / 381.5 MB, free: 55.08 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009707/0.3395, allocations: 394.4 kB / 381.8 MB, free: 55.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3395, allocations: 1.781 kB / 381.8 MB, free: 55.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004689/0.34, allocations: 203.9 kB / 382 MB, free: 55.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.3406, allocations: 132.3 kB / 382.2 MB, free: 55.01 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.3429, allocations: 1.777 MB / 384 MB, free: 54.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.3433, allocations: 0.9577 MB / 384.9 MB, free: 53.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003656/0.3437, allocations: 101.5 kB / 385 MB, free: 53.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.514e-05/0.3438, allocations: 49.44 kB / 385.1 MB, free: 53.41 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3438, allocations: 3.938 kB / 385.1 MB, free: 53.41 MB / 318.1 MB Notification: Performance of Templates: time 0.01977/0.3636, allocations: 12.23 MB / 397.3 MB, free: 47.92 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkMosfetCharacterization/Spice3BenchmarkMosfetCharacterization.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches