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.0009004/0.0009004, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.000987/0.000987, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8979/0.8979, allocations: 177.2 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.845e-06/2.845e-06, allocations: 4 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/2.278e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.004254/0.004276, allocations: 4.908 MB / 329.5 MB, free: 11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01323/0.0175, allocations: 16.63 MB / 346.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006868/0.01819, allocations: 35.62 kB / 346.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.01972, allocations: 0.7295 MB / 346.9 MB, free: 9.531 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003692/0.02342, allocations: 1.652 MB / 348.5 MB, free: 7.863 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003078/0.02649, allocations: 1.301 MB / 349.8 MB, free: 6.559 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00252/0.02901, allocations: 1.875 MB / 351.7 MB, free: 4.676 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.02924, allocations: 106.3 kB / 351.8 MB, free: 4.559 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004979/0.02974, allocations: 0.4948 MB / 352.3 MB, free: 4.062 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.02999, allocations: 259.1 kB / 352.5 MB, free: 3.809 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.359e-05/0.03003, allocations: 32 kB / 352.6 MB, free: 3.777 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002191/0.03223, allocations: 1.17 MB / 353.8 MB, free: 2.605 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.086e-05/0.03231, allocations: 119.2 kB / 353.9 MB, free: 2.488 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.03249, allocations: 247.2 kB / 354.1 MB, free: 2.246 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001631/0.03412, allocations: 1.678 MB / 355.8 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.03413, allocations: 7.938 kB / 355.8 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.03413, allocations: 0 / 355.8 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.03414, allocations: 0 / 355.8 MB, free: 0.5547 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.001326/0.03547, allocations: 1.329 MB / 357.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.03551, allocations: 12.03 kB / 357.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.422e-05/0.03556, allocations: 62.53 kB / 357.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.03566, allocations: 127 kB / 357.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006619/0.03632, allocations: 0.7032 MB / 358 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.03634, allocations: 20.5 kB / 358 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.03638, allocations: 24 kB / 358.1 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.03683, allocations: 332.8 kB / 358.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.03684, allocations: 0 / 358.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.03687, allocations: 12 kB / 358.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.03688, allocations: 7.984 kB / 358.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004942/0.03737, allocations: 345.9 kB / 358.8 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.03882, allocations: 1.116 MB / 359.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/0.0393, allocations: 254.6 kB / 360.1 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002793/0.03958, allocations: 205 kB / 360.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003969/0.04354, allocations: 3.633 MB / 363.9 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003198/0.04386, allocations: 199.2 kB / 364.1 MB, free: 7.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 2.896e-06/0.04387, allocations: 15.86 kB / 364.2 MB, free: 7.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007459/0.04461, allocations: 488.7 kB / 364.6 MB, free: 7.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.04465, allocations: 55.41 kB / 364.7 MB, free: 7.344 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006271/0.04527, allocations: 0.8863 MB / 365.6 MB, free: 6.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.0453, allocations: 33.7 kB / 365.6 MB, free: 6.406 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000383/0.04568, allocations: 472.7 kB / 366.1 MB, free: 5.941 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/0.04572, allocations: 63.52 kB / 366.1 MB, free: 5.879 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.882e-05/0.0458, allocations: 81.61 kB / 366.2 MB, free: 5.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.907e-05/0.04587, allocations: 321.9 kB / 366.5 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.04607, allocations: 131.8 kB / 366.7 MB, free: 5.344 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.04632, allocations: 261.8 kB / 366.9 MB, free: 5.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004419/0.04676, allocations: 392.6 kB / 367.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.04676, allocations: 0 / 367.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000578/0.04734, allocations: 0.5042 MB / 367.8 MB, free: 4.066 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.04736, allocations: 8 kB / 367.8 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/0.04738, allocations: 23.94 kB / 367.8 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.0474, allocations: 8 kB / 367.8 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.04757, allocations: 88.44 kB / 367.9 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.04758, allocations: 11.94 kB / 367.9 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.04777, allocations: 55.67 kB / 368 MB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/0.0478, allocations: 31.92 kB / 368 MB, free: 3.844 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 (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.0001745/0.04798, allocations: 198.8 kB / 368.2 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/0.04804, allocations: 115.3 kB / 368.3 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006782/0.04872, allocations: 474 kB / 368.8 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.04873, allocations: 0 / 368.8 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.04873, allocations: 0 / 368.8 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.04873, allocations: 0 / 368.8 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/0.04912, allocations: 0.5155 MB / 369.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/0.04914, allocations: 23.98 kB / 369.3 MB, free: 2.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.04926, allocations: 47.89 kB / 369.4 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.04926, allocations: 0 / 369.4 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.04928, allocations: 12.06 kB / 369.4 MB, free: 2.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.04928, allocations: 7.984 kB / 369.4 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.04928, allocations: 0 / 369.4 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000499/0.04978, allocations: 439.2 kB / 369.8 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.04993, allocations: 143 kB / 370 MB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.738e-05/0.04998, allocations: 4 kB / 370 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.05013, allocations: 27.91 kB / 370 MB, free: 1.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.0502, allocations: 35.86 kB / 370 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.05022, allocations: 19.92 kB / 370.1 MB, free: 1.715 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004282/0.05064, allocations: 0.5881 MB / 370.6 MB, free: 1.121 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05064, allocations: 0 / 370.6 MB, free: 1.121 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004083/0.05105, allocations: 223.7 kB / 370.9 MB, free: 0.9023 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.001128/0.05218, allocations: 1.374 MB / 372.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000521/0.0527, allocations: 337.2 kB / 372.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.0527, allocations: 1.25 kB / 372.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.05294, allocations: 176.6 kB / 372.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.0534, allocations: 172.4 kB / 372.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005287/0.05869, allocations: 5.757 MB / 378.7 MB, free: 8.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002025/0.05889, allocations: 370.3 kB / 379 MB, free: 8.398 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.05911, allocations: 106 kB / 379.1 MB, free: 8.293 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.05935, allocations: 320.4 kB / 379.4 MB, free: 7.98 MB / 346.7 MB Notification: Performance of SimCode: time 6.32e-07/0.05935, allocations: 0 / 379.4 MB, free: 7.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03532/0.09466, allocations: 23.76 MB / 403.2 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.712/7.807, allocations: 18.86 kB / 403.2 MB, free: 0.5039 MB / 362.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkMosfetCharacterization/Spice3BenchmarkMosfetCharacterization.csv","/var/lib/jenkins/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: 9.556650582700968]